Have some problem with QSQLiteDriver in Ubuntu
-
First of all, all of my OS(64-bit) and tools and libraries are up to date.
I installed QT via online installer from qt.nokia.com,
then I installed sqlite3 package through terminal. (sudo apt-get install sqlite3)
After that, I also installed libqt4-sql-sqlite and libsqlite3-dev packages by the apt-get instruction.
And I copied /home/yonghee/QtSDK/Simulator/Qt/gcc/include/QtSql/private directory to /home/yonghee/QtSDK/Desktop/Qt/473/gcc/include/QtSql/private,
because I use sqlite3.h and it includes a header file from the private directory but the Desktop directory didn't have it. (I'm building this project in Desktop environment.)
I can get rid of much of 'undefined reference to' messages about sqlite3.h by this copying work,
but still there are 'undefined reference to' messages on QSQLiteDriver class in qsqlitedriver header.
I've already checked that /home/yonghee/QtSDK/Desktop/Qt/473/gcc/include/QtSql has qsqlitedriver header file, and it also has qsql_sqlite.h.
What should I do?
Is it necessary to build QT manually?This is my project's .pro file:
@
#-------------------------------------------------Project created by QtCreator 2011-07-20T02:10:30
#-------------------------------------------------
QT += core gui sql
TARGET = Nuri
TEMPLATE = appSOURCES += main.cpp
thinker.cpp
widget.cppHEADERS +=
widget.h
thinker.h#QTPLUGIN += qsqlite
INCLUDEPATH += /usr/include
#INCLUDEPATH += /home/yonghee/QtSDK/Desktop/Qt/473/gcc/include/QtSql
LIBS += -L/usr/lib/x86_64-linux-gnu -lsqlite3 #for sqlite3.h
#LIBS += -L/usr/lib/qt4/plugins/sqldrivers -lsqlite #for QSQLiteDriver
@