rpath



  • I'm creating a shared library that has QT elements, and the odd thing is that if I don't use the 'rpath' linker flag for pointing the location of the QT shared libraries, it emits this message:

    QQmlApplicationEngine failed to load component 
    qrc:/main.qml:1 module "QtQuick" version 2.4 is not installed
    

    When I develop an executable, it doesn't do that, "-L" is sufficient and runs with no problem. I don't like rpath flag since if you deploy the executable elsewhere, you need the location to be the exact same. How can I avoid this?


Log in to reply
 

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