![]() |
Nokia N900 Qt With Mysql Support
Good Day All.
Ive been writing small apps in qt for a while and have decided to try writting a mobile app for my N900. I have written the code And it works great on my linux development box. THen having installed MADDE i am able to deploy the program to the N900 using mad developer. THe program loads but i get the followin error displayed Code:
Killing remote process(es)... I do so but still get the error Code:
ii libqt4-appdownloader-comm 0.3.5 library for communication with maemo.org downloads So i do have it installed. i also have this in my .pro file Code:
symbian:TARGET.UID3 = 0xE2CE1EEB Regards |
Re: Nokia N900 Qt With Mysql Support
Can you run the below code to verify that the required drivers are installed ?
#include <QCoreApplication> #include <QSqlDatabase> #include <QSqlError> #include <QStringList> #include <QtDebug> int main( int argc, char **argv ) { QCoreApplication app( argc, argv ); qDebug() << QSqlDatabase::drivers(); QSqlDatabase db( QSqlDatabase::addDatabase( "QMYSQL" ) ); qDebug() << db.lastError(); } If the output of this code shows that drivers are installed, then make sure you create QApplication or QCoreApplication instance before you use classes from the QtSql module. If the instance is created at a later stage, then also it throws such errors |
Re: Nokia N900 Qt With Mysql Support
Quote:
Code:
Killing remote process(es)... |
Re: Nokia N900 Qt With Mysql Support
Hello, try this package, but install it in this way: extract the deb with dpkg -x and copy the so file in /usr/lib/qt4/plugins/sqldrivers. Doing that I get MySql3 and MySql as available drivers. Let me know if you can access the database pls.
EDIT: just tested, it works and I can access db on laptop from N900. |
Re: Nokia N900 Qt With Mysql Support
Thank You Gionni88! It works!!!
I can access with pyqt on mysql. (Tutorial: http://solaajayi.wordpress.com/2011/...ql-using-pyqt/) Do you also have a work arround for mysql.so for php in phpinfo()? |
Re: Nokia N900 Qt With Mysql Support
Hello guys .
Can anyone help me here plz? Thanks in advance:) |
All times are GMT. The time now is 05:21. |
vBulletin® Version 3.8.8