Cross-compile Windows on Linux and Qt
-
wrote on 15 Dec 2016, 01:53 last edited by A Former User
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 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?
@RIVOPICO IT is possible with MinGW, but it is way easier to do it on Windows.
You will need to install MinGW and compile Qt using it.
I never did this, so I don't have an detailed tutorial. -
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) -
wrote on 15 Dec 2016, 14:41 last edited by
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.
-
wrote on 15 Dec 2016, 15:34 last edited by
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.
wrote on 15 Dec 2016, 15:45 last edited by@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.
-
wrote on 15 Dec 2016, 15:49 last edited by
Sry, I thought it was the other way around.
4/7