Hello everyone,
I have a rather strange problem. I downloaded the Qt 5.2.1 source zip for windows. My goal is to build QT 5.2.1 with a PostgreSQL driver and for usage with VS2008. I already managed to compile it successfully without usage of the -prefix option in the configure call.
The configure call then looks as follows:
configure.bat -debug-and-release -opensource -shared -qt-sql-psql -opengl desktop -nomake examples -platform win32-msvc2008 -system-zlib -no-warnings-are-errors -mp -I “C:\Progra~2\PostgreSQL\9.2\include” -l “C:\Progra~2\PostgreSQL\9.2\lib\libpq” -L d:\others\qt-zlib\Release
However when I use the -prefix option to install into another directory than “qtbase” I get compile errors like the following:
d:\others\qt-everywhere-opensource-src-5.2.1\qtbase\src\network\access\qabstractnetworkcache_p.h(56) : fatal error C1083: Datei (Include) kann nicht geöffnet werden: “private/qobject_p.h”: No such file or directory
Translated it means that the given header file can not be found.
The configure command I used therefore is:
configure.bat -prefix “d:\devel\qt\5.2.1” -debug-and-release -opensource -shared -qt-sql-psql -opengl desktop -nomake examples -platform win32-msvc2008 -system-zlib -no-warnings-are-errors -mp -I “C:\Progra~2\PostgreSQL\9.2\include” -l “C:\Progra~2\PostgreSQL\9.2\lib\libpq” -L d:\others\qt-zlib\Release
So it only differs in the -prefix option. The given directory is already existing, so this shouldn’t cause any problems. Would be great if anyone can give me a hint on why I get this compile error.
I am not quite sure if my configure cache still contains data from a previous run. How can I ensure that this is not the case? so far I used jom distclean in the qt root directory. And as you already noticed, I am using jom for compilation.
Thanks in advance,
Thoran
↧