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. QT Creator cross compile on remote linux device incorrect QT version
Forum Update on Monday, May 27th 2025

QT Creator cross compile on remote linux device incorrect QT version

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 477 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.
  • K Offline
    K Offline
    KeithMarex
    wrote on 27 Mar 2024, 16:29 last edited by
    #1

    Hi all!

    I have been struggling lately with the cross "Deploy and debug" functionality from QT Creator 12.0.2. I have a RHEL 8.8 VM where I compile and run my own project on. I access this VM with VNC, but this has it's downsides of course. I was willing to try out the cross compile functionality and got everything set up correctly, beside one thing. The QT version.

    Preferences -> Kits -> QT Versions Only allows .exe and .bat files. Link with QT creator allows to link a remote QT creator, but none of the paths I fill in seem to be correct. Trying windows compatible QT versions gives the following error:

    2092ff86-8633-4dbb-8e8e-f6939ee01793-image.png

    But I am unable to download a QT version which is compatible for the linux-generic GCC++. Selecting none as QT version results in the CMake tool being unconfigured.

    My questions right now is: How can I select the QT version located on my remote linux machine or is there a QT version for windows which supports x86-linux-generic-elf-64bit?

    Thanks in advance!

    R 1 Reply Last reply 27 Mar 2024, 16:50
    0
    • K KeithMarex
      27 Mar 2024, 16:29

      Hi all!

      I have been struggling lately with the cross "Deploy and debug" functionality from QT Creator 12.0.2. I have a RHEL 8.8 VM where I compile and run my own project on. I access this VM with VNC, but this has it's downsides of course. I was willing to try out the cross compile functionality and got everything set up correctly, beside one thing. The QT version.

      Preferences -> Kits -> QT Versions Only allows .exe and .bat files. Link with QT creator allows to link a remote QT creator, but none of the paths I fill in seem to be correct. Trying windows compatible QT versions gives the following error:

      2092ff86-8633-4dbb-8e8e-f6939ee01793-image.png

      But I am unable to download a QT version which is compatible for the linux-generic GCC++. Selecting none as QT version results in the CMake tool being unconfigured.

      My questions right now is: How can I select the QT version located on my remote linux machine or is there a QT version for windows which supports x86-linux-generic-elf-64bit?

      Thanks in advance!

      R Offline
      R Offline
      Ronel_qtmaster
      wrote on 27 Mar 2024, 16:50 last edited by
      #2

      @KeithMarex You cannot do that with VM. I think it is better to create a partition in your disk for linux, download qt sources and cross compile again

      J 1 Reply Last reply 27 Mar 2024, 17:00
      0
      • R Ronel_qtmaster
        27 Mar 2024, 16:50

        @KeithMarex You cannot do that with VM. I think it is better to create a partition in your disk for linux, download qt sources and cross compile again

        J Offline
        J Offline
        JonB
        wrote on 27 Mar 2024, 17:00 last edited by JonB
        #3

        @Ronel_qtmaster What does anything have to do with a VM, as opposed to disk partitions?

        R 1 Reply Last reply 27 Mar 2024, 17:13
        1
        • J JonB
          27 Mar 2024, 17:00

          @Ronel_qtmaster What does anything have to do with a VM, as opposed to disk partitions?

          R Offline
          R Offline
          Ronel_qtmaster
          wrote on 27 Mar 2024, 17:13 last edited by
          #4

          @JonB he said he is trying to compile Qt from a virtual machine, which is not really right to do.Cross compilation means you compile a framework or tool from a host environment and deploy it to another targeted host.If he compiles on linux to deploy to raspberry pi for exemple, how will he specify the path to the framework installed in the target host , when it is running on a VM?

          J K 2 Replies Last reply 27 Mar 2024, 17:39
          0
          • R Ronel_qtmaster
            27 Mar 2024, 17:13

            @JonB he said he is trying to compile Qt from a virtual machine, which is not really right to do.Cross compilation means you compile a framework or tool from a host environment and deploy it to another targeted host.If he compiles on linux to deploy to raspberry pi for exemple, how will he specify the path to the framework installed in the target host , when it is running on a VM?

            J Offline
            J Offline
            JonB
            wrote on 27 Mar 2024, 17:39 last edited by JonB
            #5

            @Ronel_qtmaster
            I know what cross-compilation is. I have no problem sharing files/directories between by host and guest when using a VM if that's what I want to do. Just as much as sharing disk partitions.

            You may know more than I do. I just didn't see why OP should not use a VM, and being told not to use one sounded a bit drastic to me. Maybe you are right, but let's leave it at that.

            1 Reply Last reply
            0
            • R Ronel_qtmaster
              27 Mar 2024, 17:13

              @JonB he said he is trying to compile Qt from a virtual machine, which is not really right to do.Cross compilation means you compile a framework or tool from a host environment and deploy it to another targeted host.If he compiles on linux to deploy to raspberry pi for exemple, how will he specify the path to the framework installed in the target host , when it is running on a VM?

              K Offline
              K Offline
              KeithMarex
              wrote on 28 Mar 2024, 09:56 last edited by KeithMarex
              #6

              @Ronel_qtmaster I understand your point about the cross compilation part. Write code and run it on Windows or Linux in this case. I might have been a bit unclear. QT Creator provides the option to run your project on a "Remote Linux Device".

              eb8d37b0-2048-40f4-b28b-634340b54667-afbeelding.png

              And the following are set correctly (located at the remote linux device), except for the QT Version. I need a QT Version for windows which is compatible with the generic-linux gcc and gcc++, or should be able to choose a QT version on the remote linux device.

              ec24e3ad-2750-4437-89f0-9cf906a07f36-afbeelding.png

              To eventually debug the project on the kit meant for the remote linux device. Note that now QT for android is selected, just ignore that.

              P.S. I will change the title of this thread since the current one is not clearly stating my problem. Sorry for the inconvenience.

              J R 2 Replies Last reply 28 Mar 2024, 10:07
              0
              • K KeithMarex
                28 Mar 2024, 09:56

                @Ronel_qtmaster I understand your point about the cross compilation part. Write code and run it on Windows or Linux in this case. I might have been a bit unclear. QT Creator provides the option to run your project on a "Remote Linux Device".

                eb8d37b0-2048-40f4-b28b-634340b54667-afbeelding.png

                And the following are set correctly (located at the remote linux device), except for the QT Version. I need a QT Version for windows which is compatible with the generic-linux gcc and gcc++, or should be able to choose a QT version on the remote linux device.

                ec24e3ad-2750-4437-89f0-9cf906a07f36-afbeelding.png

                To eventually debug the project on the kit meant for the remote linux device. Note that now QT for android is selected, just ignore that.

                P.S. I will change the title of this thread since the current one is not clearly stating my problem. Sorry for the inconvenience.

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 28 Mar 2024, 10:07 last edited by
                #7

                @KeithMarex said in QT Creator cross compile on remote linux device incorrect QT version:

                which is compatible with the generic-linux gcc and gcc++, or should be able to choose a QT version on the remote linux device.

                You cannot use normal GCC compiler on Linux to build for Windows. You need to install MinGW GCC version on your Linux machine.

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

                1 Reply Last reply
                0
                • K KeithMarex
                  28 Mar 2024, 09:56

                  @Ronel_qtmaster I understand your point about the cross compilation part. Write code and run it on Windows or Linux in this case. I might have been a bit unclear. QT Creator provides the option to run your project on a "Remote Linux Device".

                  eb8d37b0-2048-40f4-b28b-634340b54667-afbeelding.png

                  And the following are set correctly (located at the remote linux device), except for the QT Version. I need a QT Version for windows which is compatible with the generic-linux gcc and gcc++, or should be able to choose a QT version on the remote linux device.

                  ec24e3ad-2750-4437-89f0-9cf906a07f36-afbeelding.png

                  To eventually debug the project on the kit meant for the remote linux device. Note that now QT for android is selected, just ignore that.

                  P.S. I will change the title of this thread since the current one is not clearly stating my problem. Sorry for the inconvenience.

                  R Offline
                  R Offline
                  Ronel_qtmaster
                  wrote on 28 Mar 2024, 18:13 last edited by Ronel_qtmaster
                  #8

                  @KeithMarex Only after cross compilation that you will have that compatible version for the generic -linux
                  you will need to have something like this in your Qt Versions
                  cross.PNG

                  1 Reply Last reply
                  1

                  1/8

                  27 Mar 2024, 16:29

                  • Login

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