LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   qdevelop can't connect database and needs sqlite support. (https://www.linuxquestions.org/questions/linux-software-2/qdevelop-cant-connect-database-and-needs-sqlite-support-899711/)

mei0fei 08-26-2011 07:57 PM

qdevelop can't connect database and needs sqlite support.
 
I install qt4, qt4-demos, sqlite3, qdevelop.
and it is ok when I run qtdemo.
next I run qdevelop and open a project "mainwindow.pro" , it tell me that qdevelop can't connect database and needs sqlite support.

mei@ubuntu:/usr/lib/qt4/plugins/sqldrivers$ ls
libqsqlite.so libqsqlmysql.so

mei@ubuntu:/usr/lib/qdevelop/plugins$ ls
libformatting-astyle.so libtools-regexp-planner.so

how can I fix the problem?
and I have another question that I want to use Makefile to compile "mainwindow" instead of "mainwindow.pro".

thanks.

here is the content of "mainwindow.pro"

TEMPLATE = app
HEADERS += colorswatch.h mainwindow.h toolbar.h
SOURCES += colorswatch.cpp mainwindow.cpp toolbar.cpp main.cpp
build_all:!build_pass {
CONFIG -= build_all
CONFIG += release
}

RESOURCES += mainwindow.qrc
# install
target.path = $$[QT_INSTALL_DEMOS]/mainwindow
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.png *.jpg *.pro
sources.path = $$[QT_INSTALL_DEMOS]/mainwindow
INSTALLS += target sources

symbian: include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri)

mei0fei 08-26-2011 07:59 PM

here is mainwindow.qrc

<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/res">
<file>qt.png</file>
<file>titlebarLeft.png</file>
<file>titlebarCenter.png</file>
<file>titlebarRight.png</file>
</qresource>
</RCC>


All times are GMT -5. The time now is 06:14 PM.