Can I create an .exe file or a .dmg file from linux?
-
wrote on 20 Aug 2017, 19:39 last edited by
Hello,
I installed Qt on OpenSuse and I would like to learn using it. I would like to find out if it is possible to create an application that I can make it an .exe file that can run on Windows 10 and a .dmg file that can be executable on a Mac. If so, is there any tutorial for beginners that shows how to do that? -
wrote on 20 Aug 2017, 20:10 last edited by
No you cannot create applications for different platforms under linux.
You need to compile the apps under windows or macos.Karl-Heinz
-
Hi and welcome to devnet,
If you are not using anything Linux specific you can use the MinGW cross-compiler, not easy but doable.
As of macOS, no.
On a side note, if you are just staring to learn, I wouldn't recommend to go the cross-compilation road as a starter. A virtual machine for Windows would be best so you can test your application while developing it.
-
No you cannot create applications for different platforms under linux.
You need to compile the apps under windows or macos.Karl-Heinz
@karlheinzreichel Your claim is wrong: you can build programs for many many other platforms on Linux except MacOS. This is called "cross compilation".
1/4