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. Is it possible to run remotely an executable built with CMake ?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to run remotely an executable built with CMake ?

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 5 Posters 2.8k Views 2 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.
  • M Offline
    M Offline
    moutie
    wrote on last edited by
    #1

    Hello,

    I am currently trying to run an executable built with Cmake on a remote device.

    I followed the tutorial to set up a kit and use a toolchain. To test, I used a QtCreator project and everything works perfectly (I can build the project, deploy it on the device and execute it remotely).
    However I cannot do the same for a CMake project. I can build it and deploy it but I cannot run it. In fact, when I go to projects->name_of_my_kit->Run, I do not have the same options in the Run part.
    With a QtCreator project there are two fields which show the path toward my local and remote executables whereas now I can only chose one executable and it is the local one.

    I have spent a lot of time to google my problem and I have not found yet someone trying the same thing.

    Is it possible to run an executable built with CMake remotely through QtCreator ?
    My last goal is to debug while the programme is running on the device like a QtCreator project.

    QtCreator : 3.0.1
    Ubuntu 12.04
    Qt : 5.2.1

    MijazM 1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      How to deploy files to devices (and which files need to be deployed) is unfortunately bound to the build system used. Creator does not support that for cmake at this time.

      You can add the necessary steps manually (e.g. by running scp as a custom step in the deployment) and then run a custom executable which will run your command via ssh on the target machine. That is a bit of work to set up though.

      1 Reply Last reply
      1
      • M moutie

        Hello,

        I am currently trying to run an executable built with Cmake on a remote device.

        I followed the tutorial to set up a kit and use a toolchain. To test, I used a QtCreator project and everything works perfectly (I can build the project, deploy it on the device and execute it remotely).
        However I cannot do the same for a CMake project. I can build it and deploy it but I cannot run it. In fact, when I go to projects->name_of_my_kit->Run, I do not have the same options in the Run part.
        With a QtCreator project there are two fields which show the path toward my local and remote executables whereas now I can only chose one executable and it is the local one.

        I have spent a lot of time to google my problem and I have not found yet someone trying the same thing.

        Is it possible to run an executable built with CMake remotely through QtCreator ?
        My last goal is to debug while the programme is running on the device like a QtCreator project.

        QtCreator : 3.0.1
        Ubuntu 12.04
        Qt : 5.2.1

        MijazM Offline
        MijazM Offline
        Mijaz
        wrote on last edited by
        #3

        @moutie Hi This is M.Ijaz from Pakistan, I am working on qt application to run remotely. I tried much time but not successful yet. will you please help me.?

        1 Reply Last reply
        0
        • MijazM Offline
          MijazM Offline
          Mijaz
          wrote on last edited by
          #4

          I want to run my qt application which I design in Host PC to the sdr board.

          aha_1980A 1 Reply Last reply
          0
          • MijazM Mijaz

            I want to run my qt application which I design in Host PC to the sdr board.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi @mijazm,

            have a look here: https://doc.qt.io/qtcreator/creator-deployment-embedded-linux.html#deploying-cmake-projects-to-embedded-linux-devices

            Regards

            Qt has to stay free or it will die.

            MijazM 1 Reply Last reply
            2
            • aha_1980A aha_1980

              Hi @mijazm,

              have a look here: https://doc.qt.io/qtcreator/creator-deployment-embedded-linux.html#deploying-cmake-projects-to-embedded-linux-devices

              Regards

              MijazM Offline
              MijazM Offline
              Mijaz
              wrote on last edited by
              #6

              @aha_1980 Hi, thanks for reply,
              I have successfully deployed project to sdr boad.
              I have cross compiled executable file from QT 4.8.7 and i am running it on SDR ADRV9361 board (Linaro-Ubuntu). When i run the cross compiled executable file (which is cross compiled on Ubuntu 16.04) on my SDR board, i got the error message like : " symbol lookup error : ./project: undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent". I don't know why i am getting this error as I conformed tool chain version on both side, please help.

              I followed following forums:

              https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/

              https://forum.qt.io/topic/52546/tuto-build-qt-to-cross-compile-for-arm/2

              https://www.tal.org/tutorials/building-qt-512-raspberry-pi

              I have deployed my qt project to my sdr board. When I try to execute my project on board following error occurs:

              symbol lookup error: ./project: undfined symbol: _ZN7QWidget8qwsEventEP8QWSEvent

              I have verified following from PC and Board outputs are given bellow respectively:

              strings /usr/lib/arm-linux-gnueabihf/libQtDeclarative.so.4 | egrep 'qwsEvent|x11Event'

              PC:
              _ZN7QWidget8qwsEventEP8QWSEvent

              Board:
              _ZN7QWidget8x11EventEP8QWSEvent

              Now only difference is qws and x11, How I can change this x11Event (Board) to qwsEvent to execute my project successfully?

              SGaistS 1 Reply Last reply
              0
              • MijazM Mijaz

                @aha_1980 Hi, thanks for reply,
                I have successfully deployed project to sdr boad.
                I have cross compiled executable file from QT 4.8.7 and i am running it on SDR ADRV9361 board (Linaro-Ubuntu). When i run the cross compiled executable file (which is cross compiled on Ubuntu 16.04) on my SDR board, i got the error message like : " symbol lookup error : ./project: undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent". I don't know why i am getting this error as I conformed tool chain version on both side, please help.

                I followed following forums:

                https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/

                https://forum.qt.io/topic/52546/tuto-build-qt-to-cross-compile-for-arm/2

                https://www.tal.org/tutorials/building-qt-512-raspberry-pi

                I have deployed my qt project to my sdr board. When I try to execute my project on board following error occurs:

                symbol lookup error: ./project: undfined symbol: _ZN7QWidget8qwsEventEP8QWSEvent

                I have verified following from PC and Board outputs are given bellow respectively:

                strings /usr/lib/arm-linux-gnueabihf/libQtDeclarative.so.4 | egrep 'qwsEvent|x11Event'

                PC:
                _ZN7QWidget8qwsEventEP8QWSEvent

                Board:
                _ZN7QWidget8x11EventEP8QWSEvent

                Now only difference is qws and x11, How I can change this x11Event (Board) to qwsEvent to execute my project successfully?

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi @Mijaz ,

                Please don't necro-post threads with a question that is not even related to the original author's problem.

                As for yours, you need to deploy your cross-compiled Qt on your board so its found rather than your board provided version.

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

                MijazM 1 Reply Last reply
                1
                • SGaistS SGaist

                  Hi @Mijaz ,

                  Please don't necro-post threads with a question that is not even related to the original author's problem.

                  As for yours, you need to deploy your cross-compiled Qt on your board so its found rather than your board provided version.

                  MijazM Offline
                  MijazM Offline
                  Mijaz
                  wrote on last edited by
                  #8

                  Hi @SGaist ,
                  Thanks for responding, I have deployed my cross-compiled Qt to the board, But I am unable to find the reseason why the classes are changed (qwsEvent | x11Event).

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Let's continue there.

                    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
                    0

                    • Login

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