Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I cross-compile in Linux or Windows?

To create a .exe in Linux using Qt SDK, should I cross compile my application in Linux or cross-compile my application in Windows?

like image 554
suse Avatar asked Jun 22 '09 06:06

suse


2 Answers

You need to cross compile on Linux, for windows.

EDIT:

  1. install MinGW on Linux.
  2. cross-compile your Qt code on Linux. A windows binary (.exe) should be produced.
  3. You are done. Happily execute the exe on any windows system with Qt runtime libraries.

Hope that clears things up.

jrh

like image 193
jrharshath Avatar answered Oct 11 '22 13:10

jrharshath


Either cross-compile in Linux, or compile in Windows.

like image 20
Alan Haggai Alavi Avatar answered Oct 11 '22 15:10

Alan Haggai Alavi