[maemo-developers] QtSql and Debian package probelm
From: Sascha Mäkelä sascha.makela at gmail.comDate: Thu Jun 10 15:57:28 EEST 2010
- Previous message: QtSql and Debian package probelm
- Next message: QtSql and Debian package probelm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hmm... I'm not sure what you mean by this. I simply use something like this to open the database: QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); db.setDatabaseName("AppName"); return db.open(); On Thu, Jun 10, 2010 at 15:51, Daniil Ivanov <daniil.ivanov at gmail.com>wrote: > Hi Sascha! > > You don't have to include libqt4-network and libqt4-sql in Depends:. > Where do you save your DB? > > Thanks, Daniil. > > On Thu, Jun 10, 2010 at 3:47 PM, Sascha Mäkelä <sascha.makela at gmail.com> > wrote: > > This how it looks now: > > Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-network, libqt4-sql, > > libqt4-sql-sqlite > > But still it doesn't work. Am I missing something? The app works fine > when I > > run it in N900 from Qt Creator. > > Thanks for all your help, > > Sascha > > > > On Thu, Jun 10, 2010 at 15:12, David King <davidk at openismus.com> wrote: > >> > >> On 2010-06-10 15:01, Sascha Mäkelä <sascha.makela at gmail.com> wrote: > >>> > >>> Hi, > >>> > >>> I just made a Debian package of my app. I'm using QtSql in it. But for > >>> some > >>> reason when I install the package, all the SQL things don't work. My > >>> guess > >>> is that I'm missing something in the Build-Depends line in the control > >>> file. > >>> How can I check what libs I need to add there and what are their > correct > >>> names? > >>> > >>> Cheers, > >>> Sascha > >>> > >>> PS. Currently it's like this: Build-Depends: dephelper (>5), > libqt4-dev, > >>> libqt4-network > >> > >> You need to add the relevant Qt SQL provider packages to the ‘Depends:’ > >> line, not the ‘Build-Depends:’ line, as the SQL providers are plugins > that > >> are not required at build time, but at runtime. You probably want > >> libqt4-sql-mysql or libqt4-sql-sqlite in Depends, depending on which > >> database provider you are using. > >> > >> -- > >> David King | http://amigadave.com/ > >> _______________________________________________ > >> maemo-developers mailing list > >> maemo-developers at maemo.org > >> https://lists.maemo.org/mailman/listinfo/maemo-developers > > > > > > _______________________________________________ > > maemo-developers mailing list > > maemo-developers at maemo.org > > https://lists.maemo.org/mailman/listinfo/maemo-developers > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100610/d8a2b270/attachment.htm>
- Previous message: QtSql and Debian package probelm
- Next message: QtSql and Debian package probelm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]