Skip to content
Advertisement

Build Qt application for Linux in Windows using Qt Creator

I want to run a Qt application in Linux which is compiled on Windows using Qt Creator.

I tried googling but I did not get any answers regarding Qt creator. I found for Visual studio. Can anyone please let me know if this can be done in Qt Creator in Windows7 ? Do I need to install any other compilers ?

Thanks in advance.

Advertisement

Answer

If you don’t want to install Linux, I think the best way is using a Virtual Machine. That’s because even if the source code compiles for Linux, how could it be verified to run? You will need a real target environment to finally test your application.

From a complexity point of view, I think setting up a Linux machine (VM or not) and the necessary environment for Qt is a whole lot simpler than cross compiling bug hunting afterwards.

You can install Qt on the installed Linux, copy your project there, compile it and see the results in the real environment. This way you can cope with the minor differences when porting from one OS to another easily.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement