Results 1 to 2 of 2

Thread: Multiple Versions of Qt

  1. #1
    Join Date
    Jul 2010
    Posts
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Multiple Versions of Qt

    This is a Qt/Linux question. I'm not sure what section it's supposed to go into and I apologize if it's in the wrong place.

    I need to hack my qt library a bit, and I have it compiled and sitting in my /usr/local/Trolltech/Qt-4-8-0.

    At the same time I'm running Kubuntu which runs on Qt-4.8-1. When I run my app I get:
    Cannot mix incompatible Qt library (version 0x40801) with this library (version 0x40800)

    So I tried setting LD_LIBRARAY_PATH=/usr/local/Trolltech/Qt-4-8-0/lib:$LD_LIBRARAY_PATH

    no cigar

    I tried doing lld MyApp after exporting the above LD_LIBRAR_PATH and it's not pointing to any qt-4.8.1 anywhere.

    Can anyone point me in the right direction with this?

    Thank you.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Multiple Versions of Qt

    Sounds to me like the Qt DLLs are already loaded by Kubuntu, so rather than trying to load its own DLLs, your app tries to use the ones already there and fails. I don't know how in linux you force an app to use a defined set of DLLs; in the Windows world, M$ invented the "side-by-side" system and the use of manifests to circumvent this DLL hell.

    LD_LIBRARAY_PATH
    And shouldn't this be LD_LIBRARY_PATH instead of your incorrectly spelled version? Maybe that is the whole source of your problem.

Similar Threads

  1. installing and using multiple Qt versions
    By budda in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd October 2011, 08:53
  2. Multiple Qt Versions on OS X?
    By rickbsgu in forum Installation and Deployment
    Replies: 2
    Last Post: 6th September 2010, 20:17
  3. Multiple versions of Qt in Windows?
    By gfunk in forum Qt Programming
    Replies: 1
    Last Post: 27th August 2007, 19:07

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.