[Qt-interest] Building QT under from linux using MingW
Stephan Rose
kermos at somrek.net
Tue Apr 28 16:37:32 CEST 2009
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
More information about the Qt-interest-old
mailing list