User forums > Using Code::Blocks

Can not build Code::Blocks from SVN with Makefile

(1/1)

aarti_pl:
Hello,

After:

svn up
./bootstrap
./configure --prefix=/usr/local --enable-contrib
make

I get error during building CB from sources under Linux Kubuntu Breezy:

g++ -O2 -ffast-math -g -O2 -I/usr/local/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/local/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -o codeblocks app.o appglobals.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o main.o prefix.o printdlg.o startherepage.o  -L/usr/local/lib -L/usr/local/src/codeblocks-svn/trunk/src/src/wxAUI /usr/local/src/codeblocks-svn/trunk/src/src/wxAUI/.libs/libwxaui.a -L/usr/local/src/codeblocks-svn/trunk/src/sdk /usr/local/lib/libcodeblocks.so -lpthread -ldl -pthread -lwx_gtk2_xrc-2.6 -lwx_gtk2_qa-2.6 -lwx_gtk2_html-2.6 -lwx_gtk2_adv-2.6 -lwx_gtk2_core-2.6 -lwx_base_xml-2.6 -lwx_base_net-2.6 -lwx_base-2.6
app.o: In function `CodeBlocksApp::BatchJob()':
/usr/local/src/codeblocks-svn/trunk/src/src/app.cpp:517: undefined reference to `Manager::Get(wxFrame*)'
/usr/local/src/codeblocks-svn/trunk/src/src/app.cpp:517: undefined reference to `Manager::GetPluginManager() const'
/usr/local/src/codeblocks-svn/trunk/src/src/app.cpp:534: undefined reference to `Manager::Yield()'
app.o: In function `CodeBlocksApp::InitLocale()':
/usr/local/src/codeblocks-svn/trunk/src/src/app.cpp:274: undefined reference to `Manager::Get(wxFrame*)'
/usr/local/src/codeblocks-svn/trunk/src/src/app.cpp:274: undefined reference to `Manager::GetConfigManager(wxString const&) const'

... and a lot more errors then ....

It seems that there is a lacking object file, which should be passed to linker... But I can not manage with this problem, because my knowledge of Autotools is rather poor...

Thanks for help in advance
Aarti

PS. Thanks for great IDE. I use it in work under windows - I prefer it over Visual Studio  :D

mandrav:
Please run "make uninstall" first. It's trying to link /usr/local/lib/libcodeblocks.so and not the in-place one...

aarti_pl:
First advice worked perfectly :D Thanks! Anyway I think it is an error in makefile, isn't it?

But here goes the second problem... :

keybinder.cpp: In member function 'virtual int wxBinderApp::FilterEvent(wxEvent&)':
/usr/local/include/wx-2.6/wx/event.h:420: error: 'bool wxEvent::m_skipped' is protected
keybinder.cpp:740: error: within this context
keybinder.cpp: In member function 'void wxKeyBinder::OnChar(wxKeyEvent&, wxEvtHandler*)':
/usr/local/include/wx-2.6/wx/event.h:400: error: 'long int wxEvent::m_timeStamp' is protected
keybinder.cpp:1058: error: within this context
(Revision 1825)

It's because of using wxWidgets 2.4.2 style of getting information from event. I can manage with this (quite simple to fix), but anyway it's for you information.

Before I also had problems with compilation because I usually got an error: "Had to relocate pch". After a few experiments I got to conclusion that it happens when there is too less free memory on my computer. Closing a few windows helped to solve this problem. When I was trying to disable pch with "--disable-pch" configuration script used to fail. Maybe it's already fixed in makefiles, but in case it's not maybe above hint will be usefull.

Best Regards
Aarti

mandrav:
Thanks for the feedback :)

Navigation

[0] Message Index

Go to full version