Results 1 to 2 of 2

Thread: Getting undefined symbols linking witn libQtGui.a after upgrading to Ubuntu 12.04 LTS

  1. #1
    Join Date
    Oct 2012
    Posts
    16
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Cool Getting undefined symbols linking witn libQtGui.a after upgrading to Ubuntu 12.04 LTS

    I have a large C++ project built using eclipse and bjam.
    The project relies heavily on qt4.7.4. Everything was going
    swimmingly (ie. project built successfully and executed fine)
    until I upgraded my Ubuntu release to 12.04 LTS.

    After the upgrade linking the project with qt libraries gives 100's (1000's) of
    errors or undefined symbols that should be defined in various X11
    libraries. I've checked and the appropriate X11 libraries exist and they do
    define the procedures that Qt is complaining about. However, under the new OS release they have different
    version numbers and are in different directories than the previous OS release.

    example of error:
    /usr/share/qt4.7.4/lib/libQtGui.a(qnativeimage.o): In function
    `QNativeImage::QNativeImage(int, int, QImage::Format, bool, QWidget*)':
    qnativeimage.cpp:(.text+0x32d): undefined reference to `XShmCreateImage'


    Sooo I'm pretty sure the Qt libraries refer to (archives were created
    referring to) X11 libraries that have been replaced, relocated, or
    renamed in the upgraded OS. I can't figure out how to rebuild the Qt
    libraries to refer to the new X11 libraries.

    I've tried using Synaptic Package Manager to uninstall and reinstall the
    libraries but that doesn't work. I'm guessing that there is some magic
    incantation involving app-get, config, make that will do the trick. Any
    suggestions?

  2. #2
    Join Date
    Oct 2012
    Posts
    16
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Getting undefined symbols linking witn libQtGui.a after upgrading to Ubuntu 12.04

    Solved my own problem
    1) downloaded tar file open source distribution of qt.4.8.4
    2) unpacked it
    3) did a config and then a make
    4) updated .batchrc file with new QTDIR= and LD_LIBRARY_PATH=
    5) updated /usr/share/boost-build/user-config.jam with new use qt...

    Did a clean build and everything worked.

    Its not nice! Updating Ubuntu apparently installed some but not all tools and really screwed things up. This just reinforces my conservative managers instinct. If you want to get anything done, only update when you absolutely have to. :-)

Similar Threads

  1. Replies: 0
    Last Post: 11th August 2011, 16:43
  2. Replies: 0
    Last Post: 14th January 2010, 14:47
  3. Replies: 7
    Last Post: 26th November 2009, 13:00
  4. Replies: 0
    Last Post: 9th April 2009, 06:12
  5. About /lib/libQtGui.so:undefined reference to 'qFree(void*)'
    By ddbddb in forum Installation and Deployment
    Replies: 0
    Last Post: 3rd April 2009, 14:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.