Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cpack deployment error: file RPATH_SET that does not exist
Forum Updated to NodeBB v4.3 + New Features

Cpack deployment error: file RPATH_SET that does not exist

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 274 Views 1 Watching
  • 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.
  • R Offline
    R Offline
    Ralf_G
    wrote on last edited by
    #1

    Hello Community,

    I am trying to deploy a Qt program using the qt_generate_deploy_app_script command and pack it up as RPM according to the instructions here: https://www.qt.io/blog/deploying-to-linux-with-cmake.

    It seems to me, that the Qt deployment script does not work with the changed destination for installing, that is set by cpack.

    I added a minimal program that illustrates the problem below. I am using Qt 6.7.2 on RHEL 9.2.

    Thanks for any help,
    Ralf

    Steps to reproduce:

    mkdir build
    cd build
    ~/Qt/Tools/CMake/bin/cmake -DCMAKE_PREFIX_PATH=~/Qt/6.7.2/gcc_64/ ..
    make
    make package
    

    The error is the following:

    CMake Error at <HOME>/Qt/6.7.2/gcc_64/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:139 (file):
      file RPATH_SET given FILE
      "/usr/plugins/egldeviceintegrations/libqeglfs-emu-integration.so" that does
      not exist.
    

    main.cpp

    #include <QDebug>
    #include <QApplication>
    
    int main(int argc, char *argv[]) {
        QApplication app(argc, argv);
        qDebug() << "Hello World";
    }
    

    CMakeLists.cpp

    cmake_minimum_required(VERSION 3.29.3)
    
    project(helloworld VERSION 0.1 LANGUAGES CXX)
    
    set(CMAKE_CXX_STANDARD 17)
    set(CMAKE_CXX_STANDARD_REQUIRED ON)
    
    find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
    
    qt_standard_project_setup()
    
    qt_add_executable(helloworld main.cpp)
    
    target_link_libraries(helloworld PRIVATE Qt6::Core Qt6::Gui Qt6::Widgets)
    
    install(TARGETS helloworld)
    
    qt_generate_deploy_app_script(
        TARGET helloworld
        OUTPUT_SCRIPT deploy_script
        NO_TRANSLATIONS
        NO_COMPILER_RUNTIME
        NO_UNSUPPORTED_PLATFORM_ERROR
    )
    install(SCRIPT ${deploy_script})
    
    set(CPACK_GENERATOR RPM)
    include(CPack)
    
    1 Reply Last reply
    1
    • G Offline
      G Offline
      gmclell
      wrote on last edited by
      #2

      What did you set to change the output directory of your libs?
      I'm having the same issue, can't change the output directory of the qt_generate_deploy_app_script. When I tried by setting CMAKE_INSTALL_LIBDIR, I get RPATH errors and can't make the package successfully.

      1 Reply Last reply
      0

      • Login

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