"Debug error: Cannot mix incompatible Qt library with this library version"



  • I'm trying to build my QT application on another computer, I've installed QT to the same directory path, and my code now builds in VS2010, but I get a runtime error upon starting the program.

    "Debug Error!

    Program: C:\Qt\qt5.5.0\5.5\msvc2013\bin\QT5Cored.dll
    Module: 5.5.1
    File: kernel\qobject.cpp
    Line: 198

    Cannot mix incompatible Qt library (version 0x50500) with this library (version 0x50501)

    (Press Retry to debug the application)"

    http://i.imgur.com/T7JybU6.png

    Can anyone help me decipher this and work out what it means? It sounds like I've got the wrong version of QT installed or something, But I'm confident it was 5.5 in both cases.

    Edit: It appears to occur when opening a QSQL database, which is something to look at.



  • Hi, it seems you have Qt 5.5.0 installed on one computer and Qt 5.5.1 on the other, that's why you get a runtime error. Easiest might be to upgrade the one with 5.5.0 to 5.5.1...



  • Okay, that makes sense. I think I need to remake the database libraries then.

    There's no /src folder like I'm used to with 5.5.0, did I pick the wrong option on install? Maybe it's something I downloaded separately last time! Googling


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You can get the sources through the installer, it's an option there.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.