[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] fftw

Not quite the same, but I built some UGens to use CSounds PV analysis files in my lib. Time stretching isn't a problem. They are PVFile, PVSynth, PVInfo. They don't have helpfiles, but they work just like the AtsFile class and AtsSynth UGens. They're in JoshLib.



On Nov 5, 2006, at 11:11 AM, Ryan Brown wrote:

Just out of curiosity, what are you building? Because a port of the pvoc stretch utility would be awesome... (http://quitte.de/dsp/ pvoc.html).

On Nov 5, 2006, at 4:15 AM, Nick Collins wrote:

Dear Ryan,

Thanks for the advice. After trying to fix this this morning, I realised that I was trying to port some code which required the building of fftw with a special configure option

./configure --enable-shared --enable-float

(to create the dynamic and float version of fftw, rather than standard fftw)

Which explains why those particular fftwf functions weren't being found in linking before. Now it works!

I won't use the universal framework since I'd eventually like to build distributable plug-ins. Anyway, I can now get on with experimenting,

many thanks,

On 4 Nov 2006, at 20:40, Ryan Brown wrote:

I just created a test UGen using fftw and got it compiling. How did you add libfftw3.a to your plugin target? You should drag it into the Frameworks folder first (not in targets), then once it's there drag it into the "Link Binary With Libraries" node for your plugin. I don't know what plugin target you used as a template for creating yours, but if the target is setup to build universally then you'll see those messages unless libfftw if built universally as well. Could you include the entire compilation log (after cleaning your target)?

Also, if you just want to mess around without worrying about the linking crap, someone packaged up libfftw as a universal framework:

I wouldn't use this in a UGen you give to others though because they will have to d/l and install the framework as well.


On Nov 4, 2006, at 7:28 AM, Nick Collins wrote:

Dear all,

I've been trying to play around with fftw3 a bit, on OS X, but now running into linking difficulties in Xcode. I've installed fftw, and can successfully #include <fftw3.h>. But on compilation of a plug-in, failure to link:

Undefined symbols: _fftwf_destroy_plan _fftwf_free _fftwf_malloc _fftwf_plan_r2r_1d

I have included the framework libfftw3.a into the plug-in target, and it exists at /usr/local/lib as standard (I believe it's a static library by default).

Anyone with advice or overcome similar obstacles?

I searched list archives and made my way through some confusing online material first, so I'd appreciate a clear straight answer. I'm probably doing something naive somewhere.


Send instant messages to your online friends http:// uk.messenger.yahoo.com
sc-dev mailing list

___________________________________________________________All New Yahoo! Mail – Tired of Vi@gr@! come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html

sc-dev mailing list

sc-dev mailing list

Joshua D. Parmenter

“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono