Author Topic: fail to install codeblocks 8.02 on Ubuntu 8.04.1  (Read 4567 times)

Offline dingguozhi

  • Single posting newcomer
  • *
  • Posts: 4
fail to install codeblocks 8.02 on Ubuntu 8.04.1
« on: October 15, 2008, 09:13:48 pm »
codeblocks is really cool. But I failed to install it  on my ubuntu 8.04.1
Here is what I have done.

1) After I download&install the binary files("codeblocks_8.02-0ubuntu1.deb.tar.gz"),
when I run it,  it reports 
"codeblocks: relocation error: /usr/lib/libcodeblocks.so.0: symbol _ZN12wxStringBaseC2Ejw, version WXU_2.6 not defined in file libwx_baseu-2.6.so.0 with link time reference"

2) if I compile the source code("codeblocks-8.02-src.tar.bz2"), it fails at the link stage.
error messages are "/codeblocks-8.02/src/src/startherepage.cpp:109: undefined reference to `wxString::Printf(wchar_t const*, ...)'"
"collect2: ld returned 1 exit status"


BTW, I have compiled all 8 configurations of wxgtk 2.8.(unicode/ansi, debug/release, static/dynamic)

Can somebody kindly help me?




Offline dingguozhi

  • Single posting newcomer
  • *
  • Posts: 4
Re: fail to install codeblocks 8.02 on Ubuntu 8.04.1
« Reply #1 on: October 15, 2008, 10:50:44 pm »
About compiling from source code,
I check the Makefile at the root folder. (see the text below.)
Maybe I need to specify a correct wxWidget folder.
Can anyone tell me how to set the "--with-wx-config" for the "./configure" CMD?

=============================================
WX_CFLAGS = -I/usr/local/lib/wx/include/gtk2-unicode-release-static-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread
WX_CFLAGS_ONLY = -pthread
WX_CONFIG_PATH = /usr/local/bin/wx-config
WX_CPPFLAGS = -I/usr/local/lib/wx/include/gtk2-unicode-release-static-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
WX_CXXFLAGS = -I/usr/local/lib/wx/include/gtk2-unicode-release-static-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread
=============================================

Offline dingguozhi

  • Single posting newcomer
  • *
  • Posts: 4
Re: fail to install codeblocks 8.02 on Ubuntu 8.04.1
« Reply #2 on: October 16, 2008, 12:40:02 am »
Yes. I found the issue is related to WxGTK.
1) I recompiled the non-static+ansi+release version of WxGTK, codeblocks can pass compiling.
but it fails to run.
error Message is :
"symbol _ZN8wxWindow12ApplyToolTipEP12_GtkTooltipsPKw  ,version WXU_2.8 not defined in file libwx_gtk2u_core-2.8.so.0 "

2) then I recompiled non_static+Unicode_release version of wXGTK,
codeblocks crashes at the beginning when running .

Offline dingguozhi

  • Single posting newcomer
  • *
  • Posts: 4
Re: fail to install codeblocks 8.02 on Ubuntu 8.04.1
« Reply #3 on: October 16, 2008, 12:45:20 am »
a partly good news.
I un-installed the codeblocks which is generated by source code.
and then installed "codeblocks_8.02-0ubuntu1.deb.tar.gz".
This time, the codeblocks can run now.

So the solution is try to compile to get correct output of WxGTK 2.8.9.