Active Topics

 


Reply
Thread Tools
Posts: 26 | Thanked: 6 times | Joined on Mar 2010
#1
I'm working on something in the Maemo 5 SDK i386 scratchbox, and I can't see to get the QSqlDatabase bits working:

I was mainly concerned with the MySQL support, but the problem appears to be the same for SQLite...

QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers:
QSqlError(-1, "Driver not loaded", "Driver not loaded")
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:

I'm pretty sure I'm installed the packages I need - but obviously something is missing!

help?
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#2
libqt4-sql; libqt4-sql-sqlite

installed ?
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 

The Following User Says Thank You to krk969 For This Useful Post:
Posts: 26 | Thanked: 6 times | Joined on Mar 2010
#3
Originally Posted by krk969 View Post
libqt4-sql; libqt4-sql-sqlite

installed ?
Yup ->

[sbox-FREMANTLE_X86: ~] > fakeroot apt-get install libqt4-sql
Reading package lists... Done
Building dependency tree... Done
libqt4-sql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[sbox-FREMANTLE_X86: ~] >
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#4
libqt4-sql-mysql and libqt4-sql-sqlite ?
these are the plugins needed to access a sqlite and mysql type of db's
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 
Posts: 26 | Thanked: 6 times | Joined on Mar 2010
#5
Sort of:

[sbox-FREMANTLE_X86: ~] > fakeroot apt-get install libqt4-sql-mysql
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package libqt4-sql-mysql
[sbox-FREMANTLE_X86: ~] > fakeroot apt-get install libqt4-maemo5-sql-mysql
Reading package lists... Done
Building dependency tree... Done
libqt4-maemo5-sql-mysql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[sbox-FREMANTLE_X86: ~] >
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#6
dont have scratchbox in front of me to try anything,
maybe something to do with the LD_LIBRARY_PATH ?
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 
Posts: 26 | Thanked: 6 times | Joined on Mar 2010
#7
I thought you might have solved it there... but apparently not..

Lib files appear to be in here:

[sbox-FREMANTLE_X86: /opt/qt4-maemo5/lib/qt4/plugins/sqldrivers] > ls
libqsqlite.so libqsqlmysql.so

[sbox-FREMANTLE_X86: /opt/qt4-maemo5/lib/qt4/plugins/sqldrivers] > echo $LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib:/opt/qt4-maemo5/lib:/opt/qt4-maemo5/lib/qt4/plugins/sqldrivers

However that's led me to some pages... I think I may have a mix of qt 4.5 and qt 4.6 installed... I think the "-meamo5-" packages are all Qt4.6...

I will try a wholesale replacement of qt and see what happens...
 
Posts: 26 | Thanked: 6 times | Joined on Mar 2010
#8
qt4.6 doesn't seem to have a qt3support lib...
 
Posts: 26 | Thanked: 6 times | Joined on Mar 2010
#9
OK - last update. I'm back on qt4.5.3. Can't find the libqt4-sql-mysql package - so downloaded source and compiled it... still no luck...
 
Posts: 26 | Thanked: 6 times | Joined on Mar 2010
#10
Finally!

compiled and added the mysql support manually
then export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/qt4:/usr/lib/mysql



SQL won't connect using hostname but does with IP. I can live with that for now.

next problem... pulseaudio - for another day
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:46.