English 中文(简体)
How to integrate FFTW3 into an iPhone app?
原标题:

I m trying to integrate the FFTW3 (a GNU FFT library written in C, http://www.fftw.org/) into an iPhone app. I downloaded the source code and I found there are hundreds of .h and .c files along with a lot of other files I can t recognize. I m not a linux expert so I don t really understand how the .configure file and other similar files work. And since there is no such file as filename.xcodeproj, I need to set up the XCode project myself.

The thing I want to know is: How can I get the files in XCode and compile them without error? Any experience or tips?

最佳回答

Note that if you include the GPL version of this library in your application, you will need to make the source code of your own application available under the GPL license. It appears that you can buy a license from MIT to incorporate this library within a non-free application.

If you are willing to wait for iPhone OS 4 for your application, you will be able to use the Accelerate framework (link is to Mac implementation, but much is the same with the iPhone). Within the vDSP portion of this framework are FFT operations. According to Apple, these beat the FFTW library by up to 5x on the iPhone.

问题回答

I recommend you take a look at kissfft. It is much smaller than FFTW, has a BSD license, and is capable of performing fixed point FFTs (AFAIK, iphones lack floating point units).

I provided a script for compiling fftw3 into a static library for use in iOS projects here: fftw3 static library for iOS





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签