Code::Blocks Forums

User forums => Help => Topic started by: juvinious on November 12, 2005, 01:06:05 pm

Title: C::B compile on gentoo
Post by: juvinious on November 12, 2005, 01:06:05 pm
I've been trying to get C::B to compile on gentoo but with no success.
I keep running into this error:
[error]
mkdir .libs
i686-pc-linux-gnu-g++ -march=athlon-xp -O2 -mcpu=i686 -fomit-frame-pointer -O2 -ffast-math -o .libs/codeblocks app.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o impexpconfig.o main.o prefix.o printdlg.o startherepage.o -pthread -pthread  -L/var/tmp/portage/codeblocks-1.0_rc2/work/codeblocks-1.0rc2/src/src/wxDockit /var/tmp/portage/codeblocks-1.0_rc2/work/codeblocks-1.0rc2/src/src/wxDockit/.libs/libwxdockit.a -lm -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -L/usr/lib/gcc-lib/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/lib -lgcc_s -lc -L/var/tmp/portage/codeblocks-1.0_rc2/work/codeblocks-1.0rc2/src/sdk /var/tmp/portage/codeblocks-1.0_rc2/work/codeblocks-1.0rc2/src/sdk/.libs/libcodeblocks.so /var/tmp/portage/codeblocks-1.0_rc2/work/codeblocks-1.0rc2/src/sdk/wxscintilla/.libs/libwxscintilla.so /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so -lwx_gtk2u_xrc-2.4 -lpthread -ldl -lwx_gtk2u-2.4 -Wl,--rpath -Wl,/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libwx_gtk2u-2.4.so: undefined reference to `pango_x_get_context'
collect2: ld returned 1 exit status
make[3]: *** [codeblocks] Error 1
make[3]: Leaving directory `/var/tmp/portage/codeblocks-1.0_rc2/work/codeblocks-1.0rc2/src/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/codeblocks-1.0_rc2/work/codeblocks-1.0rc2/src/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/codeblocks-1.0_rc2/work/codeblocks-1.0rc2/src'
make: *** [all-recursive] Error 1
[/error]

I have wxGTK-2.6.2 installed. Also from what I recall, I thought `pango_x_get_context` had been deprecated...
http://www.pango.org/manual/pango-X-Fonts-and-Rendering.html#pango-x-get-context
Any ideas will be helpfull.
Thanks.
Title: Re: C::B compile on gentoo
Post by: connyosis on November 12, 2005, 02:56:42 pm
Well it looks like even though you have wxGTK 2.6 installed, the Code::Blocks compilation is still using version 2.4.
If you don't already have one, create a symlink /usr/bin/wx-config pointing to usr/lib/wx/config/gtk2-unicode-release-2.6
(Of course you'll have to have wxGTK 2.6 compiled with the unicode USE-flag enabled in this case.)
Title: Re: C::B compile on gentoo
Post by: juvinious on November 12, 2005, 03:35:01 pm
Even though I make the sym-link to wx-config:
wx-config --libs still returns "-pthread -lwx_gtk2u-2.4"  :(

[edit]
Hmm weird, I don't know why wx-config is still sym-linked to the 2.4 lib.
I updated the link to wx-config-2.6 and now it's working fine.
I'm just wondering why 2.4 still exists. :o
Anyhow thanks for the insight, much appreciated.
:)