Build QT 5.0.1 in Windows 7 X64 with visual studio 2012 error, can not open include file 'sqlite3.h'

  • I downloaded the src zip from this site:

    In vs2012 x64 native command, I configured the build with the following command:
    "configure -prefix C:\Qt\Qt5.0.1 -platform win32-msvc2012 -opensource -mp -c++11 -make tools -make libs -qt-sql-sqlite -no-sql-sqlite2 -icu -no-openssl -I D:\Projects\icu4c-51_1\icu\include -L D:\Projects\icu4c-51_1\icu\lib64"

    The build faied with "drivers\sqlite2\qsql_sqlite2.cpp(59) : fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory"

    I know there is sqlite3 in "qtbase\src\3rdparty\sqlite", but the compiler can not find it. How can I make configure comand find the sqlite3 source code, compile it and include it in the dependency?

  • the original qsql_sqlite2.cpp source file includes 'sqlite.h', I modified it to 'sqlite3.h'. The build error is similar.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.