I had problems and this is my small personal experience.
wxWindows 2.4.0 (no patches)
dev-cpp 4.9.7.0 with Mingw compiler 3.2 (as can be downloaded from bloodshed).
To compile wxWindows 2.4.0, follow the instructions of the file: install-msw-2.4.0.txt that can be downloaded from wxWindows site. I didn't use the configure method, but it seems that the makefile method is working fine.
Then, to compile the minimal sample in devcpp:
* open a new project, and add the minimal.cpp source file and add the resource file to the project.
Then comes the tricky part:
* in tools/compiler options, select "add the following command when calling compiler" and put in the etxt field: "-D_X86_=1 -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DSTRICT -D__WXMSW__ -D__WINDOWS__ -g -D__WXDEBUG__ -Wall -fno-pcc-struct-return -fno-rtti -fno-exceptions"
* in tools/compiler options, tab "programs", change windres to "windres.exe --include-dir d:/wxWin/include --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
* in tools/compiler options, directories tab, add "d:\wxWin\lib" and "d:\wxWin\lcontrib\lib" to the Libraries directories, and "d:\wxWin\lib\mswd", "d:\wxWin\include", "d:\wxWin\contrib\include", "d:\wxWin\src\regex", "d:\wxWin\src\png", "d:\wxWin\src\jpeg", "d:\wxWin\src\zlib", "d:\wxWin\src\tiff", "d:\wxWin\include\wx\msw\gnuwin32" to the C++ includes.
* In Project/Project Options, add "-Wl,--subsystem,windows -mwindows d:\wxWin\lib\libwxmswd.a -lregex -lpng -ljpeg -lzlib -ltiff -lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lodbc32 -lwsock32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid" to the Linker Options/Optional Libs or Object files test field.
Note: there seem to be a bug as these options could be put in the general compiler options, but are not taken into account when doing so !?
And now it should work...
How did I come to this result: I launch the provided makefile on the minimal project and compare what the commands options are to what I had under Dev-Cpp environment... Only need to find where to put the options then...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Errmm.. why include the src dirs?? You only need the include and lib dirs to make it work...
BTW: Check http://www.wxwindows.org/devcpp.htm.
It's a bit outdated but usefull when doing this first time.
How big is the debug version?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had problems and this is my small personal experience.
wxWindows 2.4.0 (no patches)
dev-cpp 4.9.7.0 with Mingw compiler 3.2 (as can be downloaded from bloodshed).
To compile wxWindows 2.4.0, follow the instructions of the file: install-msw-2.4.0.txt that can be downloaded from wxWindows site. I didn't use the configure method, but it seems that the makefile method is working fine.
Then, to compile the minimal sample in devcpp:
* open a new project, and add the minimal.cpp source file and add the resource file to the project.
Then comes the tricky part:
* in tools/compiler options, select "add the following command when calling compiler" and put in the etxt field: "-D_X86_=1 -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DSTRICT -D__WXMSW__ -D__WINDOWS__ -g -D__WXDEBUG__ -Wall -fno-pcc-struct-return -fno-rtti -fno-exceptions"
* in tools/compiler options, tab "programs", change windres to "windres.exe --include-dir d:/wxWin/include --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
* in tools/compiler options, directories tab, add "d:\wxWin\lib" and "d:\wxWin\lcontrib\lib" to the Libraries directories, and "d:\wxWin\lib\mswd", "d:\wxWin\include", "d:\wxWin\contrib\include", "d:\wxWin\src\regex", "d:\wxWin\src\png", "d:\wxWin\src\jpeg", "d:\wxWin\src\zlib", "d:\wxWin\src\tiff", "d:\wxWin\include\wx\msw\gnuwin32" to the C++ includes.
* In Project/Project Options, add "-Wl,--subsystem,windows -mwindows d:\wxWin\lib\libwxmswd.a -lregex -lpng -ljpeg -lzlib -ltiff -lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lodbc32 -lwsock32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid" to the Linker Options/Optional Libs or Object files test field.
Note: there seem to be a bug as these options could be put in the general compiler options, but are not taken into account when doing so !?
And now it should work...
How did I come to this result: I launch the provided makefile on the minimal project and compare what the commands options are to what I had under Dev-Cpp environment... Only need to find where to put the options then...
Errmm.. why include the src dirs?? You only need the include and lib dirs to make it work...
BTW: Check http://www.wxwindows.org/devcpp.htm.
It's a bit outdated but usefull when doing this first time.
How big is the debug version?