Unsolved Is it possible to deploy/develop a Linux app from windows QT platform?
-
I've got a system running Linux 18.x but its too slow to develop any app on it. So is it possible to develop a Linux based application using windows QT platform?
-
Hi and welcome to the forums.
Compiling for another platform on one platform is called cross compiling and
its often hard to setup.
But yes it is possible.
There is also the new linux sub system for windows that might work fine.
https://www.windowscentral.com/install-windows-subsystem-linux-windows-10But if you windows is ok powerful then a virtual machine (virtual box) with a
linux inside is so much easier. -
@mrjj
I am interested to know: if/when you have successfully cross-compiled for another platform, can you then set up to use the targetlinux/win/macdeployqt
from the foreign development platform? -
Another possibility is to use Wine on Linux, i.e. you compile/build your program as a normal .exe for Windows, then run it on Wine on Linux.
-
@mrjj Thank you for your help. Can I install QT on windows using windows subsystem for Linux?
-
@jensen
Well i have not tried it (i use a virtual machine)
but with WSL2 supports graphical apps so good chances you can make it work with Creator.
But you will be able to compile etc for sure as everything command line just works.https://ubuntu.com/blog/ubuntu-on-wsl-2-is-generally-available
https://www.pcworld.com/article/3543763/windows-10-moves-closer-to-true-linux-with-graphical-support-for-wsl2.html