To save time and further headache, the brew command would be:
brew install fftw --enable-sse2 --universal
This will give you fftw compiled as a fat 32 & 64 bit library.
I just tried it and double checked with lipo:
$ lipo -info /usr/local/Cellar/fftw/3.3.4/lib/libfftw3.3.dylib
Architectures in the fat file: /usr/local/Cellar/fftw/3.3.4/lib/libfftw3.3.dylib are: i386 x86_64
For future reference, the --universal brew command works with almost all formulas.
On Jul 5, 2014, at 9:09 AM, via Pd-list pd-list@lists.iem.at wrote:
From: Rafael Vega via Pd-list pd-list@lists.iem.at Subject: Re: [PD] constantq~ - Thomas Grill Date: July 5, 2014 at 9:08:27 AM EDT To: Federico Llach federicollach@gmail.com Cc: pd-list@lists.iem.at, Thomas Grill gr@grrrr.org Reply-To: email.rafa@gmail.com
I guess homebrew installed a 64 bit version of the library, not a "universal" or "fat" binary that contains both 32 and 64 builds. Is the external compiled for 32 or 64? if 64, you could use pd-extended 64 and give that a try.
On Fri, Jul 4, 2014 at 2:37 PM, Federico Llach federicollach@gmail.com wrote: Ok, that was a step forward—thanks Rafael! Now I do have a libfftw3f.3.dylib file in /usr/local/lib, which is a link file to /usr/local/Cellar/fftw/3.3.4/lib (this seems to be the way Homebrew deals with the installations).
However, when I try to create the constantq~ object in Pd-extended I receive:
/Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/constantq~/constantq~.pd_darwin: dlopen(/Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/constantq~/constantq~.pd_darwin, 10): Library not loaded: /usr/local/lib/libfftw3f.3.dylib Referenced from: /Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/constantq~/constantq~.pd_darwin Reason: no suitable image found. Did find: /usr/local/lib/libfftw3f.3.dylib: mach-o, but wrong architecture /usr/local/lib/libfftw3f.3.dylib: mach-o, but wrong architecture
I am reading as much as I can understand and—although I don't know much about this—my current thought is that I am in a 32/64 bit dilemma here (?). My processor is Intel Core i7, so according to Apple that is 64 bit. Related: since Thomas suggested I should do "single precision" installation, I used "brew install fftw --enable-sse2" which I thought enables single precision according to https://github.com/Homebrew/homebrew/blob/master/Library/Formula/fftw.rb . When that didn't work I uninstalled and just used "brew install fftw", with same results. Terminal session of this attached.
I found this thread from this mailing list on "Wrong architecture" issues: http://lists.puredata.info/pipermail/pd-list/2011-04/088265.html
Any thoughts?
Dan Wilcox @danomatika danomatika.com robotcowboy.com
The command "brew install fftw --enable-sse2 --universal" worked—thanks Dan!! Now constantq~ is running.
I am now trying to open the patch cq2midi ( http://grrrr.org/research/software/cq2midi/ ), so I also need the py/pyext object ( http://grrrr.org/research/software/py/ ) to run—I have all of the other requirements (Python and Numpy). I am reading the readme.txt file but I am not sure where to locate the "binaries to load" in Pd-extended. I only see "Startup flags" in the Preferences. I put the path to the py.pd_darwin file there but the Pd crashed at startup. I'm also not sure which one of the several versions of the py files I should download from http://grrrr.org/data/dev/ext/macos/pd/
Thanks!
Federico
On Sat, Jul 5, 2014 at 9:14 AM, Dan Wilcox danomatika@gmail.com wrote:
To save time and further headache, the brew command would be:
brew install fftw --enable-sse2 --universal
This will give you fftw compiled as a fat 32 & 64 bit library.
I just tried it and double checked with lipo:
$ lipo -info /usr/local/Cellar/fftw/3.3.4/lib/libfftw3.3.dylib Architectures in the fat file:
/usr/local/Cellar/fftw/3.3.4/lib/libfftw3.3.dylib are: i386 x86_64
For future reference, the --universal brew command works with almost all formulas.
On Jul 5, 2014, at 9:09 AM, via Pd-list pd-list@lists.iem.at wrote:
*From: *Rafael Vega via Pd-list pd-list@lists.iem.at *Subject: **Re: [PD] constantq~ - Thomas Grill* *Date: *July 5, 2014 at 9:08:27 AM EDT *To: *Federico Llach federicollach@gmail.com *Cc: *pd-list@lists.iem.at, Thomas Grill gr@grrrr.org *Reply-To: *email.rafa@gmail.com
I guess homebrew installed a 64 bit version of the library, not a "universal" or "fat" binary that contains both 32 and 64 builds. Is the external compiled for 32 or 64? if 64, you could use pd-extended 64 and give that a try.
On Fri, Jul 4, 2014 at 2:37 PM, Federico Llach federicollach@gmail.com wrote:
Ok, that was a step forward—thanks Rafael! Now I do have a libfftw3f.3.dylib file in /usr/local/lib, which is a link file to /usr/local/Cellar/fftw/3.3.4/lib (this seems to be the way Homebrew deals with the installations).
However, when I try to create the constantq~ object in Pd-extended I receive:
/Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/constantq~/constantq~.pd_darwin: dlopen(/Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/constantq~/constantq~.pd_darwin, 10): Library not loaded: /usr/local/lib/libfftw3f.3.dylib Referenced from: /Applications/Pd-extended.app/Contents/Resources/Scripts/../extra/constantq~/constantq~.pd_darwin Reason: no suitable image found. Did find: /usr/local/lib/libfftw3f.3.dylib: mach-o, but wrong architecture /usr/local/lib/libfftw3f.3.dylib: mach-o, but wrong architecture
I am reading as much as I can understand and—although I don't know much about this—my current thought is that I am in a 32/64 bit dilemma here (?). My processor is Intel Core i7, so according to Apple that is 64 bit. Related: since Thomas suggested I should do "single precision" installation, I used "brew install fftw --enable-sse2" which I thought enables single precision according to https://github.com/Homebrew/homebrew/blob/master/Library/Formula/fftw.rb . When that didn't work I uninstalled and just used "brew install fftw", with same results. Terminal session of this attached.
I found this thread from this mailing list on "Wrong architecture" issues: http://lists.puredata.info/pipermail/pd-list/2011-04/088265.html
Any thoughts?
Dan Wilcox @danomatika danomatika.com robotcowboy.com
Hi Frederico,
I think I have all the other necessary requirements (Python and Numpy) but I am not sure:
- what version of the file I should download from http://grrrr.org/data/dev/ext/macos/pd/ . I am running on Mac OS X Snow Leopard 10.6.8
start the terminal program and run the following commands:
The major Python version is important: 2.5, 2.6. oder 2.7 and whether it is a system package (sitting in /usr/bin) or a user installed „local“ version (sitting in /Library/Frameworks/Python.framework)
That’s how you pick the py.pd_darwin-*.zip package. Unzip it and put it into pd’s extra folder.
- where to locate the "binaries to load" in Pd-extended. I can only add paths or "startup flags" but that hasn't worked—maybe I have the wrong file? I include a screenshot of how my menu looks.
You’ll have to go to File/setup/startup flags and there add „-lib py"
good luck, gr~~~
Hi Thomas, hi all, This worked, finally got it running, thanks for the detailed explanation! All best! Federico
On Fri, Jul 11, 2014 at 3:46 AM, Thomas Grill gr@grrrr.org wrote:
Hi Frederico,
I think I have all the other necessary requirements (Python and Numpy) but I am not sure:
- what version of the file I should download from
http://grrrr.org/data/dev/ext/macos/pd/ . I am running on Mac OS X Snow Leopard 10.6.8
start the terminal program and run the following commands:
- "python —version“ - this will give you the version of your Python
installation
- „which python“ will give you the location of your python installation
The major Python version is important: 2.5, 2.6. oder 2.7 and whether it is a system package (sitting in /usr/bin) or a user installed „local“ version (sitting in /Library/Frameworks/Python.framework)
That’s how you pick the py.pd_darwin-*.zip package. Unzip it and put it into pd’s extra folder.
- where to locate the "binaries to load" in Pd-extended. I can only add
paths or "startup flags" but that hasn't worked—maybe I have the wrong file? I include a screenshot of how my menu looks.
You’ll have to go to File/setup/startup flags and there add „-lib py"
good luck, gr~~~
Hi Thomas / hi all,
As a follow-up, plus a question: I was trying to get all of this installed on another computer which is running on OS Mavericks but the "brew install fftw --enable-sse2 --universal" command would only give me the 64 bit installation, as checked with:
$ lipo -info /usr/local/Cellar/fftw/3.3.4/lib/libfftw3.3.dylib Architectures in the fat file: /usr/local/Cellar/fftw/3.3.4/lib/libfftw3.3.dylib is: x86_64
I feel this is because Mavericks won't "allow" the 32 bit (?).
Constantq~ is giving the same "wrong architecture" message, which makes me think it only runs in 32 bit, or "needs" the 32 bit version of the fftw library.
So, is it possible at all to use constantq~ in a computer running on OS Mavericks?
Thanks,
Federico
On Sun, Jul 13, 2014 at 9:54 PM, Federico Llach federicollach@gmail.com wrote:
Hi Thomas, hi all, This worked, finally got it running, thanks for the detailed explanation! All best! Federico
On Fri, Jul 11, 2014 at 3:46 AM, Thomas Grill gr@grrrr.org wrote:
Hi Frederico,
I think I have all the other necessary requirements (Python and Numpy) but I am not sure:
- what version of the file I should download from
http://grrrr.org/data/dev/ext/macos/pd/ . I am running on Mac OS X Snow Leopard 10.6.8
start the terminal program and run the following commands:
- "python —version“ - this will give you the version of your Python
installation
- „which python“ will give you the location of your python installation
The major Python version is important: 2.5, 2.6. oder 2.7 and whether it is a system package (sitting in /usr/bin) or a user installed „local“ version (sitting in /Library/Frameworks/Python.framework)
That’s how you pick the py.pd_darwin-*.zip package. Unzip it and put it into pd’s extra folder.
- where to locate the "binaries to load" in Pd-extended. I can only add
paths or "startup flags" but that hasn't worked—maybe I have the wrong file? I include a screenshot of how my menu looks.
You’ll have to go to File/setup/startup flags and there add „-lib py"
good luck, gr~~~
I built it on mavericks as universal. Try
brew install fftw --universal
Dan Wilcox danomatika.com robotcowboy.com
On Jul 30, 2014, at 5:42 PM, Federico Llach federicollach@gmail.com wrote:
brew install fftw --enable-sse2 --universal
Hi Dan,
Thanks for your fast reply Dan. I've been late to reply since it's a shared computer on a shared space and I have to wait for the administrator to be back (she's on travels) in order to have admin privileges. But I'll definitely try that when she's back and let you know! Thanks!
F
On Wed, Jul 30, 2014 at 4:06 PM, Dan Wilcox danomatika@gmail.com wrote:
I built it on mavericks as universal. Try
brew install fftw --universal
enohp ym morf tnes
Dan Wilcox danomatika.com robotcowboy.com
On Jul 30, 2014, at 5:42 PM, Federico Llach federicollach@gmail.com wrote:
brew install fftw --enable-sse2 --universal