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. Remote Generic Linux device
Servers for Qt installer are currently down

Remote Generic Linux device

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 4 Posters 1.0k 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.
  • C Offline
    C Offline
    ctnguyenvn
    wrote on 15 Mar 2021, 12:37 last edited by
    #1

    Hello everyone,
    When I created a project with CMake on QtCreator and clicked Run, I encountered errors Warning: You need to add an Install Statement to Your CMAKELISTS.txt File for deployment to work. Source code results are not deployed on Remote server

    last-image_1.png

    My question?
    What configuration do I need to add in cmakelist.txt to do this?

    information:
    QtCreator Version 4.14
    Qt version: 1.75
    Remote: Ubuntu 18.04
    My OS: Archlinux

    1 Reply Last reply
    0
    • A Offline
      A Offline
      amritac
      wrote on 20 May 2022, 08:18 last edited by
      #2

      exactly same issue i am facing,please guide us

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AXZS
        wrote on 7 Sept 2022, 10:01 last edited by
        #3

        Hi,
        Even I am facing same issue.
        Any leads please?

        J 1 Reply Last reply 7 Sept 2022, 10:05
        0
        • A AXZS
          7 Sept 2022, 10:01

          Hi,
          Even I am facing same issue.
          Any leads please?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 7 Sept 2022, 10:05 last edited by
          #4

          @AXZS If you're asking how to extend your CMake script to also install the binaries then start here: https://cmake.org/cmake/help/latest/command/install.html

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply 8 Sept 2022, 11:20
          1
          • J jsulm
            7 Sept 2022, 10:05

            @AXZS If you're asking how to extend your CMake script to also install the binaries then start here: https://cmake.org/cmake/help/latest/command/install.html

            A Offline
            A Offline
            AXZS
            wrote on 8 Sept 2022, 11:20 last edited by
            #5

            @jsulm
            Since ,I am naive to Qt , this link I couldn't understand fully.
            Like

            1. "install TARGET mylib"
              so where is this mylib? who created it ? why only this target

            2. To deploy simple hello world program on targetboard , how cmakefile.txt to be modified with install statement? what to install? libraries/runtime/object/archive/fileset?

            J 1 Reply Last reply 8 Sept 2022, 11:24
            0
            • A AXZS
              8 Sept 2022, 11:20

              @jsulm
              Since ,I am naive to Qt , this link I couldn't understand fully.
              Like

              1. "install TARGET mylib"
                so where is this mylib? who created it ? why only this target

              2. To deploy simple hello world program on targetboard , how cmakefile.txt to be modified with install statement? what to install? libraries/runtime/object/archive/fileset?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 8 Sept 2022, 11:24 last edited by
              #6

              @AXZS This is not a Qt topic, but CMake one.
              If you take a look at the whole example:

              add_library(mylib STATIC ...)
              set_target_properties(mylib PROPERTIES PUBLIC_HEADER mylib.h)
              include(GNUInstallDirs)
              install(TARGETS mylib
                      PUBLIC_HEADER
                        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/myproj
              )
              

              You will see what mylib is: it's a target building a static library. So, for each of your targets you want to install you need an install() directive.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply 8 Sept 2022, 11:30
              0
              • J jsulm
                8 Sept 2022, 11:24

                @AXZS This is not a Qt topic, but CMake one.
                If you take a look at the whole example:

                add_library(mylib STATIC ...)
                set_target_properties(mylib PROPERTIES PUBLIC_HEADER mylib.h)
                include(GNUInstallDirs)
                install(TARGETS mylib
                        PUBLIC_HEADER
                          DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/myproj
                )
                

                You will see what mylib is: it's a target building a static library. So, for each of your targets you want to install you need an install() directive.

                A Offline
                A Offline
                AXZS
                wrote on 8 Sept 2022, 11:30 last edited by
                #7

                @jsulm
                Thanks for prompt support.

                But I am still not clear where is this target mylib?
                I went through this example but could'nt get it.

                And do We need all targets to be modified in file? lets say for hello world program.. what are targets for it?

                J 1 Reply Last reply 8 Sept 2022, 11:35
                0
                • A AXZS
                  8 Sept 2022, 11:30

                  @jsulm
                  Thanks for prompt support.

                  But I am still not clear where is this target mylib?
                  I went through this example but could'nt get it.

                  And do We need all targets to be modified in file? lets say for hello world program.. what are targets for it?

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 8 Sept 2022, 11:35 last edited by
                  #8

                  @AXZS said in Remote Generic Linux device:

                  But I am still not clear where is this target mylib?

                  In the example I posted:

                  add_library(mylib STATIC ...)
                  

                  Please read https://cmake.org/cmake/help/latest/command/add_library.html
                  You should really learn CMake if you want to use it.

                  "And do We need all targets to be modified in file?" - I don't understand this question. What do you want to modify.
                  "lets say for hello world program.. what are targets for it?" - the target for your executable: https://cmake.org/cmake/help/latest/command/add_executable.html

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  A 1 Reply Last reply 8 Sept 2022, 11:51
                  1
                  • J jsulm
                    8 Sept 2022, 11:35

                    @AXZS said in Remote Generic Linux device:

                    But I am still not clear where is this target mylib?

                    In the example I posted:

                    add_library(mylib STATIC ...)
                    

                    Please read https://cmake.org/cmake/help/latest/command/add_library.html
                    You should really learn CMake if you want to use it.

                    "And do We need all targets to be modified in file?" - I don't understand this question. What do you want to modify.
                    "lets say for hello world program.. what are targets for it?" - the target for your executable: https://cmake.org/cmake/help/latest/command/add_executable.html

                    A Offline
                    A Offline
                    AXZS
                    wrote on 8 Sept 2022, 11:51 last edited by
                    #9

                    @jsulm Thankyou very much for said support.
                    Everyone is learning and discussing over the world parallelely.

                    Thanks a lot.

                    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