Cross-compile Windows on Linux and Qt
-
Hi i want to compile since linux one .exe file for windows it's possible? and it's too hard to get this goal? Some idea how or some advice to get this goal?
-
Hi
Compiling for windows on linux is hard to setup and maintain. ( I think/feel)
Unless you are prepared to spend DAYS reading docs and understanding the toolchain
completely it's not much fun. Also often you must compile Qt with mingw cross compiler. ( takes long time)
So time wise,
its much faster to grab virtual box and
run a windows inside linux and do the compile there than to get
Qt running as cross compile.https://www.tinc-vpn.org/examples/cross-compiling-64-bit-windows-binary/
( not with Qt. But idea is the same) -
Don't do it. It might be possible but it will be way too hard. Better set up a windows server and compile / test your stuff remotely.
-
You can do it easily using the Windows Subsystem for Linux. With proper setup you can even do it at the press of a button if you can setup the Visual C++ for Linux VS Add-In and even debug the remote application with symbols brought over to the VS.
-
You can do it easily using the Windows Subsystem for Linux. With proper setup you can even do it at the press of a button if you can setup the Visual C++ for Linux VS Add-In and even debug the remote application with symbols brought over to the VS.
@Meteorhead Unfortunatly no: WSL is a compatibility layer to run Ubuntu Linux binaries on Windows. The OP wants to cross-compile Windows binaries on Linux.
-
Sry, I thought it was the other way around.