Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using fftw3 with XCode



Your best bet, in my opinion, would be to use Apple's FFT code.  The Accelerate framework, which includes the vecLib framework, has architecture-independent API for various functions that you'll need, not just FFT.  They're written to use vector code so they run really fast on Altivec (PowerPC) or SSE (Intel).  Apple will be improving these frameworks as new processors come out, so your code will go further.

Brian Willoughby
Sound Consulting


On Jan 3, 2008, at 06:37, Daniele Barchiesi wrote:

I am developing an Audio Unit and I need to use the fourier transorm for some DSP. The open-source FFTW3 seemed to me a good choice, but I'm having some troubles with it.

The first time that I installed it, I didnt' know that I had to specify my system architecture (I'm working with a macbook pro, so it is i386) during the configure step. When I wrote a simple test program, the compiler returned no errors, but the buffer that had to contain the fourier transform of a test signal remained empty.
Then I looked at the mailing list and I found some suggestions on how to configure the installation of FFTW3 in this thread: http://lists.apple.com/archives/xcode-users/2007/Apr/msg00127.html
So, I decided to install again cleaning all the old files and using the configure options described in the mentioned thread.
Now I can't even link properly the libraries with my code (I tried with the universal binary one generated by the command -lipo and the one specific for my architecture libfftw3f-i386.a).
In addition, when I try to jump to the definition of an object belonging to a type defined in a fftw3 header, XCode crashes. It crashes also when I access directly the fftw3.h header.

Does anyone have some hints?

Thank you.

Daniele.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden

References: 
 >Using fftw3 with XCode (From: Daniele Barchiesi <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.