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
QtWS25 Last Chance

QT Creator cross compile on remote linux device incorrect QT version

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 470 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 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!

    Ronel_qtmasterR 1 Reply Last reply
    0
    • K KeithMarex

      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!

      Ronel_qtmasterR Offline
      Ronel_qtmasterR Offline
      Ronel_qtmaster
      wrote on 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

      JonBJ 1 Reply Last reply
      0
      • Ronel_qtmasterR Ronel_qtmaster

        @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

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

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

        Ronel_qtmasterR 1 Reply Last reply
        1
        • JonBJ JonB

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

          Ronel_qtmasterR Offline
          Ronel_qtmasterR Offline
          Ronel_qtmaster
          wrote on 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?

          JonBJ K 2 Replies Last reply
          0
          • Ronel_qtmasterR Ronel_qtmaster

            @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?

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on 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
            • Ronel_qtmasterR Ronel_qtmaster

              @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 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.

              jsulmJ Ronel_qtmasterR 2 Replies Last reply
              0
              • K KeithMarex

                @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.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on 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

                  @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.

                  Ronel_qtmasterR Offline
                  Ronel_qtmasterR Offline
                  Ronel_qtmaster
                  wrote on 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

                  • Login

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