Compiling an app in windows for linux
Hi to all,
I’m developing a Qt aplication who runs on windows xp.
Now I have to run that application on linux.
How can I do this?
I read some post which discuss about this issue, but I couldn’t find a simple answer.
The only thingh that I understood is that the simpler way to compile an application wrote for windows it is to compile it directly on linux. I mean, is Qt “Write once, compile everywhere”? Is it true?
Thanks in advance!
“compile everywhere” means what it says: compile separately on every platform. This is C++, after all, it has to be compiled.
There are ways to compile for other platforms (so called cross-compilation). Qt has public mkspecs, you can find them on Gitorious – they might help. The easiest and most reliable way (remember, that OSes vary VERY significantly, especially when we talk Unix vs. Windows) is to compile on every platform yourself.