Discussion:
Problem with latest Creator and Qt gits: QSqlDatabase: QSQLITE driver not loaded
Abdelrazak Younes
2009-11-05 09:41:06 UTC
Permalink
Hello,

I manage to build latest Creator with latest Qt with:

/usr/local/Trolltech/Qt-4.6.0/bin/qmake -r ../qt-creator/qtcreator.pro
LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.6.0/lib make

And now Creator can be started, albeit with some errors (help is not
available):

***@sdu1:~/devel/qt/qt-creator-build2$
LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.6.0/lib ./bin/qtcreator
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
Warning: Failed to open settings database at
"/home/younes/.config/Nokia/QtCreator.db" ("Driver not loaded")
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
Could not initialize help engine: "Cannot load sqlite database driver!"
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
Could not initialize help engine: "Cannot load sqlite database driver!"
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
Could not initialize help engine: "Cannot load sqlite database driver!"
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
QSqlDatabasePrivate::removeDatabase: connection
'GetNamespaceName-12572448-8' is still in use, all queries will cease to
work.
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
QSqlDatabasePrivate::removeDatabase: connection
'GetNamespaceName-12572448-9' is still in use, all queries will cease to
work.
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
QSqlDatabasePrivate::removeDatabase: connection
'GetNamespaceName-12572448-10' is still in use, all queries will cease
to work.
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
Could not initialize help engine: "Cannot load sqlite database driver!"
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
Could not initialize help engine: ""
QSqlDatabase: QSQLITE driver not loaded
What does
export LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.6.0/lib ldd
/home/younes/devel/qt/qt-creator-build2/bin/../lib/qtcreator/libAggregation.so.1
report?
***@sdu1:~/devel/qt/qt-creator-build2$ export
LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.6.0/lib
***@sdu1:~/devel/qt/qt-creator-build2$ ldd
/home/younes/devel/qt/qt-creator-build2/bin/../lib/qtcreator/libAggregation.so.1

linux-vdso.so.1 => (0x00007fff3a309000)
libQtGui.so.4 => /usr/local/Trolltech/Qt-4.6.0/lib/libQtGui.so.4
(0x00007f8653205000)
libQtCore.so.4 => /usr/local/Trolltech/Qt-4.6.0/lib/libQtCore.so.4
(0x00007f8652d71000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f8652b33000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f8652823000)
libm.so.6 => /lib/libm.so.6 (0x00007f865259e000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f8652387000)
libc.so.6 => /lib/libc.so.6 (0x00007f8652018000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0
(0x00007f8651e12000)
librt.so.1 => /lib/librt.so.1 (0x00007f8651c0a000)
libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00007f8651943000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00007f865171b000)
libz.so.1 => /lib/libz.so.1 (0x00007f8651504000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f865127f000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f8651075000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f8650e5a000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f8650c50000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1
(0x00007f8650a1d000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f865080b000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f86504d5000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f86502d0000)
/lib64/ld-linux-x86-64.so.2 (0x00007f86540a3000)
libpcre.so.3 => /lib/libpcre.so.3 (0x00007f86500a2000)
libuuid.so.1 => /lib/libuuid.so.1 (0x00007f864fe9c000)
libexpat.so.1 => /lib/libexpat.so.1 (0x00007f864fc73000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f864fa70000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f864f853000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f864f64e000)


Abdel.
Daniel Teske
2009-11-05 10:30:22 UTC
Permalink
Post by Abdelrazak Younes
Hello,
/usr/local/Trolltech/Qt-4.6.0/bin/qmake -r ../qt-creator/qtcreator.pro
LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.6.0/lib make
And now Creator can be started, albeit with some errors (help is not
LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.6.0/lib ./bin/qtcreator
QSqlDatabase: QSQLITE driver not loaded
That means that the sqlite plugin of qt was not compiled. Try rerunning
configure of qt and take a look at the output, it should tell you what is
disabled. You are probably missing some development libraries, though I'm not
sure which are needed for sqllite.

daniel
Abdelrazak Younes
2009-11-05 13:09:25 UTC
Permalink
Post by Daniel Teske
Post by Abdelrazak Younes
Hello,
/usr/local/Trolltech/Qt-4.6.0/bin/qmake -r ../qt-creator/qtcreator.pro
LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.6.0/lib make
And now Creator can be started, albeit with some errors (help is not
LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.6.0/lib ./bin/qtcreator
QSqlDatabase: QSQLITE driver not loaded
That means that the sqlite plugin of qt was not compiled. Try rerunning
configure of qt and take a look at the output, it should tell you what is
disabled. You are probably missing some development libraries, though I'm not
sure which are needed for sqllite.
Aha, yes you are right, installin lib-sqlite3-dev and running configure
with '-system-sqlite' did it.

By the ways there any way to tell configure to not recompile everything
but only QSql?

Thanks,
Abdel.
Post by Daniel Teske
daniel
_______________________________________________
Qt-creator mailing list
http://lists.trolltech.com/mailman/listinfo/qt-creator
Nico Kruber
2009-11-06 14:26:34 UTC
Permalink
Post by Abdelrazak Younes
By the ways there any way to tell configure to not recompile everything
but only QSql?
you might want to have a look at ccache...

Nico
Coda Highland
2009-11-06 15:35:10 UTC
Permalink
Post by Nico Kruber
Post by Abdelrazak Younes
By the ways there any way to tell configure to not recompile everything
but only QSql?
you might want to have a look at ccache...
Or try "make sub-sql". Take a peek inside the Makefile for more options.

/s/ Adam
Abdel Younes
2009-11-06 17:17:55 UTC
Permalink
Post by Coda Highland
Post by Nico Kruber
Post by Abdelrazak Younes
By the ways there any way to tell configure to not recompile everything
but only QSql?
you might want to have a look at ccache...
Or try "make sub-sql". Take a peek inside the Makefile for more options.
Indeed... thanks!

Abdel.
Abdelrazak Younes
2009-11-06 17:17:09 UTC
Permalink
Post by Nico Kruber
Post by Abdelrazak Younes
By the ways there any way to tell configure to not recompile everything
but only QSql?
you might want to have a look at ccache...
Hum, I thought ccache was an autoconf things...

Abdel.
André Pönitz
2009-11-09 07:59:09 UTC
Permalink
Post by Abdelrazak Younes
By the ways there any way to tell configure to not recompile everything
but only QSql?
On the command line it's 'make sub-sql-clean sub-sql'

Andre'

Loading...