Following may be very easy and may have been handled in a thread already, but I could not find an answer easily.
I am trying to make my first application and deb package with QtCreator and QtDesigner.
There are an xml file and couple of other files, which need to be delivered with the application. The deb package is created with QtCreator: I choose Build --> Deploy Project "x" --> deb file is created.
When my deb package is installed to N900, then the xml file and other files are in gzipped form in an installed directory on the N900 device. One of the files does not end up in gzipped (.gz) form.
Is there a way to gunzip the files automatically during the installation of the deb package? Which files should I modify? maemo5pkgrules.pri?? etc. I added the files also to Resources / x.qrc file. I have never made debian packages.
The application would currently need the files in extracted form. Otherwise the application works ok, if I just gunzip the files manually from the command line on the N900 device.
Additionally: what would be correct way to access (and deliver) the files?
I could also try to read directly from the gzipped file, etc. etc.
One file is bigger (the XML file), few MBs. Other files are smaller.
Btw., are there some log files where possible error messages are delivered to, on the N900? First versions of my app "crashed", but I do not know are any error messages shown in any log files automatically? I just printed to my own log files in a temporary directory.
I have not yet found out how to deliver/deploy an xml file in a deb package (maemo 5, n900). (The goal.)
There is a recipes example in QtCreator. There is a cookbook.xml. It was possible to deploy cookbook.xml in an extracted form in a deb package to an N900 device. But I do not know how it is in extracted form, because rest of my files end up in compressed form (".gz").
> I could also try to read directly from the gzipped file
Or with qCompress and qUncompress or zlib.
I did not find a working solution with qCompress / qUncompress, yet.
Does someone have a working example?
Following may be very easy and may have been handled in a thread already, but I could not find an answer easily.
I am trying to make my first application and deb package with QtCreator and QtDesigner.
There are an xml file and couple of other files, which need to be delivered with the application. The deb package is created with QtCreator: I choose Build --> Deploy Project "x" --> deb file is created.
When my deb package is installed to N900, then the xml file and other files are in gzipped form in an installed directory on the N900 device. One of the files does not end up in gzipped (.gz) form.
Is there a way to gunzip the files automatically during the installation of the deb package? Which files should I modify? maemo5pkgrules.pri?? etc. I added the files also to Resources / x.qrc file. I have never made debian packages.
The application would currently need the files in extracted form. Otherwise the application works ok, if I just gunzip the files manually from the command line on the N900 device.
Additionally: what would be correct way to access (and deliver) the files?
I could also try to read directly from the gzipped file, etc. etc.
One file is bigger (the XML file), few MBs. Other files are smaller.
Btw., are there some log files where possible error messages are delivered to, on the N900? First versions of my app "crashed", but I do not know are any error messages shown in any log files automatically? I just printed to my own log files in a temporary directory.
Last edited by visiting01; 2011-07-21 at 13:28.