tags:

views:

206

answers:

2

I have a Qt application that I can compile in Ubuntu 10.04 64-bit and on Windows. However, I would like to avoid switching to Windows every time I want to compile the Windows version.

Is there a way I can compile a Windows Qt executable in Ubuntu with mingw32 or something?

Further, is there a way to integrate that compiler into Qt Creator?

A: 

Hi

If you most of your time spend coding with Qt on Linux (for example, Ubuntu), you may produce some experiment: install Wine, install Qt SDK for Windows with Wine and tried to build some simple project!

And if you don't like crazy things, which I wrote above, just use VirtualBox.

mosg
+2  A: 

There is a PPA (Personal Package Archive) for some people who are cross-compiling Qt and related software on Ubuntu for Windows. The PPA contains both the cross-compilers and the dependencies you will need to cross-compile Qt programs. If you look at the source packages there, I think you will be able to figure out how to configure your projects and build them.

Matthew Talbert
Oh yeah. What a coincidence - I just joined LaunchPad a few days ago!
George Edison