Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is Qt tool add RunPath automatically on execution file ?
QtWS25 Last Chance

Is Qt tool add RunPath automatically on execution file ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmakelinuxubuntu 18.04qt 5.13.1qt creator
2 Posts 2 Posters 571 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Yash001
    wrote on last edited by Yash001
    #1

    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)
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      I think you are looking for QMAKE_RPATHDIR.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved