I'm not an expert with MS Windows, but here's what I tried, and it worked.


  • Download all needed tools

get dev-cpp:
http://www.bloodshed.net/devcpp.html
http://prdownloads.sourceforge.net/dev-cpp/devcpp-4.9.9.2_setup.exe

get libit-0.2.3:
http://sourceforge.net/projects/libit/files/

get MingW/Msys:
http://mingw.org
https://sourceforge.net/project/showfiles.php?group_id=2435

get SDL & SDL_image:
http://www.libsdl.org/release/SDL-1.2.13.tar.gz
http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.7.tar.gz


(MAYBE NOT NECESSARY) move the SDL includes in C:\Dev-Cpp\include\SDL
(MAYBE NOT NECESSARY) move the SDL_Image include in C:\Dev-Cpp\include\SDL
move the libit includes in C:\Dev-Cpp\include\libit


  • Install needed external packages

In Dev-Cpp :
Go in "Tools-> Check for updates/Packages"
select the devpacks.org server.
Then  click "check for updates"
select
- libjpeg
- libpng
- libtiff
- zlib

- SDL
- SDL_image

click "download selected" and proceed to the installation.

NOTE: When installing packages from Dev-Cpp, it downloads (dlls for instance) into C:\Dev-Cpp\bin\ it might be needed to move these dlls into C:\Dev-Cpp\dll


  • Build the libit libraries

in Dev-Cpp, Menu
"import->MS visual C++"
select "libit_static" in the /libit-0.2.3/VC/ directory
Then compile "Execute->Compile"
this makes libit_static.a & liblibit.a

Run the same process with the libit.dsp MS VC++ project (import and compile)
make sure that the boxes are unchecked in dev-cpp's "Tool->Compiler options->Compiler"
This makes libit.dll

(MAYBE NOT NECESSARY) Put libit.dll, libit_static.a & liblibit.a in C:\Dev-Cpp\lib\libit\ 
Alternatively (?):
(MAYBE NOT NECESSARY) Put libit.dll in C:\Dev-Cpp\dll\


  • Set up Dev-Cpp for the compilation

Make sure that the following settings are correct in Dev-Cpp:
In the Menu :
->Tools->Compiler options:
 - Compiler:
Add the following command...:
-Wall  -O2 -g -Wall -fexpensive-optimizations -funroll-loops -DNDEBUG -DPACKAGE=\"libit\"

Add these commands to the linker...:
-lmingw32 -lSDLmain -lSDL -lSDL_image -lm -lit

 - Directories->Binaries
C:\Dev-Cpp\bin

 - Directories->Libraries
C:\MinGW\lib
C:\Dev-Cpp\lib
C:\Dev-Cpp\lib\libit

 - Directories->C include
C:\Dev-Cpp\include\libit
C:\Dev-Cpp\include
C:\Dev-Cpp\include\SDL

 - Directories->C++ include
C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include
C:\Dev-Cpp\include\c++\3.4.2\backward
C:\Dev-Cpp\include\c++\3.4.2\mingw32
C:\Dev-Cpp\include\c++\3.4.2\
C:\Dev-Cpp\include\


  • Make the obj files forn libit

Need maybe to use
export PATH=$PATH:/c/Dev-Cpp/bin/
in MSYS

Make the object files (.o) from libit : (using MinGW or MSYS in /libit-0.2.3/src/)
gcc.exe -c mat.c -o mat.o
gcc.exe -c cplx.c -o cplx.o
gcc.exe -c fourier.c -o fourier.o
gcc.exe -c io.c -o io.o
gcc.exe -c math.c -o math.o
gcc.exe -c parser.c -o parser.o
gcc.exe -c random.c -o random.o
gcc.exe -c separable2D.c -o separable.o
gcc.exe -c vec.c -o vec.o
gcc.exe -c wavelet.c -o wavelet.o
gcc.exe -c wavelet2D.c -o wavelet2D.o

move all these "*.o" files to:

C:\Dev-Cpp\lib

* Alternatively *
Add manually these *.o in Dev-Cpp:
in "Project-> Project Options" 
"-> parameters > Add library or Object" ... then select all the *.o mentioned above.

NOTE: It is possible to open all the .c files independently in Dev-Cpp and run "Execute -> Compile Current File" to produce the corresponding .o


  • Compile the dev-cpp project

(MAYBE NOT NECESSARY) move zlib1.dll, SDL.dll, jpeg62.dll & libpng12.dll into the current folder (where viewimages.dev is).

Finally, compile the "viewimages.dev" project "Execute->Rebuild All"









Polytech'Nantes
IRCCyN