Author Topic: Can not build Code::Blocks from SVN with Makefile  (Read 4836 times)

Offline aarti_pl

  • Multiple posting newcomer
  • *
  • Posts: 23
Can not build Code::Blocks from SVN with Makefile
« on: January 21, 2006, 10:37:53 pm »
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
« Last Edit: January 21, 2006, 10:43:46 pm by aarti_pl »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Can not build Code::Blocks from SVN with Makefile
« Reply #1 on: January 21, 2006, 10:43:53 pm »
Please run "make uninstall" first. It's trying to link /usr/local/lib/libcodeblocks.so and not the in-place one...
Be patient!
This bug will be fixed soon...

Offline aarti_pl

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: Can not build Code::Blocks from SVN with Makefile
« Reply #2 on: January 21, 2006, 11:31:58 pm »
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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Can not build Code::Blocks from SVN with Makefile
« Reply #3 on: January 21, 2006, 11:36:16 pm »
Thanks for the feedback :)
Be patient!
This bug will be fixed soon...