Hey!
Thanks to read my topic,I’m a newbee on Qt and I’ve been puzzled for almost ONE week with my problems.
I want to build a static-linking Qt library of Qt 5.3.2 on windows 7(64bits),and I’ve downloaded the source package and extracted all contents into a directory,and,here is problem one:
I configured Qt with “-qt-sql-sqlite“option.When compiling it,I got a fatal error message which said somethings like “…ld.exe : -lqsqlite … can’t find library…” blablabla…
I’m very sorry for my forgotting on message details,because I’ve started a new trying of compiling.
I’m very surprise about that error because SQLite v3 has been included in Qt(refered in “Qt SQL->SQL Programming->SQL Database Drivers->How to Build the QSQLITE Plugin), and , how to solve it? and… by the way, does it mean that only plugin of SQLite can be built with Qt?
Problem two:
I’v tried another configuration option which is “-plugin-sql-qsql”, but when I complining Qt I got the error message like this:
..\..\..\sql\drivers\psql\qsql_psql.cpp:59:22: fatal error: libpq-fe.h: No such file or directory
#include <libpq-fe.h>
I’v searched all the source directory and could not find the header file named “libpq-fe.h”.With the searching result of this problem on webs I generally understood that was because I didn’t install PostgreSQL’s dev-libs.
Well, the questions come:
Does all the SQL diver of databases which supported by Qt require their dev-libs or codes while compiling Qt?
Because the binary package of Qt contains the binary SQL drivers of all supported databases,could I skip the compiling of SQL drivers while compiling Qt? If it is possible,how to do it?
Thanks again for reading this tediously long topic, and please help me!
↧