Hey Dan and all... I remember I tried building Pd a while ago on the Mac and it got all ruined, and I remember I needed to wait until a new "autotools" or something was taken.
I got XCode and everything, what else do I need to compile Pd? What instructions should I follow?
I'd like to test the newest things added to current development
cheers
2017-06-25 8:36 GMT-03:00 Dan Wilcox danomatika@gmail.com:
Note: On recent versions of macOS (10.7+), you do NOT need to install Xcode to build Pd. You only need to compiler chain & it’s associated tools which can be installed separately and easily by running the following in Terminal:
xcode-select --install
One of these days I will overhaul the install info :)
On Jun 25, 2017, at 12:00 PM, pd-list-request@lists.iem.at wrote:
*From: *Miller Puckette msp@ucsd.edu *Subject: **Re: [PD] MIDI timing FIFO overflowed receiving sysex* *Date: *June 25, 2017 at 1:37:21 AM GMT+2 *To: *mario buoninfante mario.buoninfante@gmail.com *Cc: *pd-list@lists.iem.at
If you don't mind recompiling Pd, you can control the MIDI queue size by editing this line in s_midi.c:
#define MIDIQSIZE 1024
I think it has to be a power of 2. You could make it 0x100000, for instance (a million-ish).
To easily recompile Pd on a Mac, install the developer package (compiler chain which I think is now called Xcode), open a shell, Cd to Pd-x.app/Contents/Resources/src, edit s_midi.c, and type "make".
cheers Miller
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com robotcowboy.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
I will write this up in the readme, but here’s an overview. Its basically exactly the same thing you do in Linux except for building the app bundle.
You don’t need Xcode, only the command line tools which can be installed by running the following in Terminal:
xcode-select —install
Build Pd using autotools like in Linux:
cd pure-data ./autogen.sh <— you only need to run this if the configure script is not in the distribution (aka cloned from Github) ./configure make
If you want a mac app:
make app
If you want to mess with different versions of Tk, look at the osc-app.sh & tcltk-wish.sh scripts in the “mac” folder.
On Jun 26, 2017, at 9:32 PM, Alexandre Torres Porres porres@gmail.com wrote:
Hey Dan and all... I remember I tried building Pd a while ago on the Mac and it got all ruined, and I remember I needed to wait until a new "autotools" or something was taken.
I got XCode and everything, what else do I need to compile Pd? What instructions should I follow?
I'd like to test the newest things added to current development
cheers
2017-06-25 8:36 GMT-03:00 Dan Wilcox <danomatika@gmail.com mailto:danomatika@gmail.com>: Note: On recent versions of macOS (10.7+), you do NOT need to install Xcode to build Pd. You only need to compiler chain & it’s associated tools which can be installed separately and easily by running the following in Terminal:
xcode-select --install
One of these days I will overhaul the install info :)
On Jun 25, 2017, at 12:00 PM, pd-list-request@lists.iem.at mailto:pd-list-request@lists.iem.at wrote:
From: Miller Puckette <msp@ucsd.edu mailto:msp@ucsd.edu> Subject: Re: [PD] MIDI timing FIFO overflowed receiving sysex Date: June 25, 2017 at 1:37:21 AM GMT+2 To: mario buoninfante <mario.buoninfante@gmail.com mailto:mario.buoninfante@gmail.com> Cc: pd-list@lists.iem.at mailto:pd-list@lists.iem.at
If you don't mind recompiling Pd, you can control the MIDI queue size by editing this line in s_midi.c:
#define MIDIQSIZE 1024
I think it has to be a power of 2. You could make it 0x100000, for instance (a million-ish).
To easily recompile Pd on a Mac, install the developer package (compiler chain which I think is now called Xcode), open a shell, Cd to Pd-x.app/Contents/Resources/src, edit s_midi.c, and type "make".
cheers Miller
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
Pd-list@lists.iem.at mailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list https://lists.puredata.info/listinfo/pd-list
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
2017-06-26 16:40 GMT-03:00 Dan Wilcox danomatika@gmail.com:
I will write this up in the readme, but here’s an overview. Its basically exactly the same thing you do in Linux except for building the app bundle.
- You don’t need Xcode, only the command line tools which can be
installed by running the following in Terminal:
xcode-select —install
but since I got XCode and everything, I should also have that too, right?
I’m not sure. Even if you don’t, on newer versions of macOS, running “git” or “make” or whatever will automatically launch the install window for the command line tools. I mainly mention the fact that users:
Also, is does not “hurt” to install the command line tools irregardless. They used to be tied to Xcode say, 4 years ago, but were split out as you don’t need said 4-8 GB of Xcode to build most OSS.
On Jun 26, 2017, at 9:44 PM, Alexandre Torres Porres porres@gmail.com wrote:
2017-06-26 16:40 GMT-03:00 Dan Wilcox <danomatika@gmail.com mailto:danomatika@gmail.com>: I will write this up in the readme, but here’s an overview. Its basically exactly the same thing you do in Linux except for building the app bundle.
You don’t need Xcode, only the command line tools which can be installed by running the following in Terminal:
xcode-select —install
but since I got XCode and everything, I should also have that too, right?
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
Also, like all macOS apps at this point, the default build is 64 bit. If you want a 32 bit build, you can specify the required architectures to the configure script:
./configure --enable-universal=i386
On Jun 26, 2017, at 9:47 PM, Dan Wilcox danomatika@gmail.com wrote:
I’m not sure. Even if you don’t, on newer versions of macOS, running “git” or “make” or whatever will automatically launch the install window for the command line tools. I mainly mention the fact that users:
- do not need to install 4-8 GB of Xcode to build Pd
- do not need to create a Apple account to install the main compiler chain
Also, is does not “hurt” to install the command line tools irregardless. They used to be tied to Xcode say, 4 years ago, but were split out as you don’t need said 4-8 GB of Xcode to build most OSS.
On Jun 26, 2017, at 9:44 PM, Alexandre Torres Porres <porres@gmail.com mailto:porres@gmail.com> wrote:
2017-06-26 16:40 GMT-03:00 Dan Wilcox <danomatika@gmail.com mailto:danomatika@gmail.com>: I will write this up in the readme, but here’s an overview. Its basically exactly the same thing you do in Linux except for building the app bundle.
You don’t need Xcode, only the command line tools which can be installed by running the following in Terminal:
xcode-select —install
but since I got XCode and everything, I should also have that too, right?
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
2017-06-26 17:12 GMT-03:00 Dan Wilcox danomatika@gmail.com:
Also, like all macOS apps at this point, the default build is 64 bit. If you want a 32 bit build, you can specify the required architectures to the configure script:
./configure --enable-universal=i386
I compiled both ways, for 32 and 64 bits, but the app that comes out looks the same... how can I check in the guts of if to see if it is 32 or 64? When we get the released compiled versions, that's given in the name, but other than that, I wouldn't know how to differentiate, any ideas?
thanks
We can add the architecture info to the configure print out.
In the meantime, use the "file" command on the Terminal to look at pd inside the app bundle:
$ file Pd.app/Contents/Resources/bin/pd Pd.app/Contents/Resources/bin/pd: Mach-O 64-bit executable x86_64
or you can examine the binary in the src folder:
$ file src/pd src/pd: Mach-O 64-bit executable x86_64
On Jun 29, 2017, at 7:36 PM, Alexandre Torres Porres porres@gmail.com wrote:
2017-06-26 17:12 GMT-03:00 Dan Wilcox <danomatika@gmail.com mailto:danomatika@gmail.com>: Also, like all macOS apps at this point, the default build is 64 bit. If you want a 32 bit build, you can specify the required architectures to the configure script:
./configure --enable-universal=i386
I compiled both ways, for 32 and 64 bits, but the app that comes out looks the same... how can I check in the guts of if to see if it is 32 or 64? When we get the released compiled versions, that's given in the name, but other than that, I wouldn't know how to differentiate, any ideas?
thanks
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
Also, if you confiture and make and make app, you get an app bundle. If you then reconfigure, make, and make the app again, the existing app is deleted and replaced with the new one. If you want to keep multiple versions, you need to rename the app bundle after it is build.
On Jun 29, 2017, at 9:38 PM, Dan Wilcox danomatika@gmail.com wrote:
We can add the architecture info to the configure print out.
In the meantime, use the "file" command on the Terminal to look at pd inside the app bundle:
$ file Pd.app/Contents/Resources/bin/pd Pd.app/Contents/Resources/bin/pd: Mach-O 64-bit executable x86_64
or you can examine the binary in the src folder:
$ file src/pd src/pd: Mach-O 64-bit executable x86_64
On Jun 29, 2017, at 7:36 PM, Alexandre Torres Porres <porres@gmail.com mailto:porres@gmail.com> wrote:
2017-06-26 17:12 GMT-03:00 Dan Wilcox <danomatika@gmail.com mailto:danomatika@gmail.com>: Also, like all macOS apps at this point, the default build is 64 bit. If you want a 32 bit build, you can specify the required architectures to the configure script:
./configure --enable-universal=i386
I compiled both ways, for 32 and 64 bits, but the app that comes out looks the same... how can I check in the guts of if to see if it is 32 or 64? When we get the released compiled versions, that's given in the name, but other than that, I wouldn't know how to differentiate, any ideas?
thanks
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
2017-06-26 16:47 GMT-03:00 Dan Wilcox danomatika@gmail.com:
I’m not sure. Even if you don’t, on newer versions of macOS, running “git” or “make” or whatever will automatically launch the install window for the command line tools.
good, so I have that, as I suspected. Anyway, I tried " xcode-select --install", and it just confirmed with "*error: command line tools are already installed, use "Software Update" to install updates*".
Anyway, moving on
cd pure-data
I'm there
./autogen.sh <— you only need to run this if the configure script is
not in the distribution (aka cloned from Github)
so, I cloned from github, which means I need to do this, right? So, I do it, and this is what I get: "*./autogen.sh: line 21: autoreconf: command not found*"
and I'm stuck already :/
./configure
yeah, moving on, doesn't work, I get "*./configure: No such file or directory*" - proving I really needed "./autogen.sh"
well, any ideas?
thanks
On Tue, 27 Jun 2017, at 02:46 PM, Alexandre Torres Porres wrote:
2017-06-26 16:47 GMT-03:00 Dan Wilcox danomatika@gmail.com:
I’m not sure. Even if you don’t, on newer versions of macOS, running “git” or “make” or whatever will automatically launch the install window for the command line tools.
good, so I have that, as I suspected. Anyway, I tried " xcode-select --install", and it just confirmed with "*error: command line tools are already installed, use "Software Update" to install updates*".
Anyway, moving on
- Build Pd using autotools like in Linux:
cd pure-data
I'm there
./autogen.sh <— you only need to run this if the configure script is
not in the distribution (aka cloned from Github)
so, I cloned from github, which means I need to do this, right? So, I do it, and this is what I get: "*./autogen.sh: line 21: autoreconf: command not found*"
and I'm stuck already :/
Do you have Homebrew installed? This will make your life easier.
$ brew install autoconf
Building Pd on a Mac is a bit more difficult than previous replies have suggested. I can't recall, but you may need to also install:
$ brew install automake $ brew install libtool
You will need to install Tcl. The mac/osx-app.sh says it will do this for you but it won't. Go here and download 8.6.6.X https://www.activestate.com/activetcl/downloads
But then the problem is that the mac/osx-app.sh script hardcodes the wrong path... you'll need to change the following:
cp -R $verbose /System/Library/Frameworks/Tk.framework/Versions/$SYS_TK/Resources/Wish.app .
cp -R $verbose /Library/Frameworks/Tk.framework/Versions/$SYS_TK/Resources/Wish.app .
(Basically just remove "/System" because your system Tk is now the one you just installed.)
This will allow you to ./osx-app.sh -s 0.47-1 which will create Pd-0.47-1.app and then you can safely delete the "-0.47-1". (I don't know why anyone thought adding this was mandatory...)
-- www.paulwrankin.com
On Tue, 27 Jun 2017, at 03:05 PM, Paul Rankin via Pd-list wrote:
This will allow you to ./osx-app.sh -s 0.47-1 which will create Pd-0.47-1.app
Correction:
$ ./osx-app.sh -s 8.6 0.47-1
(i.e. include the Tk version)
In any case, I obviously need to write all this up in the Pd REAMDE or INSTALL files. I've been meaning to do so anyway, so thanks for doing this test for me.
On Jun 27, 2017, at 6:46 AM, Alexandre Torres Porres porres@gmail.com wrote:
2017-06-26 16:47 GMT-03:00 Dan Wilcox <danomatika@gmail.com mailto:danomatika@gmail.com>: I’m not sure. Even if you don’t, on newer versions of macOS, running “git” or “make” or whatever will automatically launch the install window for the command line tools.
good, so I have that, as I suspected. Anyway, I tried " xcode-select --install", and it just confirmed with "error: command line tools are already installed, use "Software Update" to install updates".
Anyway, moving on
Build Pd using autotools like in Linux:
cd pure-data
I'm there
./autogen.sh <— you only need to run this if the configure script is not in the distribution (aka cloned from Github)
so, I cloned from github, which means I need to do this, right? So, I do it, and this is what I get: "./autogen.sh: line 21: autoreconf: command not found"
and I'm stuck already :/
./configure
yeah, moving on, doesn't work, I get "./configure: No such file or directory" - proving I really needed "./autogen.sh"
well, any ideas?
thanks
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/