Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Building CodeBlocks source

(1/10) > >>

sorinev:
In an effort to learn more interesting things, have something noteworthy on my resume instead of just an AA, and to give back to a project I enjoy, appreciate, and have used for about 4 years; I'm trying to follow the directions to build CB from the source so I can start trying to help in some way. I'm not off to a promising start however. This seems like something that should be simple for me (especially if I'm aiming to contribute...), but frustratingly, it's not.

I've followed the directions in the wiki, double and triple checked everything, but still failing to build.

First it failed to build wxwidgets with a memory exhausted error (I have 8GB). I tried the flags thing mentioned in the wiki, but it still failed. I switched to monolithic=0, and that worked (though obviously I need to solve that properly).

Second, CB itself won't build. I made sure the wx variable was set with the base portion for the unpacked wxwidgets path, but the compile instantly fails on the first file with (invalid) and tinyxml/tinystr.cpp. I googled but that didnt really return anything relevant.

What am I missing? I'm not exactly inspiring confidence in myself, given my goal here. Your assistance is greatly appreciated. Windows 7 Pro 64-bit.

oBFusCATed:
Where did you get the source from?
What is the exact error?

sorinev:
Sorry I'm not at home right now, I'll post the exact error when I get home.

I originally got the source from the berilos svn linked in the wiki article, but then noticed somewhere else that it was moved to a svn at sourceforge, so I got it from there.

golgepapaz:
for the memory exhausted problem you can pass the compiler -fno-keep-inline-dllexport
on the command line when building wxWidgets. I think you need the build wxWidgets as
monolithic since project for mingw CB link to that one.
Something like this;
mingw32-make -f makefile.gcc BUILD=release UNICODE=1 SHARED=1 MONOLITHIC=1 CXXFLAGS="-fno-keep-inline-dllexport"
This builds wxwidgets fine on my 4gb rig.

(invalid) usually means that some global variable expanded to an invalid value.You know you need to set
cb global variable also, right? if you haven't, set it to (assuming you checked out the CB to c:\codeblocks_svn)

base  = c:\codeblocks_svn\src\
lib = c:\codeblocks_svn\src\devel

After this you should be able to compile CB with no problems.
P.S : for cb_release_type you can use -g for debug builds or any optimization flags for release builds (usually-O2)

sorinev:

--- Quote from: golgepapaz on July 20, 2013, 11:50:22 pm ---for the memory exhausted problem you can pass the compiler -fno-keep-inline-dllexport
on the command line when building wxWidgets. I think you need the build wxWidgets as
monolithic since project for mingw CB link to that one.
Something like this;
mingw32-make -f makefile.gcc BUILD=release UNICODE=1 SHARED=1 MONOLITHIC=1 CXXFLAGS="-fno-keep-inline-dllexport"
This builds wxwidgets fine on my 4gb rig.

(invalid) usually means that some global variable expanded to an invalid value.You know you need to set
cb global variable also, right? if you haven't, set it to (assuming you checked out the CB to c:\codeblocks_svn)

base  = c:\codeblocks_svn\src\
lib = c:\codeblocks_svn\src\devel

After this you should be able to compile CB with no problems.
P.S : for cb_release_type you can use -g for debug builds or any optimization flags for release builds (usually-O2)



--- End quote ---

I followed the instructions word for word and picture for picture as outlined here. Since the repository location is out of date in that article (I found the new one referenced somewhere else; I think in a thread here), is it possible some other elements of the build process outlined there are out of date as well?

I did try adding these two lines:


--- Code: ---CFLAGS ?= -fno-keep-inline-dllexport

CXXFLAGS ?= -fno-keep-inline-dllexport

--- End code ---

to the config.gcc file as the page outlined last night. I am retrying with the "-fno-keep-inline-dllexport" part added to the command line instead, like you posted here. I'll post back when it's done.

I'll have to wait for this to finish before getting to that error for the actual CodeBlocks build attempt.

I also already did the global variable part as outlined on the page. If wx build successfully this time around, I'll recheck everything, including the global variable.

Navigation

[0] Message Index

[#] Next page

Go to full version