On Tue, Apr 01, 2008 at 01:00:25PM +0200, Jean-Marc Lasgouttes wrote: > I have no idea whether this works on windows/mingw or windows/cygwin, > but I'd be interested to learn about it.
Seemingly, it doesn't work. I firstly ran configure using the switch --with-qt='/usr/local/qt/4.3.4' and got: checking for qmake... /usr/local/qt/4.3.4/bin/qmake checking for moc... /usr/local/qt/4.3.4/bin/moc checking for uic... /usr/local/qt/4.3.4/bin/uic checking for rcc... /usr/local/qt/4.3.4/bin/rcc checking whether host operating system is Darwin... no checking for the DEFINES to use with Qt... checking for the INCPATH to use with Qt... -I/usr/lib/qt3/mkspecs/cygwin-g++ -I. -I. checking for the LDFLAGS to use with Qt... -Wl,--enable-runtime-pseudo-reloc checking for the LIBS to use with Qt... checking for Qt's version... 4.3.4 Here, the DEFINES, INCPATH, LDFLAGS, and LIBS bits are all wrong. I traced this to QMAKESPEC=/usr/lib/qt3/mkspecs/cygwin-g++ being put in my environment by /etc/profile.d/qt3-devel.sh Then, I unset QMAKESPEC and got: checking for qmake... /usr/local/qt/4.3.4/bin/qmake checking for moc... /usr/local/qt/4.3.4/bin/moc checking for uic... /usr/local/qt/4.3.4/bin/uic checking for rcc... /usr/local/qt/4.3.4/bin/rcc checking whether host operating system is Darwin... no QMAKESPEC has not been set, so configuration cannot be deduced. Error processing project file: /tmp/conftest3180.dir/conftest3180.dir.pro configure: error: Calling /usr/local/qt/4.3.4/bin/qmake failed. Thus, I set QMAKESPEC=/usr/local/qt/4.3.4/mkspecs/cygwin-g++-win32 but was greeted with: checking for qmake... /usr/local/qt/4.3.4/bin/qmake checking for moc... /usr/local/qt/4.3.4/bin/moc checking for uic... /usr/local/qt/4.3.4/bin/uic checking for rcc... /usr/local/qt/4.3.4/bin/rcc checking whether host operating system is Darwin... no Project LOAD(): Feature qt_config cannot be found. configure: error: Calling /usr/local/qt/4.3.4/bin/qmake failed. :( I had a look at configure, and saw that it tries to extract info from some Makefile. So I tried pointing to the qt4 build dir by using --with-qt='/usr/local/src/qt/qtwin-4.3.4/build-cygwin'" and that seems to have (almost) worked: checking for qmake... /usr/local/src/qt/qtwin-4.3.4/build-cygwin/bin/qmake checking for moc... /usr/local/src/qt/qtwin-4.3.4/build-cygwin/bin/moc checking for uic... /usr/local/src/qt/qtwin-4.3.4/build-cygwin/bin/uic checking for rcc... /usr/local/src/qt/qtwin-4.3.4/build-cygwin/bin/rcc checking whether host operating system is Darwin... no checking for the DEFINES to use with Qt... -DUNICODE -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_GUI_LIB -DQT_CORE_LIB checking for the INCPATH to use with Qt... -I/usr/local/src/qt/qtwin-4.3.4/mkspecs/cygwin-g++-win32 -I. -I/usr/local/qt/4.3.4/include/QtCore -I/usr/local/qt/4.3.4/include/QtCore -I/usr/local/qt/4.3.4/include/QtGui -I/usr/local/qt/4.3.4/include/QtGui -I/usr/local/qt/4.3.4/include -I. -I. -I. checking for the LDFLAGS to use with Qt... -Wl,-s checking for the LIBS to use with Qt... -L/usr/local/qt/4.3.4/lib -lQtGui -L/usr/local/qt/4.3.4/lib -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lpng -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lz -lm -lpthread checking for Qt's version... 4.3.4 I don't want to use the same LDFLAGS used to build Qt, for example, as in this case I would lose the debug info, whether or not I want it. Then, I have to point configure to the build dir, but should also have installed Qt, as the spotted directories are the installation ones. Needless to say that I find all of this very inconvenient. Moreover, I don't think that this is cygwin specific. -- Enrico