Download and install ghostscript (needed by Imagemagick)
Download and install ImageMagick-x.x.x-x-Q16-windows-dll.exe (Do not forget to check the box option "install development headers and libraries for C and C++")
Open CodeBlocks. Select "Settings/Compiler and debugger...":
Choose the "GNU GCC Compiler"
In the Tab "Compiler settings" choose your compiler flags:
"-g -Wall -ansi" is recommanded for debugging mode
"-O3 -finline-funtions -DNDEBUG" is recommanded in order to optimize the compilation
Remarks
non accessible options (-finline-functions for example) must be added in the tab "Other options" and extra variables (NDEBUG for example) must be added in th "#define" tab
In the tab "Linker settings" click on the "add" button to indicate where you have stored ImageMagick and within the text area "Other linker options" add "-lCORE_RL_wand_" as a new link command.
In the tab "Compiler" within the tab "Search directories" add the include files search path:
"E:\Program Files\ImageMagick-x.x.x-Q16\include" for ImageMagick
"E:\Program Files\boost_x_xx_x" for Boost C++
"E:\Program Files\slip" for slip
In the tab "Linker" within the tab "Search directories" add the libraries files search path:
"E:\Program Files\ImageMagick-x.x.x-Q16\lib" for ImageMagick
Optional installation of FFTW
Download the < a href="http://www.fftw.org/install/windows.html">fftw-x.x.x-dll.zip file and extract it in the "E:\Program Files\fftw-x.x.x\" directory for example
Use the dlltool.exe of dev-c++ for building the fftw3-3.a from the fftw3-3.def file:
Open a DOS command window.
In the CodeBlocks\ directory execute "dlltool.exe -d E:\Program Files\fftw-x.x.x\libfftwx-x.def -l E:\Program Files\fftw-x.x.x\libfftwx-x.a" command
Select the menu "Settings/Compiler and debugger..."
In the tab "#define" within the tab "Compiler Settings" add the variable HAVE_FFTW:
In the tab "Linker settings" click on the "add" button to indicate where you have stored fftw3 and within the text area "Other linker options" add "-lfftw3" as a new link command.
In the tab "Compiler" within the tab "Search directories" add the include files search path:
"E:\Program Files\fftw-x.x.x" for FFTW
In the tab "Linker" within the tab "Search directories" add the libraries files search path:
"E:\Program Filesfftw-x.x.x" for FFTW
Generated on Tue Sep 30 2014 10:06:09 for SLIP by 1.8.6