QT Creator cross compile on remote linux device incorrect QT version
-
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:
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!
-
@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
-
@Ronel_qtmaster What does anything have to do with a VM, as opposed to disk partitions?
-
@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?
-
@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.
-
@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".
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.
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.
-
@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.
-
@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