On Sat, Apr 05, 2008 at 12:01:01AM +0200, Enrico Forestieri wrote: > On Fri, Apr 04, 2008 at 08:08:56PM +0200, Andre Poenitz wrote: > > > I still don't know what the problem is, but maybe > > I think that JMarc is trying to avoid using pkg-config to query > for the Qt configuration.
Fair enough. It should not be needed to figure out the include and library paths anyway... > > qmake -query QT_INSTALL_HEADERS > > qmake QMAKE_INCDIR_QT=/some/path > > > > and maybe > > > > qmake QMAKE_INCDIR_QT=`qmake -query QT_INSTALL_HEADERS` > > > > might help? > > That could provide the location of the headers, and > > qmake -query QT_INSTALL_LIBS > > would tell where the libraries are. From here, one could discover > the needed additional libraries by grepping the .prl files. > > $ qmake -query QT_INSTALL_LIBS > C:/MinGW/Qt/4.3.4/lib > $ grep QMAKE_PRL_LIBS C:/MinGW/Qt/4.3.4/lib/*.prl > C:/MinGW/Qt/4.3.4/lib/QtCore.prl:QMAKE_PRL_LIBS = -lkernel32 -luser32 > -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 -lz > C:/MinGW/Qt/4.3.4/lib/QtGui.prl:QMAKE_PRL_LIBS = -lgdi32 -lcomdlg32 > -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32 -luser32 > -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 -lz > > I see that the .prl files are installed on linux, solaris, cygwin, and > mingw. So, possibly they are always installed everywhere. I guess one could fiddle with 'CONFIG -= create_prl' somehow to prevent that, but I would not expect this being done regularily... Andre'