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 (http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook), first off all, I tried to compile wxWidgets. Therefore I got the source from here (http://ftp://biolpc22.york.ac.uk/pub/2.8.6) (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 (http://forums.codeblocks.org/index.php/topic,6985.0.html)).
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.
FYI: The pulgins requires wxWidgets to be built using SHARED=1.
Try this, and then post the errors on compiling wxWidgets.
set path=C:\MinGW\bin;C:\MinGW\mingw32\bin
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 CLEAN
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
...
../../include/wx/event.h:33 warning: type attributes are honored only at type definition
../../include/wx/event.h:36 warning: type attributes are honored only at type definition
../../include/wx/event.h:37 warning: type attributes are honored only at type definition
../../include/wx/event.h:38 warning: type attributes are honored only at type definition
../../include/wx/event.h:39 warning: type attributes are honored only at type definition
../../include/wx/event.h:42 warning: type attributes are honored only at type definition
...
In file included from ../../include/wx/app.h:23
from ../../src/common/platinfo.cpp:30:
...
../../include/wx/intl.h:57 warning: type attributes are honored only at type definition
../../include/wx/intl.h:58 warning: type attributes are honored only at type definition
...
and so on
It´s always the same warning.
greets
L.A.T.
warning: type attributes are honored only at type definition
That warning can be ignored. They are talking about trying to reduce that warning in the development branch. I can not remember if the GCC or wxWidgets Development people are talking about a fix.
Tim S