Menu

Building from Source

jon

These build instructions are for Linux. I'm almost sure this builds under Windows as well, but I'll first describe it here when I have verified it.

fft depends on several things, which are listed below:

  1. CMake is the (meta-)build system (cmake.org)
  2. fftw is required for the actual FFT'ing (fftw.org)
  3. Boost for handling program options and other things like lexical cast (boost.org).
  4. Subversion. You need it to check out the code from sourceforge. However, during build a version file is generated that is included in the sources. In order to generate this version header, an svn is required. It should work with the standard svn client installation under Linux, and under Windows TortoiseSVN should do the job.
  5. The gcc c++ tool chain

Talk about standing on the shoulders of giants! Anyway, if you have all these prerequisites set up properly, all you need to do is:

  • Check out the sources by issuing the following command:

    ~~~~
    $> svn checkout svn://svn.code.sf.net/p/cli-fft/code/trunk cli-fft
    ~~~~

That should leave you with the source tree root at cli-fft (you can of course replace cli-fft with anything you like).

  • cd to the root of the source tree and create a build directory there:

~~~~
$> mkdir build
$> cd build
~~~~

  • In the build directory issue

    ~~~~
    $> cmake ../ -DCMAKE_BUILD_TYPE=release
    ~~~~

If there are any issues with the prerequisites, cmake will tell you about it at this stage. If this goes smoothly, you just have to make:

  $> make

That's it. The binary should now be located in the root of your build tree. You can copy it to somewhere where the system finds it.


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.