Hello,
First off all, sorry for my possibly bad english, I am german and can´t write very perfectly.
Here´s the thing:
I´ve got problems to compile Code::Blocks and the plugins from the latest SVN (r4503).
The compiler I am using is the MinGW v.3.4.5.
Refered to this
wiki-Page, first off all, I tried to compile wxWidgets. Therefore I got the source from
here (wxMSW-2.8.6.zip for Windows XP SP2).
These are the settings I´ve used to compile it:
set path=%PATH%;C:\MinGW\bin;C:\MinGW\mingw32\bin;
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=1 BUILD=release UNICODE=1 CLEAN
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=1 BUILD=release UNICODE=1
As mentioned in the "Nightly cookbook" I should compile with SHARED=1 but there are uncoutable warnings, so I choosed SHARED=0 and it compiles without any error. The libraries can now be found in "C:\wxMSW-2.8.6\lib\gcc_lib".
Next step ist to build the plugins, by loading "C:\trunk\src\CodeBlocks.cbp" into Code::Blocks (v4491 from
here).
Now Code::Blocks ask me for some global Variable definitions for "wx" so I entered the root path to wxWidgets ("C:\wxMSW-2.8.6") in the field "base". Once did that, C::B loads the project und I hit the "build"-Button.
1. (solved) The first error appears, when compiling "scintilla" and C::B asks for "...wx/setup.h" so I added the directory "C:\wxMSW-2.8.6\lib\gcc_lib\mswu\" which contains it, to Project -> Build options -> Search directories -> compiler;
This solves the problem.
2. Next message is "cannot find -lwxmsw28u" so I added all compiled libs from the wxwidgets directory to Project -> Build options -> Linker settings -> link libraries with absolute pathes. These are:
libwxexpat.a
libwxjpeg.a
libwxmsw28u.a (needed one)
libwxpng.a
libwxregexu.a
libwxtiff.a
libwxzlib.a
After doing this the same error still appears, so I added "C:\wxMSW-2.8.6\lib\gcc_lib" to Project -> Build options -> Search directories -> Linker. This solves the problem, but was directly followed by the next error:
-------------- Build: scintilla in Code::Blocks ---------------
Linking dynamic library: devel\wxscintilla.dll
.objs\sdk\wxscintilla\src\PlatWX.o: In function `ZN4Font6CreateEPKciibbb':
C:/trunk/src/sdk/wxscintilla/src/PlatWX.cpp:109: undefined reference to `_imp___ZN19wxEncodingConverter22GetPlatformEquivalentsE14wxFontEncodingi'
.objs\sdk\wxscintilla\src\PlatWX.o: In function `ZN11SurfaceImpl10InitPixMapEiiP7SurfacePv':
C:/trunk/src/sdk/wxscintilla/src/PlatWX.cpp:222: undefined reference to `_imp___ZN8wxBitmapC1Eiii'
From here on I don´t know what to do and I can´t find anything in the forum because I don´t know for what I have to search to solve the problem. It would be nice if somebody could help.
greets
L.A.T.