[Qt-interest] Error QSQLITE driver not loaded, but the driver is there and it’s called after QApplication!

Daniel França daniel.franca at gmail.com
Tue Feb 7 13:19:34 CET 2012


it seems so

/usr/local/Trolltech/Qt-4.8.0/lib/phonon.framework/Versions/4/phonon
(compatibility version 4.4.0, current version 4.4.0)
 /usr/local/Trolltech/Qt-4.8.0/lib/QtGui.framework/Versions/4/QtGui
(compatibility version 4.8.0, current version 4.8.0)
/usr/local/Trolltech/Qt-4.8.0/lib/QtCore.framework/Versions/4/QtCore
(compatibility version 4.8.0, current version 4.8.0)
 /usr/local/Trolltech/Qt-4.8.0/lib/QtSql.framework/Versions/4/QtSql
(compatibility version 4.8.0, current version 4.8.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version
7.9.0)
 /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
625.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
125.2.11)


On Tue, Feb 7, 2012 at 10:03 AM, Samuel Gaist <samuel.gaist at edeltech.ch>wrote:

>
> On 7 févr. 2012, at 12:51, Daniel França wrote:
>
> > First I've to say that it was working after some problems I got with Qt
> versions and then I had to compile Qt4.8 from sources.
> >
> > Now when I ran my application I get this error:
> > QSqlDatabase: QSQLITE driver not loaded
> > QSqlDatabase: available drivers:
> >
> > but the sqlite driver is there:
> /usr/local/Trolltech/Qt-4.8.0/plugins/sqldrivers/
> > libqsqlite.dylib      libqsqlite_debug.dylib
> >
> > Then I put this line of code:
> > QApplication::addLibraryPath( "/usr/local/Trolltech/Qt-4.8.0/plugins/" );
> >
> > And it's working... but I want to know a better way to solve this
> problem, and I don't think my solution will gonna work in others computers.
> >
> > I'm running on a OSX 10.6
> > GCC 4.2
> > Qt 4.8 compiled with dbus disabled and as framework.
> >
> > PS: The call to SQLITE is after QApplication constructor
> >
> > Best Regards,
> > Daniel França
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at qt.nokia.com
> > http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20120207/9ad99e96/attachment.html 


More information about the Qt-interest-old mailing list