On Wed, Apr 02, 2008 at 04:54:32AM +0200, Enrico Forestieri wrote: > 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 wonder whether qmake -v -> /tmp/qt-x11-opensource-src-4.3.2/lib (cd /tmp/qt-x11-opensource-src-4.3.2/lib/../mkspecs/default && /bin/pwd) -> /data/qt-x11-opensource-src-4.3.2/mkspecs/linux-g++ would yield enough information to determine QTDIR and QMAKESPEC Andre'