User forums > Help

Problems with compiling Code::Blocks and plugins

(1/2) > >>

L.A.T.:
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:


--- Quote ---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

--- End quote ---

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:


--- Code: ----------------- 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'

--- End code ---

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.

stahta01:
FYI: The pulgins requires wxWidgets to be built using SHARED=1.

Try this, and then post the errors on compiling wxWidgets.


--- Code: ---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

--- End code ---

L.A.T.:

--- Code: ---...
../../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

--- End code ---

It´s always the same warning.

greets
L.A.T.

stahta01:

--- Code: ---warning: type attributes are honored only at type definition

--- End code ---

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


L.A.T.:
Thank you, now everything compiled fine.

Which is the right folder to use the new build, The "devel"- oder the "output"-Folder?
The development-Folder contains bigger files and also two more libs called "libwxscintilla.a" and "libcodeblocs.a"
Is this just for developement Code::Blocks itself and contains the debug-Version, so, for using the IDE for myself
I can simply use the Files in the "output"-Folder?

greets
L.A.T.

Navigation

[0] Message Index

[#] Next page

Go to full version