[Qt-interest] Building QT under from linux using MingW

Allen, Matthew MAllen at utcretail.com
Tue Apr 28 17:08:00 CEST 2009


Why are you trying to compile a win32-g++ version of QT on linux? That doesn't seem like it would work.

And the windows.h file, does it actually exist on the system? Although, it might be part of the mingW distribution.

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Stephan Rose
Sent: Tuesday, April 28, 2009 10:38 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Building QT under from linux using MingW

Somehow I'm having trouble getting QT built via MingW from linux (works fine when doing it from windows).

My configure statement is as follows:

stephan at software:~/src/qt-x11-commercial-src-4.5.0$ ./configure -no-pch -no-qt3support -nomake demos -nomake examples -platform win32-g++

Output from configure:

Creating qmake. Please wait...
i586-mingw32msvc-g++ -c -o project.o  -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/home/stephan/src/qt-x11-commercial-src-4.5.0/include -I/home/stephan/src/qt-x11-commercial-src-4.5.0/include/QtCore -I/home/stephan/src/qt-x11-commercial-src-4.5.0/src/corelib/global -I/home/stephan/src/qt-x11-commercial-src-4.5.0/src/script -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/home/stephan/src/qt-x11-commercial-src-4.5.0/mkspecs/win32-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT  project.cpp
project.cpp:60:21: error: Windows.h: No such file or directory

So it's for some reason not finding the header files even though they exist. I've tried various ways of telling it where the header files are, using -I in the configure string, setting QMAKE_INCDIR in the qmake.conf, none of it seems to do anything.

I've tried google but all references I can find about compiling QT with MingW is doing so from a windows environment which isn't helping me much.

If it matters, running Ubuntu 9.04

Has anyone ever done this before? Know what I'm doing wrong? It'd really help out tremendously if I could stop needing to boot into windows everytime I want to make a windows build of my apps.

Thanks,

Stephan
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list