i just upgraded to karmic and now i get this when i run codeblocks.
$ codeblocks
codeblocks: relocation error: /usr/lib/libcodeblocks.so.0: symbol _Z18wxSafeConvertWX2MBPKw, version WXU_2.8.2 not defined in file libwx_baseu-2.8.so.0 with link time reference
i have resintalled codeblocks with the OF ubuntu script and with aptitude with same result.
is anyone having similar issues? The error seems to come from wxwidgets.
just posted this in another thread, but just in case:
yes the install_codeblocks script is broken in karmic.the wx-widgets repositories are not updated frequently for ubuntu but normally it worked with hardy. here’s a new one that checks what repositories are available and chooses the newest one although just changing to jaunty is enough.
also you’re going to get an error with the libraries module in codeblocks:
the problem with the libraries is actually a problem with the output in pkg-config. try:
pkg-config --list-all
surely you will get an error at the end of the list. codeblocks is parsing that output and gets confused by it. normally the error is related to some missing packages. in a fresh install of karmic i’m getting:
Package libdrm was not found in the pkg-config search path.
$ codeblocks
codeblocks: relocation error: /usr/lib/libcodeblocks.so.0: symbol _Z18wxSafeConvertWX2MBPKw, version WXU_2.8.2 not defined in file libwx_baseu-2.8.so.0 with link time reference
I did pkg-config --list-all and yes the problem with libdrm was there this was solved by installing libdrm-dev, then i downloaded and run the install codeblocks script but i get the same problem. I removed codeblocks and run again the script just in case.
— edit —
this is the output of the scripts just in case. but everything seems normal to me. maybe i have to reinstall wx
ok i solved it. i started up synaptic and saw there were two wxwidgets packages to be upgraded. When I tried to upgrade them there was an error with python-wxgtk package
E: /var/cache/apt/archives/python-wxgtk2.8_2.8.10.1-1_i386.deb: trying to overwrite ‘/usr/share/pyshared/wx-2.8-gtk2-unicode/wxversion.py’, which is also in package python-wxversion 0
I tried few things with no luck, i am not good at this package installing science So I ended up trying to install it with aptitude which sometimes seems to deal better with this kind of problems, and this worked. So now CodeBlocks is up and runnign again.
followed by running the new script. This resulted in the same error altern had, doing the following fixed it:
sudo apt-get update
sudo apt-get upgrade
this then installed the libwxgtk2.8-0 package which then enabled codeblocks to run.
However now I’m having problems both with the movieGrabberExample and moviePlayerExample. The grabber fails to find my build in camera (probably identical to yours arturo), and the fingers.mov file plays, but the output looks corrupted and it eventually segfauls. I can run cheese successfully, haven’t tried ucview.
The grabber fails to find my build in camera (probably identical to yours arturo
my computer died so can’t try with that camera : (
are you trying with unicap or gstreamer?
i’ve found a problem with the videoplayer in karmic as by default gstreamer uses now rgba, so you need to specify the depth in the pipeline. i have it working. going to pack it and upload it.
the problem is that da install_dependencies.sh still want to install the old hardy stuff:
line from the file:
WX_DEB=“deb http://apt.wxwidgets.org/ hardy-wx main”
/edit/
just got some errors with my fresh installation:
i also need the libunicap-dev package and the gstreamer0.10-ffmpeg package to start the movieplayer example.
i think you should add this to the install_dependencies.sh script or think about to change to a more free video format?!
I just upgrade some packages and I’m getting this error again:
relocation error: /usr/lib/libcodeblocks.so.0: symbol _Z18wxSafeConvertWX2MBPKw, version WXU_2.8 not defined in file libwx_baseu-2.8.so.0 with link time reference
Can’t seem to fix it this time…I think I’m going to have to compile CB from source which is annoying. Looks like codeblocks is not up to date with the latest wxwidgets library in Karmic.
I switched to wx-jaunty in Synaptic > Settings > Preferences > Distribution > ‘Prefer versions from’… ran sudo apt-get update then sudo apt-get upgrade, and no luck. It doesn’t seem to think anything needs upgrading. Same if I run install_depencies.sh or sudo apt-get install libdrm-dev - it thinks everything already has the latest versions, so it doesn’t need to worry.
codeblocks: relocation error: /usr/lib/libcodeblocks.so.0: symbol _Z18wxSafeConvertWX2MBPKw, version WXU_2.8 not defined in file libwx_baseu-2.8.so.0 with link time reference
oh dear, curses and double curses! I had codeblocks working fine with arturo’s file that is the wx-widgets from jaunty-wx. Then I clicked on the karmic upgrade without looking at which packages it wanted to upgrade and now I have the same problem as Oolong.
I ran the install-codeblocks.sh script again modified with --reinstall as an option in the apt-get install just for good measure.
I still have the problem.
I will dig around a bit but if anyone has a quick recipe I would be most grateful.
I see in synaptic that if I choose libwxbase2.8-0 and I choose Packages->Force Version, I can choose which version will be used. I have three in the list, the karmic default one, and the jaunty-wx 2.8.10-0 and also a jaunty-wx 2.6.10-1 one. I tried both the jaunty-wx ones and they didn’t work.
uninstall and reinstall of codeblocks is not working either
aaargh so confusing, now I forced the libwxbase2.8 and libwxgtk2.8 to use the karmic repository version and codeblocks works again.