News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

undefined symbol: _ZTI17wxScrollingDialog

Started by cvicente, January 26, 2012, 01:29:00 AM

Previous topic - Next topic

cvicente

Dear CodeBlockers,

I've downloaded codeblocks-10.05-1debian-src.tar.bz2 stable release into my ubuntu machine.
And after building it using:

./configure --with-contrib-plugins=all
make
sudo make install


I can't seem to launch the IDE, it always outputs:

codeblocks: symbol lookup error: codeblocks: undefined symbol: _ZTI17wxScrollingDialog

As far as I could understand it has to do something with the wxWidgets. But I can't really put my finger on it.

Here's the ldd from codeblocks binary:

        linux-vdso.so.1 =>  (0x00007fffc3fb1000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00007f2481b80000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00007f24818d3000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x00007f24816b1000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00007f2481487000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00007f248126b000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00007f248105d000)
        libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007f2480daa000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00007f2480b27000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x00007f24808dc000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f2480656000)
        libz.so.1 => /lib/libz.so.1 (0x00007f248043f000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f2480209000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f247ffc1000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007f247fdbd000)
        libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00007f247fade000)
        libcodeblocks.so.0 => /usr/lib/libcodeblocks.so.0 (0x00007f247f4bb000)
        libwx_gtk2u_richtext-2.8.so.0 => /usr/lib/libwx_gtk2u_richtext-2.8.so.0 (0x00007f247f1bf000)
        libwx_gtk2u_aui-2.8.so.0 => /usr/lib/libwx_gtk2u_aui-2.8.so.0 (0x00007f247ef46000)
        libwx_gtk2u_xrc-2.8.so.0 => /usr/lib/libwx_gtk2u_xrc-2.8.so.0 (0x00007f247ecab000)
        libwx_gtk2u_qa-2.8.so.0 => /usr/lib/libwx_gtk2u_qa-2.8.so.0 (0x00007f247ea88000)
        libwx_gtk2u_html-2.8.so.0 => /usr/lib/libwx_gtk2u_html-2.8.so.0 (0x00007f247e7d6000)
        libwx_gtk2u_adv-2.8.so.0 => /usr/lib/libwx_gtk2u_adv-2.8.so.0 (0x00007f247e4f3000)
        libwx_gtk2u_core-2.8.so.0 => /usr/lib/libwx_gtk2u_core-2.8.so.0 (0x00007f247dedb000)
        libwx_baseu_xml-2.8.so.0 => /usr/lib/libwx_baseu_xml-2.8.so.0 (0x00007f247dcd0000)
        libwx_baseu_net-2.8.so.0 => /usr/lib/libwx_baseu_net-2.8.so.0 (0x00007f247daa0000)
        libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0x00007f247d749000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f247d52b000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f247d327000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f247d013000)
        libm.so.6 => /lib/libm.so.6 (0x00007f247cd8f000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f247cb78000)
        libc.so.6 => /lib/libc.so.6 (0x00007f247c7f5000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f247c5e2000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f247c3d8000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00007f247c1d5000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0x00007f247bfc4000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007f247bdbb000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007f247bbb1000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f247b87a000)
        libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x00007f247b677000)
        libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007f247b474000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007f247b26d000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007f247b068000)
        librt.so.1 => /lib/librt.so.1 (0x00007f247ae60000)
        libpcre.so.3 => /lib/libpcre.so.3 (0x00007f247ac31000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00007f247aa18000)
        libselinux.so.1 => /lib/libselinux.so.1 (0x00007f247a7f9000)
        libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x00007f247a5a0000)
        libdirectfb-1.2.so.0 => /usr/lib/libdirectfb-1.2.so.0 (0x00007f247a31d000)
        libfusion-1.2.so.0 => /usr/lib/libfusion-1.2.so.0 (0x00007f247a112000)
        libdirect-1.2.so.0 => /usr/lib/libdirect-1.2.so.0 (0x00007f2479ef9000)
        libpng12.so.0 => /lib/libpng12.so.0 (0x00007f2479cd2000)
        libxcb-render-util.so.0 => /usr/lib/libxcb-render-util.so.0 (0x00007f2479acd000)
        libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x00007f24798c4000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f24796a8000)
        libexpat.so.1 => /lib/libexpat.so.1 (0x00007f247947e000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f2479275000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00007f2479050000)
        libtiff.so.4 => /usr/lib/libtiff.so.4 (0x00007f2478dee000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f24821ad000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f2478be8000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f24789e2000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f24787c7000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x00007f24785c1000)

Thanks in advance for any light shed on this matter!

Regards!

Alpha

The 10.05 Code::Blocks release (which is what it appears you are trying to install) is available for easy access through Ubuntu Software Center.

cvicente

Hi Alpha,

Thanks for the reply. The thing is, I'm currently using the Ubuntu-server 10.04 LTS which only offers in it's repository the v8.02 C::B. So...

Jenna

As first please use code-tags, if ypi post such an amount of code or log-output, thismakes the post more readable.

Is it possible, that you have another version of C::B installed also (maybe 8.02).
Your libcodeblocks.so.0 is in /usr/lib, but if you do not use the --prefix parameter with ./configure, it should be in /usr/local/lib .
If yes, remove it.

cvicente

Hi Jens,

Sorry about the ldd output paste. At first look it didn't seem that large. I'll use code-tags next time.

I took some time to clean the environment of any previously installed packages and libs that could (from my point of view) interfere with the C::B building process. So at this point the libcodeblocks.so.0 is nowhere to be found.

I'll let you know of the result!

Regards

cvicente

So, basically I got a little bit lost on all the packages that I end up by installing to accommodate needed dependencies.

Somewhere along these last 48h I decided that it should be a good idea to install (or was installed as a dependency of any other packet) the libcodeblocks shared libraries that come with the Ubuntu-server 10.04 LTS repository. By doing this aptitude also installs codeblocks 8.02, so basically yes, I had it installed while trying to build the 10.05 C::B.

Anyway, after removing all the packages and start a new fresh build I end-up with a new error:

codeblocks: error while loading shared libraries: libcodeblocks.so.0: cannot open shared object

It seems that while doing "sudo make install", the shared libraries were placed in /usr/local/lib/ as libcodeblocks.so.0.0.1.

So, I've basically copied to /usr/lib, created a link to libcodeblocks.so.0 and C::B is up and running.

Thanks for the help!

oBFusCATed

Quote from: cvicente on January 26, 2012, 01:21:46 PM
So, I've basically copied to /usr/lib, created a link to libcodeblocks.so.0 and C::B is up and running.
Doing this is very wrong.
So be prepared for problems in the future.
Have you tried to run ldconfig?

Have you seen this link: http://apt.jenslody.de/ there are prebuild packages for debian/ubuntu?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

cvicente

Quote from: oBFusCATed on January 26, 2012, 01:32:54 PM
Have you tried to run ldconfig?

Have you seen this link: http://apt.jenslody.de/ there are prebuild packages for debian/ubuntu?

Yes I have run ldconfig.

And yes I've already checked Jens repository and was very tempted to use it, but I rather prefer to be build the available release directly from codeblocks.

Regards

Jenna

Quote from: cvicente on January 26, 2012, 01:21:46 PM
So, basically I got a little bit lost on all the packages that I end up by installing to accommodate needed dependencies.

Somewhere along these last 48h I decided that it should be a good idea to install (or was installed as a dependency of any other packet) the libcodeblocks shared libraries that come with the Ubuntu-server 10.04 LTS repository. By doing this aptitude also installs codeblocks 8.02, so basically yes, I had it installed while trying to build the 10.05 C::B.

Anyway, after removing all the packages and start a new fresh build I end-up with a new error:

codeblocks: error while loading shared libraries: libcodeblocks.so.0: cannot open shared object

It seems that while doing "sudo make install", the shared libraries were placed in /usr/local/lib/ as libcodeblocks.so.0.0.1.

So, I've basically copied to /usr/lib, created a link to libcodeblocks.so.0 and C::B is up and running.

Thanks for the help!
Do not copy the libs manually, it can break the system.
Either use --prefix=/usr to install C::B directly below /usr/{bin|lib|share} or read this link to solve the issue, if C::B is build below /usr/local the correct way.

cvicente

Well... yeah, I know you're right! I'll rebuild once again!

Thank you once again!