From 10:00 CET Friday 22nd November we will adjust how the server works to deal with some recently reported problems. Therefore there may be a load problem, if you experience more problems than usual trying to access the forum then please PM AndyS or any of the moderators so they can inform me.


Is Qt tool add RunPath automatically on execution file ?



  • I am using Ubuntu 18.04 and Qt 5.13.1.

    execution file is showing run path added but I did not added from .pro file.
    How can i set as default qt configuration for run path.

    Here my output of terminal:

    readelf -d SquidStat | grep 'RUNPATH' 
     0x000000000000001d (RUNPATH)            Library runpath: [/home/admiral/Qt5.13.1/5.13.1/gcc_64/lib]
    
    

    Here My Qt pro file:

    # ----------------------------------------------------
    # This file is generated by the Qt Visual Studio Tools.
    # ------------------------------------------------------
    
    TEMPLATE = app
    TARGET = SquidStat
    QT += core widgets gui serialport opengl concurrent
    DEFINES += QT_SERIALPORT_LIB QT_WIDGETS_LIB
    INCLUDEPATH += . \
        ./../../../DllFileCreator/SquidStateLibrary \
        ./../../../global_typedefs \
        ./../../../3rdparty/hidapi-out/include \
        ./../../../3rdparty/qtcsv-out/include \
        ./../../../3rdparty/qwt/bin/include
    
    LIBS += -lqtcsv \
        -lSquidstatLibrary
    DEPENDPATH += .
    UI_DIR += ./GeneratedFiles
    RCC_DIR += ./GeneratedFiles
    
    CONFIG(debug, debug|release){
        DESTDIR = ../../../out/Debug/_SquidStat
        CONFIG += debug
        INCLUDEPATH += ./GeneratedFiles/Debug
        LIBS += -L"./../../../3rdparty/hidapi-out/lib-debug" \
             -L"./../../../3rdparty/qtcsv-out/lib-debug" \
             -L"./../../../3rdparty/qwt/bin/lib-debug" \
             -L"./../../../out/Debug/squidstatelibrary"
        MOC_DIR += ./GeneratedFiles/debug
        OBJECTS_DIR += debug
    }else {
        DESTDIR = ../../../out/Release/_SquidStat
        CONFIG += release
        INCLUDEPATH += ./GeneratedFiles/Release
        LIBS += -L"./../../../3rdparty/hidapi-out/lib-release" \
             -L"./../../../3rdparty/qtcsv-out/lib-release" \
             -L"./../../../3rdparty/qwt/bin/lib" \
             -L"./../../../out/Release/squidstatelibrary"
        MOC_DIR += ./GeneratedFiles/release
        OBJECTS_DIR += release
    }
    
    macx {
         QMAKE_LFLAGS += -F"./../../../3rdparty/qwt/bin/lib"
         LIBS += -framework qwt \
                 -lhidapi
         ICON = Resources/Squidstat.icns
    }
    
    unix{
       LIBS += -lqwt \
            -lhidapi-libusb
    }
    include(_SquidStat.pri)
    

  • Lifetime Qt Champion

    Hi,

    I think you are looking for QMAKE_RPATHDIR.