Failed to compile Code::Blocks on Ubuntu Linux 6.06. Source downloaded from SVN.
g++ --version
g++ (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
uname -a
Linux Server 2.6.17.8 #1 SMP Sun Aug 13 22:58:48 EDT 2006 x86_64 GNU/Linux
I'm not sure what to provide, so here are several lines prior and after the error:
g++ -DHAVE_CONFIG_H -I. -I. -I. -I/home/victor/work/codeblocks/wxwidgets//lib/wx/include/gtk2-unicode-release-2.6 -I/home/victor/work/codeblocks/wxwidgets//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 -I../../src/sdk/wxscintilla/include -I../../src/sdk/tinyxml -I../../src/sdk/scripting/include -I../../src/sdk/scripting/sqplus -I../../src/sdk/wxFlatNotebook -I../../src/sdk/propgrid/include -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT globals.lo -MD -MP -MF .deps/globals.Tpo -c globals.cpp -fPIC -DPIC -o .libs/globals.o
globals.cpp: In function 'wxBitmap cbLoadBitmap(const wxString&, int)':
globals.cpp:633: error: 'UsesCommonControls6' was not declared in this scope
make[4]: *** [globals.lo] Error 1
make[4]: Leaving directory `/home/victor/downloads/codeblocks/rev2946/trunk/src/sdk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/victor/downloads/codeblocks/rev2946/trunk/src/sdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/victor/downloads/codeblocks/rev2946/trunk/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/victor/downloads/codeblocks/rev2946/trunk/src'
make: *** [all-recursive] Error 1
The commands that I issued prior to getting this error
./bootstrap
export PATH=/home/victor/work/codeblocks/wxwidgets/bin:/home/victor/work/codeblocks/wxwidgets/bin:$PATH
./configure --prefix=/home/victor/work/codeblocks/rev2946 --enable-contrib
make && sudo make install
Did I do something wrong?
That's strange. I always get the same error when C::B crashes. It's a about a "Cairo Font".. it might be specific to my distribution only..
codeblocks: cairo-ft-font.c:678: _cairo_ft_unscaled_font_set_scale: Assertion `error == 0' failed.
It seems to crash more or less randomly. It crashed once when I tried to save a modified main.cpp. It crashed when Code completion should have displayed some methods of a class.
EDIT: I've just read another topic on the forum about this. It seems that it's a libcairo problem that not everybody has. I guess I'll wait for a newer version of libcairo.
Another question: when you select Ogre3d project, and then C::B asks you whether you have a pre-installed OGRE SDK or you have sources installed, there used to be a page that asked you for the location of the sources. It seems that page is gone now, C::B asks directly for the compiler(s). Is that on purpose? Why wouldn't it ask me for the location of the OGRE source?