User forums > Help
How to build wxwidgets-2.6.3 to work with code::blocks
ALLs:
How to build wxwidgets-2.6.3 to work with code::blocks?
please help...
thx
Lukas:
I think more information is needed to know precisely what you are after.
What finally worked for me in win32 was to build it with mingw and set the SHARED=1 and MONOLITHIC=1 flags, then all I had to do was alter the variable within codeblocks for the correct path and put the .dll somewhere useful.
Basically in /build/msw (if i recall correctly)
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1
I do not understand why I could not build the statically linked version though. I could not get around the linker errors, if anyone knows I am interested to hear.
Didier69:
Hi,
First I installed mingw last version with the candidate option, then I used this wiki page and it worked for me ;).
ALLs:
I now build wx2.6.3 with:
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1
and set directories:
compiler:
C:\wxWidgets-2.6.3\include
C:\wxWidgets-2.6.3\contrib\include
C:\wxWidgets-2.6.3\lib\gcc_dll\msw
linker:
C:\wxWidgets-2.6.3\lib\gcc_dll
C:\wxWidgets-2.6.3\lib\gcc_dll\msw
resource:
C:\wxWidgets-2.6.3\include
but I get an error:
-------------- Build: Debug in test ---------------
Linking console executable: bin\Debug\test.exe
C:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26u
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
what i must to do? help please...
thx
Lukas:
The u of -lwxmsw26u means it's trying to link the unicode version. Check if you have a libwxmsw26 and if so link to that instead.
i.e replace wxmsw26u with wxmsw26 in the build options/linker
Navigation
[0] Message Index
[#] Next page
Go to full version