Author Topic: C::B compile on gentoo  (Read 2783 times)

Offline juvinious

  • Single posting newcomer
  • *
  • Posts: 3
C::B compile on gentoo
« 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:
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/ /var/tmp/portage/codeblocks-1.0_rc2/work/codeblocks-1.0rc2/src/sdk/wxscintilla/.libs/ /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/ -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/../../../ 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

I have wxGTK-2.6.2 installed. Also from what I recall, I thought `pango_x_get_context` had been deprecated...
Any ideas will be helpfull.

Offline connyosis

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: C::B compile on gentoo
« Reply #1 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.)

Offline juvinious

  • Single posting newcomer
  • *
  • Posts: 3
Re: C::B compile on gentoo
« Reply #2 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"  :(

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.
« Last Edit: November 12, 2005, 06:39:56 pm by juvinious »