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?

4
  • 1
    What you're looking for is called a "cross-compiler". Here's a related thread on the Ubuntu forums, FWIW: ubuntuforums.org/showthread.php?t=22879 May 27, 2010 at 17:33
  • alternatively you could use a virtual machine. :) May 27, 2010 at 17:39
  • That's great, but it doesn't explain how to integrate with Qt. May 27, 2010 at 17:39
  • 1
    QtCreator can drive any makefile (or makefile-like) building procedure
    – Javier
    May 27, 2010 at 17:47

2 Answers 2

2

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.

1
  • Oh yeah. What a coincidence - I just joined LaunchPad a few days ago! Jun 2, 2010 at 1:34
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.