maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   MADDE, Qt Creator and MySQL (https://talk.maemo.org/showthread.php?t=48669)

Sasler 2010-03-29 15:39

MADDE, Qt Creator and MySQL
 
Has anyone tried to make use QMYSQL with MADDE and Qt Creator? How should it be configured? Is it even possible?

Sasler 2010-03-30 05:46

Re: MADDE, Qt Creator and MySQL
 
OK, I've found these:

http://qt.nokia.com/doc/4.6/sql-driver.html
http://qt.nokia.com/doc/4.6/install-x11.html

But I'm not quite sure where I should try to "install" these MySQL "drivers". Should they be on my Windows computer, where I'm using Qt Creator, or in my target N900?

Any help would be greatly appreciated. :)

krk969 2010-03-30 08:59

Re: MADDE, Qt Creator and MySQL
 
the mysql plugin must be installed to the runtime env.

in your .pro file

QT += sql should help you compile if you have libqt4-sql package installed on the dev env

i think that should work. sqlite is an inprocess db and doesnt need a dbmanager/daemon. is that good for you ? or do you need mysql for specific reasons

Sasler 2010-03-30 09:30

Re: MADDE, Qt Creator and MySQL
 
Quote:

Originally Posted by krk969 (Post 587821)
the mysql plugin must be installed to the runtime env.

How can I do that?


Quote:

Originally Posted by krk969 (Post 587821)
in your .pro file

QT += sql should help you compile if you have libqt4-sql package installed on the dev env

I already have that.


Quote:

Originally Posted by krk969 (Post 587821)
i think that should work. sqlite is an inprocess db and doesnt need a dbmanager/daemon. is that good for you ? or do you need mysql for specific reasons

I want to access an external MySQL server to retrieve data. Can I use SQLLite for that?

Thanks for your help. :)

krk969 2010-03-30 09:56

Re: MADDE, Qt Creator and MySQL
 
Quote:

Originally Posted by Sasler (Post 587857)
How can I do that?

seems like libqt4-maemo5-sql-mysql plugin exists for maemo.
So probably PR1.2 will bring it by default, for now maybe you can try installing the above one. ( Im not sure if thats community supported :) , you may want to check with the uploader)

*EDIT*
here is the QT4.5 version. So I think you can expect the QT4.6 version with PR1.2 or you can use the above for now.

Quote:

Originally Posted by Sasler (Post 587857)
I want to access an external MySQL server to retrieve data. Can I use SQLLite for that?

Sqlite is an inprocess file based db , so if you are accessing a remote DB MySQL or PostgreSql is the way forward then.
I think MySQL has more support on most online sites.

Sasler 2010-03-30 17:58

Re: MADDE, Qt Creator and MySQL
 
Quote:

Originally Posted by krk969 (Post 587893)
seems like libqt4-maemo5-sql-mysql plugin exists for maemo.
So probably PR1.2 will bring it by default, for now maybe you can try installing the above one. ( Im not sure if thats community supported :) , you may want to check with the uploader)

*EDIT*
here is the QT4.5 version. So I think you can expect the QT4.6 version with PR1.2 or you can use the above for now.


Sqlite is an inprocess file based db , so if you are accessing a remote DB MySQL or PostgreSql is the way forward then.
I think MySQL has more support on most online sites.

Thanks, but in the link you provided, the package status is "Package has been removed". Oh well, I guess I have to wait for the PR1.2, which should be really close. :)

Of course, now the question is how soon will MADDE (or Qt Creator) support Qt 4.6? I hope on the same day as PR1.2 is out. :D

krk969 2010-03-30 18:04

Re: MADDE, Qt Creator and MySQL
 
MADDE was already supporting QT4.6 albeit not official :p.
But I think it wouldnt be too long after the official release.

*EDIT*
Quote:

Originally Posted by Sasler (Post 588627)
in the link you provided, the package status is "Package has been removed"

I guess that explains why I didnt find it in the first place when I did an apt-cache search :)
atleast libqt4-maemo5* version exists for now :p

jamie721 2010-10-21 23:41

Re: MADDE, Qt Creator and MySQL
 
any news on this subject any one managed to do this? if so how did you install the plugin to madde so that qt simulator recognise it as a driver?


All times are GMT. The time now is 17:11.

vBulletin® Version 3.8.8