Installation of FFTW:
- Download the latest FFTW package from http://www.fftw.org/.
- Unzip and install FFTW:
cd ~/Downloads/fftw-3.3.5./configuremake && make installVerify thatlibfftw3.aandlibfftw3.laare present in the path/usr/local/lib
- Download the latest IT++ package from http://itpp.sourceforge.net/4.3.1/installation.html.
- Unzip and go inside the folder :
cd ~/Downloads/itpp-4.3.1 - Create a build directory :
mkdir build && cd build/ - Open cmake GUI. If cmake not present , visit https://cmake.org/download/
- In cmake, add the following entries:
- Where is the source code:
~/Downloads/itpp-4.3.1 - Where to build the binaries:
~/Downloads/itpp-4.3.1/build
- Where is the source code:
- Click
Configure -> Use default native compilers -> Done - Click
Generate - Return back to terminal. Run
make && make installto build & install. [Locate the shared library at/usr/local/lib/]
Linking IT++ in Eclipse:
- Install the latest Eclipse CDT from https://eclipse.org/cdt/.
- Add the shared library of itpp in the path:
Project -> Properties -> C/C++ General -> Paths and Symbols -> Libraries -> Add -> enter 'itpp' -> OK
- Write (or get it from BitBucket) C++ code which uses IT++ functions. Then
- Build Project
- Run As -> Local C/C++ Application
- If the following error "Launch failed. Binary not found." is encountered, then fix it by:
Project -> Properties -> C/C++ Build -> Settings -> Binary Parsers -> check Mach-O 64 Parser
Linking IT++ in Command Line:
PATH=$PATH:/usr/local/include/:/usr/local/lib/g++ -o <output> <filename>.cc -litpp./<output>
No comments:
Post a Comment