Important: Please read the Qt Code of Conduct -

Cannot mix incompatible Qt library

  • I followed this in order to deploy my application to another machine. Copied everything I believe was needed after looking through ldd outputs.

    But now, when I run the script described in the link above I get the message
    Cannot mix incompatible Qt library (version 0x50905) with this library (0x50b02)
    Aborted (core dumped)

    I found that there was some older Qt libraries in the system due to other software, such as CuteCom. How to make this work without messing with existing software? Wasn't my application supposed to look only in its directory for Qt libraries?

    Both machines have Ubuntu 18.04 and the development one has Qt is 5.11.2 (just realized the hex numbers above are the two conflicting Qt versions)

  • Moderators

    You can use linuxdeployqt to create really stand-alone packages.

    If your application does not depend on APIs from newer Qt releases, then you can do this:

    • compile your app using Qt 5.9.x
    • deploy that package

    It will work on all systems with Qt 5.9 and newer, Qt keeps is binary compatibility.

  • Thanks for the reply, I'll look into linuxdeployqt and come back with any questions.

Log in to reply