Re: [SailfishDevel] Deploy QSQLite database

2014-06-19 Thread Chris Walker
On Thu, 19 Jun 2014 15:37:41 + Lukas Vogel wrote: > Hi, > > Thanks all for your answers. Andreys solution works, it complained > first for the simulator, > but seems to work now (after it ran successfully on device). > > I now changed the path > to /usr/share/harbour-qtimetable/data/station

Re: [SailfishDevel] Deploy QSQLite database

2014-06-19 Thread Lukas Vogel
Hi, Thanks all for your answers. Andreys solution works, it complained first for the simulator, but seems to work now (after it ran successfully on device). I now changed the path to /usr/share/harbour-qtimetable/data/stations.db I have quite a big read-only part (list of train-stations) but I w

Re: [SailfishDevel] Deploy QSQLite database

2014-06-18 Thread Michael Neufing
Hi, my app needs an SQLITE db, also. I deploy it into /usr/share/harbour-{APPNAME}/data. You could then use it either from this location, or copy it into the home dir on the first run. As the db seems to be readonly, I think you don't need to copy it into the home dir.   Mit freundlichen Grüße

Re: [SailfishDevel] Deploy QSQLite database

2014-06-17 Thread Saija Saarenpää
Hi, What comes to having datalocation path variable in the .pro file: I was having similar thoughts when I wanted to install something in the writable storage location, but I was corrected. Nothing should be installed in the home directory with the application, but under application directory /

Re: [SailfishDevel] Deploy QSQLite database

2014-06-17 Thread Andrey Kozhevnikov
you should build and deploy as RPM package ;) 18.06.2014 03:42, Lukas Vogel ?: Hi there, I try to create an app in which I want to have an existing database bind in the binary. My approach was the following: in pro file: QT+=sql database.files = stations.db database.path = /home/nemo

[SailfishDevel] Deploy QSQLite database

2014-06-17 Thread Lukas Vogel
Hi there, I try to create an app in which I want to have an existing database bind in the binary. My approach was the following: in pro file: QT += sql database.files = stations.db database.path = /home/nemo/.local/share/harbour-qtimetable/harbour-qtimetable INSTALLS += database To open the