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. Deployment on Linux

Deployment on Linux

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 324 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.
  • P Offline
    P Offline
    Perdrix
    wrote on 18 Nov 2024, 17:58 last edited by Perdrix
    #1

    I'm in some considerable doubt as to what I am supposed to do so I can deliver my application for installation on Linux.

    I added this to my cmake files in the hope that it would "do the right thing":

     set (deploy_tool_options_arg "")
    if(APPLE)
        set(deploy_tool_options_arg "${deploy_tool_options_arg} --hardened-runtime")
    elseif(WIN32)
        set(deploy_tool_options_arg "${deploy_tool_options_arg} --pdb")
    endif()
    
    # Generate a deployment script to be executed at install time
    # App bundles on macOS have an .app suffix
    if(APPLE)
        set(executable_path "$<TARGET_FILE_NAME:DeepSkyStacker>.app")
    else()
        message ("Target filename:"  $<TARGET_FILE_NAME:DeepSkyStacker>)
        set(executable_path "${CMAKE_INSTALL_BINDIR}/$<TARGET_FILE_NAME:DeepSkyStacker>")
    endif()
    message ("executable_path: " ${executable_path})
    message ("deploy tools options arg: " ${deploy_tool_options_arg})
     qt_generate_deploy_script(
         TARGET DeepSkyStacker
         OUTPUT_SCRIPT deploy_script
         CONTENT "
     qt_deploy_runtime_dependencies(
         EXECUTABLE \"${executable_path}\"
         DEPLOY_TOOL_OPTIONS ${deploy_tool_options_arg}
     )"
     )
    
    INSTALL (TARGETS DeepSkyStacker)
    INSTALL (SCRIPT ${deploy_script})
    

    but for my pains I got:

    -- Install configuration: "Debug"
    -- Installing: /home/amonra/.vs/DSS/Linux/x64/Debug/./DeepSkyStacker
    -- Set non-toolchain portion of runtime path of "/home/amonra/.vs/DSS/Linux/x64/Debug/./DeepSkyStacker" to "$ORIGIN:$ORIGIN/"
    CMake Error at /opt/Qt/6.8.0/gcc_64/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:314 (message):
      No Qt deploy tool available for this target platform
    Call Stack (most recent call first):
      /opt/Qt/6.8.0/gcc_64/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:543 (qt6_deploy_runtime_dependencies)
      .qt/deploy_DeepSkyStacker_dc8dd86514.cmake:5 (qt_deploy_runtime_dependencies)
      DeepSkyStacker/cmake_install.cmake:66 (include)
      cmake_install.cmake:62 (include)
    FAILED: CMakeFiles/install.util 
    cd /home/amonra/.vs/DSS/out/build && /usr/bin/cmake -P cmake_install.cmake
    

    Add to that how is one supposed to handle picking up the Qt .so files if I add them to my installation directory (given the LD_LIBRARY_PATH typically won't contain .).

    David

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Perdrix
      wrote on 18 Nov 2024, 18:12 last edited by Perdrix 20 days from now
      #2

      I found this (after a bit of digging):

      https://doc.qt.io/qt-6/linux-deployment.html

      It answers most of my questions for now. I'll mark this as solved and come back later it I need to.

      1 Reply Last reply
      0
      • P Perdrix referenced this topic on 18 Nov 2024, 18:12
      • P Perdrix has marked this topic as solved on 18 Nov 2024, 18:12
      • G Offline
        G Offline
        Gilboonet
        wrote on 5 Mar 2025, 21:40 last edited by
        #3

        Hello, Isn't the link to what you marked as solution the good one ? It seems to link to your initial post.

        1 Reply Last reply
        1
        • P Offline
          P Offline
          Perdrix
          wrote on 6 Mar 2025, 10:34 last edited by Perdrix 20 days from now
          #4

          Not sure I know how to fix that up ... I didn't intend to link back to the initial post i

          G 1 Reply Last reply 6 Mar 2025, 11:32
          0
          • P Perdrix has marked this topic as unsolved on 6 Mar 2025, 10:36
          • P Perdrix has marked this topic as solved on 6 Mar 2025, 10:37
          • P Perdrix
            6 Mar 2025, 10:34

            Not sure I know how to fix that up ... I didn't intend to link back to the initial post i

            G Offline
            G Offline
            Gilboonet
            wrote on 6 Mar 2025, 11:32 last edited by
            #5

            @Perdrix Thank you, the new link is the good one

            1 Reply Last reply
            0

            5/5

            6 Mar 2025, 11:32

            • Login

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