PDA

View Full Version : Building for Windows



qball2k5
7th March 2006, 20:51
Hello!

I'm trying to build my application to a executable runnable on Windows. The source was written on Linux.

What is the proper sequence of qmake/make commands to get this to happen.

Thanks.

wysota
7th March 2006, 20:57
Did you, by any chance, read the docs? And did you, by any chance, try the same sequence as on Linux?

qball2k5
7th March 2006, 21:03
Yeah I've looked but I haven't found anything.

The process I use in Linux is
qmake -project
qmake
make

But that doesn't create a usable executable in Windows.

I've tried
qmake -project -win32
qmake
make

But that doesn't work

jacek
7th March 2006, 21:27
But that doesn't work
How does it "doesn't work"? Are you trying to cross-compile your application?

qball2k5
7th March 2006, 21:33
Yes....that's what I'm trying to accomplish.

It's not a big deal. I don't even need to know the answer right now.

jacek
7th March 2006, 22:21
I've never tried it, but I guess you have to take one of the directories from QTDIR/mkspecs and tweak the qmake.conf and qplatformdefs.h, so that they point to your cross-compiler toolchain, and then cross-compile Qt and your application.

One thing I'm sure is that it isn't possible with Open Source edition of Qt/X11 --- you will have to download the windows version.

If you manage to do it, write a tutorial and we will publish it here. ;)

ChristianEhrlicher
8th March 2006, 07:34
There was a post about this on qt-interest two days ago:
http://lists.trolltech.com/qt-interest/2006-03/thread00351-0.html