Results 1 to 2 of 2

Thread: How to friend Qt app compiled&linked with Qt 4.8.4 on system with integrated Qt 4.8.6

  1. #1
    Join Date
    Oct 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to friend Qt app compiled&linked with Qt 4.8.4 on system with integrated Qt 4

    subj
    I have my big project that written with Qt 4.8.4.
    Now I purchased a new PC and install Kubuntu 14.10 based on Qt 4.8.6.
    To develop my project I build from src Qt 4.8.4 and make install it.
    I build my project successfully. But on run I have an error
    Cannot mix incompatible qt library 0×40806 with this 0×40804.
    Setting export LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.8.4/lib (was empy) can’t helps.
    Is there a solution to run my application without rebuild my project with newly installed Qt 4.8.6 from sources?


    Added after 1 56 minutes:


    I tested run application on another PC with fresh installed Kubuntu, it runs! No mixed conflicts. There is same 4.8.6 integrated of Qt.
    Last edited by pethead; 3rd January 2015 at 10:07.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to friend Qt app compiled&linked with Qt 4.8.4 on system with integrated Qt 4

    Your application is likely finding a Qt 4.8.4 library, or another library that is built against it e.g. Qwt, and this is getting loaded before the equivalent 4.8.6 library. It works on the other machine because the older Qt version, or other library, is not present so the search continues and finds the 4.8.6 library.

    Use the ldd against your program and/or other used libraries (in the environment you expect it to run from) to see which libraries each is intending to load.
    "We can't solve problems by using the same kind of thinking we used when we created them." -- Einstein
    If you are posting code then please use [code] [/code] tags around it - makes addressing the problem easier.

Similar Threads

  1. Replies: 5
    Last Post: 12th July 2014, 04:07
  2. Replies: 8
    Last Post: 28th January 2014, 08:09
  3. Emulating Qt compiled code for MIPS in VirtualFrameBuffer(Qvfb in X11-X86 compiled)
    By sunil-vasudevan in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 22nd October 2012, 06:07
  4. Replies: 3
    Last Post: 20th September 2010, 22:36
  5. how to integrated qt with dev cpp and vs.net
    By safknw in forum Installation and Deployment
    Replies: 7
    Last Post: 9th May 2006, 13:39

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.