News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compilation problems (linux)

Started by Lionel B, January 03, 2007, 03:20:06 AM

Previous topic - Next topic

Lionel B

Greetings,

I am attempting to compile C::B 1.0rc2 from source (tarball  codeblocks-1.0rc2.tgz) on amd64 (gentoo) system with wxWidgets version 2.6.2 (emerged gentoo package wxGTK). Following instructions from:

http://wiki.codeblocks.org/index.php?title=Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29&redirect=no

I have run bootstrap and configure (as ./configure --with-wx-config=wx-config-2.6) with no reported errors, but make fails with:

# make
Making all in src
make[1]: Entering directory `/usr/local/src/codeblocks-1.0rc2/src'
Making all in sdk
make[2]: Entering directory `/usr/local/src/codeblocks-1.0rc2/src/sdk'
rm -f ./sdk.h.gch
g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/lib64/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA   -I../../src/sdk/wxscintilla/include -I../../src/sdk/tinyxml  -I/usr/lib64/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA  -g -O2 -O2 -ffast-math -I/usr/lib64/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -o ./sdk.h.gch -xc++-header ./sdk.h
./editormanager.h:129: error: extra qualification 'EditorManager::' on member 'GetTree'
./managedthread.h:14: error: extra qualification 'ManagedThread::' on member 'ManagedThread'
./managedthread.h:15: error: extra qualification 'ManagedThread::' on member 'ManagedThread'
./xtra_classes.h:21: error: extra qualification 'wxSplitPanel::' on member 'wxSplitPanel'
./xtra_classes.h:24: error: extra qualification 'wxSplitPanel::' on member 'wxSplitPanel'
./xtra_classes.h:36: error: extra qualification 'wxSplitPanel::' on member 'RefreshSplitter'
./xtra_classes.h:38: error: extra qualification 'wxSplitPanel::' on member 'wxSplitPanel'
make[2]: *** [sdk.h.gch] Error 1
make[2]: Leaving directory `/usr/local/src/codeblocks-1.0rc2/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/codeblocks-1.0rc2/src'
make: *** [all-recursive] Error 1

Anyone seen this before? Looking at the source, the offending lines do look a little odd... class members qualified by the enclosing class name...

Found one discussion thread by googling - unfortunately it was in French, which I couldn't follow  :?

http://www.mail-archive.com/debutant@mandrivalinux.org/msg06984.html

Cheers,
Lionel

stahta01

#1
I suggest you try a nightly build
http://www.codeblocks.org/nightly/

Or source for nightly builds
http://www.codeblocks.org/source_code.shtml

I am a windows person so not sure if this link is valid.
Subversion Portage Overlay
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo#Subversion_Portage_Overlay


Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Lionel B

Ok, will try a nightly build (I am not emerging C::B as it happens, just doing a ./configure/make/make install in /usr/local)

FWIW, I was able to compile & install after hacking the offending code by removing the member name qualifications. C::B runs now, but somewhat flakily - bombs out on trying to create a new project.

Thanks,

Lionel