On Wed, Apr 02, 2008 at 08:40:34AM +0200, Andre Poenitz wrote: > 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
That will work on cygwin but not on mingw because Windows has no support for symlinks. Indeed, there's already something like that in autotroll.m4. It was not working for me for the simple reason that I try to install only the Qt components needed for building LyX, so I use selective "make install_xxx" commands. In this case, instead of "make install_mkspecs" I simply created mkspecs/cygwin-g++-win32 and populated it. Adding the "default" symlink avoids the need for setting QMAKESPEC, indeed. Then I strace'd qmake and saw that it wanted to access the mkspecs/features subdirectory. So i copied it from the build dir and the qt_config error went away. LyX was correctly configured and everything seems dandy. However, when trying mingw (here, setting QMAKESPEC=c:/MinGW/Qt/4.3.4 cannot be avoided, seemingly), I got this: checking for qmake... /c/MinGW/Qt/4.3.4/bin/qmake checking for moc... /c/MinGW/Qt/4.3.4/bin/moc checking for uic... /c/MinGW/Qt/4.3.4/bin/uic checking for rcc... /c/MinGW/Qt/4.3.4/bin/rcc checking whether host operating system is Darwin... no checking for the DEFINES to use with Qt... -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN checking for the INCPATH to use with Qt... -I'../../../MinGW/Qt/4.3.4/include/QtCore' -I'../../../MinGW/Qt/4.3.4/include/QtCore' -I'../../../MinGW/Qt/4.3.4/include/QtGui' -I'../../../MinGW/Qt/4.3.4/include/QtGui' -I'../../../MinGW/Qt/4.3.4/include' -I'.' -I'c:/MinGW/Qt/4.3.4/include/ActiveQt' -I'.' -I'.' -I'../../../MinGW/Qt/4.3.4/mkspecs/win32-g++' checking for the LDFLAGS to use with Qt... -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-subsystem,windows checking for the LIBS to use with Qt... -L'c:/MinGW/Qt/4.3.4/lib' -lmingw32 -lqtmain -lQtGui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 -lz checking for Qt's version... 4.3.4 as you can see, the directories are listed as relative paths, making the configuration unusable. -- Enrico