December 23, 2011

Giomaca Giomaca
Lab Rat
5 posts

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!

2 replies

December 23, 2011

AlricDoRei AlricDoRei
Lab Rat
12 posts

You can install Qt SDK on Linux and compile your application using Qt Creator IDE and qmake on Linux. I am using Qt Creator IDE on both platforms.

December 23, 2011

sierdzio sierdzio
Area 51 Engineer
2334 posts

“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.

 Signature 

(Z(:^

 
  ‹‹ conversion of std::string to qstring over Qdbus and Provide QDBusArgument streaming operators      Embedding a keyboard or Keyboard solution for different languages ››

You must log in to post a reply. Not a member yet? Register here!