Re: How to get kinetic scrolling working using Qt creator
Hi Sudheer! The name of a tool is Qt Designer and it should allow to do what you want, however I'm wrong person to ask how to use Qt Designer. Thanks, Daniil. On Thu, Jun 10, 2010 at 7:47 AM, Sudheer K. scifi@hotmail.com wrote: Hi Daniil, Thanks for looking into the code. The main problem I have is that, Qt creator does not give enough flexibility to create the hierarchy that you suggested. This is the hierarchy created using Qt creator. http://i49.tinypic.com/2rxbm75.jpg - centralWidget is automatically created by Qt creator and is locked, so I cannot even delete it. - scrollAreaWidgetContents is also automatically created by Qt creator and is locked. I cannot modify this too. - I created two groupboxes (Basic and Advanced) which contain one form layout each. These are added to the scrollAreaWidgetContents because I can not directly add them to scrollArea. I am using Qt Creator 1.3.1. Is there a way to make the scrolling work using Creator or should I stop using Qt creator and code the form class myself? Date: Wed, 9 Jun 2010 18:33:55 +0300 Subject: Re: How to get kinetic scrolling working using Qt creator From: daniil.iva...@gmail.com To: scifi@hotmail.com CC: maemo-developers@maemo.org Hi Sudheer! There are many bugs there. For example you don't need centralWidget at all, place scrollArea instead of it. Then you create multiple layout, set them to widgets and never place them into scrollArea. On desktop you don't have scroll bars as well. Thanks, Daniil. The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. Get busy. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to optify in MADDE?
Hi Daniel! Of course manual optification is the way to go when there is no other way. But is it so that installing scratchbox and performing optification there is considered as too difficult? BTW, are there any chances maemo-optify will be included into MADDE? Thanks, Daniil. On Thu, Jun 10, 2010 at 11:12 AM, daniel wilms daniel.wi...@nokia.com wrote: Hi, ext Sascha Mäkelä wrote: OK and how would I do that? Should I edit the src.pro http://src.pro file and how should it look? Is something else needed? one thing you could do is putting the files of the application (like binary, images etc.) in a folder like /opt/myapp/. This you can specify in your src.pro. There is a packaging guide for Qt applications available in the wiki [1]. After doing that you can then have the right path to your executable in the *.desktop file. 1. http://wiki.maemo.org/Packaging_a_Qt_application Daniel Thanks, Sascha On Thu, Jun 10, 2010 at 10:53, Pasi Savanainen pasi.savanai...@nixu.com mailto:pasi.savanai...@nixu.com wrote: On 6/9/10 5:58 PM, Sascha Mäkelä wrote: How can I optify a package in Windows using MADDE? Does this work: http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/maemo-optify/0.2.1/ If it does, how can I install it to MADDE? Cheers, Sascha ___ maemo-developers mailing list maemo-developers@maemo.org mailto:maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers You cannot use that with MADDE, because maemo-optify* commands use internally some dpkg* command options that are not implemented by MADDE. You have to do optify our packages by hand. -- Pasi ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to optify in MADDE?
Hi, ext Daniil Ivanov wrote: Hi Daniel! Of course manual optification is the way to go when there is no other way. But is it so that installing scratchbox and performing optification there is considered as too difficult? I think the manual way is reasonably easy. Or which drawback do you see here? If you have set up your environment already with MADDE, the optification should not be a reason to install the Platform SDK with Scratchbox etc. There is just one bug in MADDE, if you package your application that way, you have to set the rights of your binary to executable in the postinst file. BTW, are there any chances maemo-optify will be included into MADDE? I doubt that, but I'm not sure. Will find that out. Daniel Thanks, Daniil. On Thu, Jun 10, 2010 at 11:12 AM, daniel wilms daniel.wi...@nokia.com wrote: Hi, ext Sascha Mäkelä wrote: OK and how would I do that? Should I edit the src.pro http://src.pro file and how should it look? Is something else needed? one thing you could do is putting the files of the application (like binary, images etc.) in a folder like /opt/myapp/. This you can specify in your src.pro. There is a packaging guide for Qt applications available in the wiki [1]. After doing that you can then have the right path to your executable in the *.desktop file. 1. http://wiki.maemo.org/Packaging_a_Qt_application Daniel Thanks, Sascha On Thu, Jun 10, 2010 at 10:53, Pasi Savanainen pasi.savanai...@nixu.com mailto:pasi.savanai...@nixu.com wrote: On 6/9/10 5:58 PM, Sascha Mäkelä wrote: How can I optify a package in Windows using MADDE? Does this work: http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/maemo-optify/0.2.1/ If it does, how can I install it to MADDE? Cheers, Sascha ___ maemo-developers mailing list maemo-developers@maemo.org mailto:maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers You cannot use that with MADDE, because maemo-optify* commands use internally some dpkg* command options that are not implemented by MADDE. You have to do optify our packages by hand. -- Pasi ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to optify in MADDE?
Hi, ext Daniil Ivanov wrote: Hi Daniel! You have to keep ratio 80%/20% /opt/usr it's not so easy to achieve manually. it is not required to have this ratio and I think this is rather confusing to give that out as a goal. The easiest way is to put everything into a separate application-specific folder in opt and the desktop file in it's place. Moreover, if you put binary to /opt on MADDE dpkg-buildpackage will fail to set execution bit to your binary (I hope it will be fixed soon). This is what I said. It is fixed already (this morning ;) ) and should be in the next release. Daniel Thanks, Daniil. On Thu, Jun 10, 2010 at 11:45 AM, daniel wilms daniel.wi...@nokia.com wrote: Hi, ext Daniil Ivanov wrote: Hi Daniel! Of course manual optification is the way to go when there is no other way. But is it so that installing scratchbox and performing optification there is considered as too difficult? I think the manual way is reasonably easy. Or which drawback do you see here? If you have set up your environment already with MADDE, the optification should not be a reason to install the Platform SDK with Scratchbox etc. There is just one bug in MADDE, if you package your application that way, you have to set the rights of your binary to executable in the postinst file. BTW, are there any chances maemo-optify will be included into MADDE? I doubt that, but I'm not sure. Will find that out. Daniel Thanks, Daniil. On Thu, Jun 10, 2010 at 11:12 AM, daniel wilms daniel.wi...@nokia.com wrote: Hi, ext Sascha Mäkelä wrote: OK and how would I do that? Should I edit the src.pro http://src.pro file and how should it look? Is something else needed? one thing you could do is putting the files of the application (like binary, images etc.) in a folder like /opt/myapp/. This you can specify in your src.pro. There is a packaging guide for Qt applications available in the wiki [1]. After doing that you can then have the right path to your executable in the *.desktop file. 1. http://wiki.maemo.org/Packaging_a_Qt_application Daniel Thanks, Sascha On Thu, Jun 10, 2010 at 10:53, Pasi Savanainen pasi.savanai...@nixu.com mailto:pasi.savanai...@nixu.com wrote: On 6/9/10 5:58 PM, Sascha Mäkelä wrote: How can I optify a package in Windows using MADDE? Does this work: http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/maemo-optify/0.2.1/ If it does, how can I install it to MADDE? Cheers, Sascha ___ maemo-developers mailing list maemo-developers@maemo.org mailto:maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers You cannot use that with MADDE, because maemo-optify* commands use internally some dpkg* command options that are not implemented by MADDE. You have to do optify our packages by hand. -- Pasi ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to optify in MADDE?
On 06/10/2010 11:32 AM, ext Daniil Ivanov wrote: Hi Daniel! Of course manual optification is the way to go when there is no other way. But is it so that installing scratchbox and performing optification there is considered as too difficult? BTW, are there any chances maemo-optify will be included into MADDE? IMHO Rather than adding support for maemo-optify, madde should optify (eg. install everything under /opt/projectname/) builds by default when targeting n900. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to optify in MADDE?
Hi Riku! Then why we went to maemo-optify path instead of modifying Debian build tools? I know it was a huge thread about optification, I didn't dare to read it. Neither want to start it again :) Thanks, Daniil. On Thu, Jun 10, 2010 at 12:57 PM, Riku Voipio riku.voi...@nokia.com wrote: On 06/10/2010 11:32 AM, ext Daniil Ivanov wrote: Hi Daniel! Of course manual optification is the way to go when there is no other way. But is it so that installing scratchbox and performing optification there is considered as too difficult? BTW, are there any chances maemo-optify will be included into MADDE? IMHO Rather than adding support for maemo-optify, madde should optify (eg. install everything under /opt/projectname/) builds by default when targeting n900. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to optify in MADDE?
On Thu 10 Jun 2010 13:08, Tim Teulings t...@framstag.com writes: Hallo! Location of application files is not only defined by the packaging mechanism. Part of the locations are defined by the software at buildtime (partly configure options), some may be hardcoded. In general one cannot be sure that after apckaging moves around files the application can find all of its files. (autotools/configure not supported in MADDE). Is it allowed to have symlinks in 'data.tar.gz' in debian file ? If so, then it would be pretty easy to tune MADDE:s 'dh_fixperms' (which is written from scratch for MADDE environment) to move most(*) files to /opt/maemo/* and make symlinks from their original places. Although current tarlisted supports only 99/155 filename lengths then. (*) not those copied by dh_installdirs etc. Well, this is a quick note; I did not follow the optify-thread for hints about other problems this might bring up. Optification was a very late feature and getting software to run on the device quickly was a goal while SDK or device modification were not possible in that short time frame. So a solution was created that may not require the active support of the developer, by mobinf files and at the same time creating links from the old to the new location hiding the movement from the application. -- Gruß... Tim Tomi ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to optify in MADDE?
On Thu 10 Jun 2010 12:49, daniel wilms daniel.wi...@nokia.com writes: Hi, ext Daniil Ivanov wrote: Hi Daniel! Moreover, if you put binary to /opt on MADDE dpkg-buildpackage will fail to set execution bit to your binary (I hope it will be fixed soon). This is what I said. It is fixed already (this morning ;) ) and should be in the next release. In the meantime, not too hard to fix oneself (voids your warranty ;): diff --git a/src/debtools/dh_fixperms b/src/debtools/dh_fixperms index 7ab859c..79f3865 100755 --- a/src/debtools/dh_fixperms +++ b/src/debtools/dh_fixperms @@ -48,8 +48,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } # Programs in the bin and init.d dirs should be executable.. - if (m,^usr/bin/, || m,^bin/, || m,^usr/sbin/, || m,^sbin/, - || m,^usr/games/, || m|^etc/init.d/| ) { + if (m,(^|/)bin/, || m,(^|/)sbin/, + || m,(^|/)usr/games/, || m,(^|/)etc/init.d/, ) { tlline '755', $_ $src; next; } @@ -57,7 +57,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # FIXME: usr/share/doc/**/examples !!! ??? (see original) # ADA ali files should be mode 444 to avoid recompilation - if (m,^usr/lib/ada/,) { + if (m,(^|/)usr/lib/ada/,) { tlline '444', $_ $src; next; } Daniel Tomi ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: extras-devel .install files issue
Hi Ram, According to [1] there is just one devel repsitory and it's fremantle. Btw extras has the fremantle-1.2 rep too. Cheers, Antonio [1] http://repository.maemo.org/extras-devel/pool/ On Thu, Jun 10, 2010 at 1:47 PM, Ram Kurvakat rkma...@gmx.com wrote: is it dist = fremantle or dist = fremantle-1.2 ? I thought the latter is linked to the PR1.2 repos, or has it changed ? Ive had similar issues with .install files. Thanks for raising it Daniil. Regards, -krk969 - Original Message - From: Daniil Ivanov Sent: 06/10/10 11:24 AM To: maemo-developers@maemo.org Subject: extras-devel .install files issue Hi all! It seems that are the problems http://repository.maemo.org/extras-devel/dists/fremantle/install/ and that dist = fremantle should be added to the .install files. Thanks, Daniil. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: extras-devel .install files issue
Hi Antonio! Extras has it, but extras-devel not. At least at the moment of writing this. Thanks, Daniil. On Thu, Jun 10, 2010 at 1:58 PM, Antonio Aloisio antonio.aloi...@gmail.com wrote: Hi Ram, According to [1] there is just one devel repsitory and it's fremantle. Btw extras has the fremantle-1.2 rep too. Cheers, Antonio [1] http://repository.maemo.org/extras-devel/pool/ On Thu, Jun 10, 2010 at 1:47 PM, Ram Kurvakat rkma...@gmx.com wrote: is it dist = fremantle or dist = fremantle-1.2 ? I thought the latter is linked to the PR1.2 repos, or has it changed ? Ive had similar issues with .install files. Thanks for raising it Daniil. Regards, -krk969 - Original Message - From: Daniil Ivanov Sent: 06/10/10 11:24 AM To: maemo-developers@maemo.org Subject: extras-devel .install files issue Hi all! It seems that are the problems http://repository.maemo.org/extras-devel/dists/fremantle/install/ and that dist = fremantle should be added to the .install files. Thanks, Daniil. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to optify in MADDE?
On Thu, Jun 10, 2010 at 12:49 PM, daniel wilms daniel.wi...@nokia.com wrote: Moreover, if you put binary to /opt on MADDE dpkg-buildpackage will fail to set execution bit to your binary (I hope it will be fixed soon). This is what I said. It is fixed already (this morning ;) ) and should be in the next release. What's the schedule for next release? We have several commercial developers complaining about this issue already, and it would be nice to point them to fixed madde instead of patch/workaround... Daniel Thanks, Daniil. On Thu, Jun 10, 2010 at 11:45 AM, daniel wilms daniel.wi...@nokia.com wrote: Hi, ext Daniil Ivanov wrote: Hi Daniel! Of course manual optification is the way to go when there is no other way. But is it so that installing scratchbox and performing optification there is considered as too difficult? I think the manual way is reasonably easy. Or which drawback do you see here? If you have set up your environment already with MADDE, the optification should not be a reason to install the Platform SDK with Scratchbox etc. There is just one bug in MADDE, if you package your application that way, you have to set the rights of your binary to executable in the postinst file. BTW, are there any chances maemo-optify will be included into MADDE? I doubt that, but I'm not sure. Will find that out. Daniel Thanks, Daniil. On Thu, Jun 10, 2010 at 11:12 AM, daniel wilms daniel.wi...@nokia.com wrote: Hi, ext Sascha Mäkelä wrote: OK and how would I do that? Should I edit the src.pro http://src.pro file and how should it look? Is something else needed? one thing you could do is putting the files of the application (like binary, images etc.) in a folder like /opt/myapp/. This you can specify in your src.pro. There is a packaging guide for Qt applications available in the wiki [1]. After doing that you can then have the right path to your executable in the *.desktop file. 1. http://wiki.maemo.org/Packaging_a_Qt_application Daniel Thanks, Sascha On Thu, Jun 10, 2010 at 10:53, Pasi Savanainen pasi.savanai...@nixu.com mailto:pasi.savanai...@nixu.com wrote: On 6/9/10 5:58 PM, Sascha Mäkelä wrote: How can I optify a package in Windows using MADDE? Does this work: http://maemo.org/packages/package_instance/view/fremantle_extras_free_armel/maemo-optify/0.2.1/ If it does, how can I install it to MADDE? Cheers, Sascha ___ maemo-developers mailing list maemo-developers@maemo.org mailto:maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers You cannot use that with MADDE, because maemo-optify* commands use internally some dpkg* command options that are not implemented by MADDE. You have to do optify our packages by hand. -- Pasi ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers -- Ville M. Vainio http://tinyurl.com/vainio ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to optify in MADDE?
On Thu 10 Jun 2010 13:55, daniel wilms daniel.wi...@nokia.com writes: ext Sascha Mäkelä wrote: OK, could someone give me or point me to example on how to do this? Basically the only the src.pro http://src.pro and the .desktop files need to be modified, right? I will post something how to do that and will publish it latest tomorrow, then you will have an example with some explanations. Here some advises: 1) Put all your application files, apart from your *.desktop file into a folder like /opt/application-name. This you can do by setting the path variable of the INSTALL target used in the *.pro file. 2) Point in the desktop file to your executable, like: X-Path=/opt/application-name/application-executable I personally dislike polluting /opt -tree with lots of application directories (although that is allowed by FHS). Better alternative would be /opt/provider/... (IMHO) (also allowed by FHS), where provider is 'maemo' (is that LANANA-registered (what LANANA???). FHS also says there might be bin/, lib/, include/ and application-name directories intermixed there (which I don't like either). But YMMV. Also, in larger projects, X-PATH could be X-Path=/opt/maemo/application-name/bin/application-executable but for smaller ones (like all mine), wasting filesystem space for one extra directory is overkill ;) Tomi ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to optify in MADDE?
On Thu, Jun 10, 2010 at 12:15, Tomi Ollila tomi.oll...@guru.guru-group.fi wrote: I personally dislike polluting /opt -tree with lots of application directories (although that is allowed by FHS). Better alternative would be /opt/provider/... (IMHO) (also allowed by FHS), where provider is 'maemo' (is that LANANA-registered (what LANANA???). FHS also says there might be bin/, lib/, include/ and application-name directories intermixed there (which I don't like either). But YMMV. But polluting /opt/maemo with lots of application directories is better? If you want to encourage /opt/provider/application then provider should be some kind of team or individual who's behind multiple apps. Using /opt/maemo for anything other than maemo-optify output could cause confusion, if not problems. Cheers, Andrew -- Andrew Flegg -- mailto:and...@bleb.org | http://www.bleb.org/ Maemo Community Council chair ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
QtSql and Debian package probelm
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 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: QtSql and Debian package probelm
you need libqt4-sql and probably libqt4-sql-plugin ( plugin = sqlite , if you are using sqlite plugin ) - Original Message - From: Sascha Mäkelä Sent: 06/10/10 01:01 PM To: maemo-developers Subject: QtSql and Debian package probelm 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 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: QtSql and Debian package probelm
On 2010-06-10 15:01, Sascha Mäkelä sascha.mak...@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@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: QtSql and Debian package probelm
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.mak...@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 dav...@openismus.com wrote: On 2010-06-10 15:01, Sascha Mäkelä sascha.mak...@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@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: QtSql and Debian package probelm
On 2010-06-10 15:47, Sascha Mäkelä sascha.mak...@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. Which database provider do you use, I guess SQLite? If so, your Depends: line looks correct. When you say that the SQL parts of the application do not work, what is the problem? You could try starting your program from the terminal to check for clues in the output. Either that, or report any error messages that the application gives you. Thanks for all your help, Sascha On Thu, Jun 10, 2010 at 15:12, David King dav...@openismus.com wrote: On 2010-06-10 15:01, Sascha Mäkelä sascha.mak...@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@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: QtSql and Debian package probelm
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.iva...@gmail.comwrote: 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.mak...@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 dav...@openismus.com wrote: On 2010-06-10 15:01, Sascha Mäkelä sascha.mak...@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@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: QtSql and Debian package probelm
I'm just getting: QSqlQuery::value: not positioned on a valid record It's like the app is unable to write any data to the SQLite database. As I said, it does work fine when running it from Qt Creator or MADDE. On Thu, Jun 10, 2010 at 15:57, David King dav...@openismus.com wrote: On 2010-06-10 15:47, Sascha Mäkelä sascha.mak...@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. Which database provider do you use, I guess SQLite? If so, your Depends: line looks correct. When you say that the SQL parts of the application do not work, what is the problem? You could try starting your program from the terminal to check for clues in the output. Either that, or report any error messages that the application gives you. Thanks for all your help, Sascha On Thu, Jun 10, 2010 at 15:12, David King dav...@openismus.com wrote: On 2010-06-10 15:01, Sascha Mäkelä sascha.mak...@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@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to optify in MADDE?
ext Graham Cobb wrote: On Thursday 10 June 2010 12:28:10 Andrew Flegg wrote: Using /opt/maemo for anything other than maemo-optify output could cause confusion, if not problems. I agree with Andrew. We have enough problems maintaining the optify hack without having to worry about other people creating files/directories in /opt/maemo. Consider /opt/maemo reserved for maemo-optify. But I would encourage people to do their own optification if that is feasible. In particular, for new apps, please avoid automatic optification and put your files in /opt yourself. Feel free to create a different /opt direcotry (say /opt/MaemoApp) if you want to put lots of small apps in one place. I fully agree. It would be helpful if tools like MADDE and QtCreator would handle this automatically for people. A bit harder. The developer should be aware of where the files are put and have the control. As well because of the reasons Tim mentioned earlier in this thread. I think creating the folder in /opt/ is a quite easy and safe option. This applies of course mostly for new applications. And as soon as the bug with dh_fixperms is fixed in a new release, it is really straight forward to do that. Daniel Graham ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Problems downloading file on N900 using libcurl ...
Hi, I am a new developer on maemo and using libcurl in C to download a file. When I run the application on normal PC, it works fine but on N900 I get the following: * About to connect() to xyz.com port 80 (#0) * couldn't connect to host * Closing connection #0 * Couldn't connect to server I have installed the following version of curl: Nokia-N900-51-1:~/test# dpkg -l | grep libcurl ii libcurl3 7.18.2-8maemo6+0m5 Multi-protocol file transfer library (OpenSS Any help would be appreciated. Regards, Obaid ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
RE: extras-devel .install files issue
The N900 automatically inserts the proper dist when you open the install file in Application manager. fremantle-1.2 for PR1.2 and just fremantle for all prior PR's Could you describe what the problem you exactly were experiencing and where? Tero From: maemo-developers-boun...@maemo.org [maemo-developers-boun...@maemo.org] On Behalf Of ext Daniil Ivanov [daniil.iva...@gmail.com] Sent: 10 June 2010 14:00 To: Antonio Aloisio Cc: maemo-developers@maemo.org Subject: Re: extras-devel .install files issue Hi Antonio! Extras has it, but extras-devel not. At least at the moment of writing this. Thanks, Daniil. On Thu, Jun 10, 2010 at 1:58 PM, Antonio Aloisio antonio.aloi...@gmail.com wrote: Hi Ram, According to [1] there is just one devel repsitory and it's fremantle. Btw extras has the fremantle-1.2 rep too. Cheers, Antonio [1] http://repository.maemo.org/extras-devel/pool/ On Thu, Jun 10, 2010 at 1:47 PM, Ram Kurvakat rkma...@gmx.com wrote: is it dist = fremantle or dist = fremantle-1.2 ? I thought the latter is linked to the PR1.2 repos, or has it changed ? Ive had similar issues with .install files. Thanks for raising it Daniil. Regards, -krk969 - Original Message - From: Daniil Ivanov Sent: 06/10/10 11:24 AM To: maemo-developers@maemo.org Subject: extras-devel .install files issue Hi all! It seems that are the problems http://repository.maemo.org/extras-devel/dists/fremantle/install/ and that dist = fremantle should be added to the .install files. Thanks, Daniil. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Problems downloading file on N900 using libcurl ...
On Thu, Jun 10, 2010 at 3:56 PM, Obaid Mushtaq obaidmush...@gmail.comwrote: Hi, I am a new developer on maemo and using libcurl in C to download a file. When I run the application on normal PC, it works fine but on N900 I get the following: * About to connect() to xyz.com port 80 (#0) * couldn't connect to host * Closing connection #0 * Couldn't connect to server I have installed the following version of curl: Nokia-N900-51-1:~/test# dpkg -l | grep libcurl ii libcurl3 7.18.2-8maemo6+0m5 Multi-protocol file transfer library (OpenSS Any help would be appreciated. Regards, Obaid ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers Myabe it's a dumb question, but ... is there any active connection (gprs, wifi, bluetooth, usbnet) on the device before launching your application? -- Luca Donaggio ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: extras-devel .install files issue
yes I agree. for example for an app in extras-devel and if you specify distribution = fremantle in the .install file, in my phone(PR1.2) it was looking for fremantle-1.2 by default, some users reported the same. Not sure if this is connected to what is being discussed. I can post the example install file if needed. P.S : the install file worked fine in PR1.1. thanks -krk969 - Original Message - From: Daniil Ivanov Sent: 06/10/10 03:24 PM To: tero.k...@nokia.com Subject: Re: extras-devel .install files issue Hi Tero! The problem is that there is no fremantle-1.2 for extras-devel. Thanks, Daniil. On Thu, Jun 10, 2010 at 5:21 PM, tero.k...@nokia.com wrote: The N900 automatically inserts the proper dist when you open the install file in Application manager. fremantle-1.2 for PR1.2 and just fremantle for all prior PR's Could you describe what the problem you exactly were experiencing and where? Tero From: maemo-developers-boun...@maemo.org [maemo-developers-boun...@maemo.org] On Behalf Of ext Daniil Ivanov [daniil.iva...@gmail.com] Sent: 10 June 2010 14:00 To: Antonio Aloisio Cc: maemo-developers@maemo.org Subject: Re: extras-devel .install files issue Hi Antonio! Extras has it, but extras-devel not. At least at the moment of writing this. Thanks, Daniil. On Thu, Jun 10, 2010 at 1:58 PM, Antonio Aloisio antonio.aloi...@gmail.com wrote: Hi Ram, According to [1] there is just one devel repsit ory and it's fremantle. Btw extras has the fremantle-1.2 rep too. Cheers, Antonio [1] http://repository.maemo.org/extras-devel/pool/ On Thu, Jun 10, 2010 at 1:47 PM, Ram Kurvakat rkma...@gmx.com wrote: is it dist = fremantle or dist = fremantle-1.2 ? I thought the latter is linked to the PR1.2 repos, or has it changed ? Ive had similar issues with .install files. Thanks for raising it Daniil. Regards, -krk969 - Original Message - From: Daniil Ivanov Sent: 06/10/10 11:24 AM To: maemo-developers@maemo.org Subject: extras-devel .install files issue Hi all! It seems that are the problems http://repository.maemo.org/extras-devel/dists/fremantle/install/ and that dist = fremantle should be added to the .install files. Thanks, Daniil. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
RE: extras-devel .install files issue
Utterly missed the link, sorry about that. (wans't really aware that we have .install files for extras-devel :) ) Looks like a case for.. the admin! Niels? Tero From: ext Daniil Ivanov [daniil.iva...@gmail.com] Sent: 10 June 2010 17:24 To: Kojo Tero (Nokia-D/Helsinki) Cc: antonio.aloi...@gmail.com; maemo-developers@maemo.org Subject: Re: extras-devel .install files issue Hi Tero! The problem is that there is no fremantle-1.2 for extras-devel. Thanks, Daniil. On Thu, Jun 10, 2010 at 5:21 PM, tero.k...@nokia.com wrote: The N900 automatically inserts the proper dist when you open the install file in Application manager. fremantle-1.2 for PR1.2 and just fremantle for all prior PR's Could you describe what the problem you exactly were experiencing and where? Tero From: maemo-developers-boun...@maemo.org [maemo-developers-boun...@maemo.org] On Behalf Of ext Daniil Ivanov [daniil.iva...@gmail.com] Sent: 10 June 2010 14:00 To: Antonio Aloisio Cc: maemo-developers@maemo.org Subject: Re: extras-devel .install files issue Hi Antonio! Extras has it, but extras-devel not. At least at the moment of writing this. Thanks, Daniil. On Thu, Jun 10, 2010 at 1:58 PM, Antonio Aloisio antonio.aloi...@gmail.com wrote: Hi Ram, According to [1] there is just one devel repsitory and it's fremantle. Btw extras has the fremantle-1.2 rep too. Cheers, Antonio [1] http://repository.maemo.org/extras-devel/pool/ On Thu, Jun 10, 2010 at 1:47 PM, Ram Kurvakat rkma...@gmx.com wrote: is it dist = fremantle or dist = fremantle-1.2 ? I thought the latter is linked to the PR1.2 repos, or has it changed ? Ive had similar issues with .install files. Thanks for raising it Daniil. Regards, -krk969 - Original Message - From: Daniil Ivanov Sent: 06/10/10 11:24 AM To: maemo-developers@maemo.org Subject: extras-devel .install files issue Hi all! It seems that are the problems http://repository.maemo.org/extras-devel/dists/fremantle/install/ and that dist = fremantle should be added to the .install files. Thanks, Daniil. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Problems downloading file on N900 using libcurl ...
Hi, Yes. I can use PING. The problems seems to be strange to me now. I am running the following program on N900. http://curl.haxx.se/libcurl/c/simple.html When I put www.google.com there, it doesn't work. For other sites, it works. There is no packet generated for the case of google. I have snooped for the traffic. Thanks in advance. BR, Obaid On Thu, Jun 10, 2010 at 4:27 PM, Luca Donaggio donag...@gmail.com wrote: On Thu, Jun 10, 2010 at 3:56 PM, Obaid Mushtaq obaidmush...@gmail.comwrote: Hi, I am a new developer on maemo and using libcurl in C to download a file. When I run the application on normal PC, it works fine but on N900 I get the following: * About to connect() to xyz.com port 80 (#0) * couldn't connect to host * Closing connection #0 * Couldn't connect to server I have installed the following version of curl: Nokia-N900-51-1:~/test# dpkg -l | grep libcurl ii libcurl3 7.18.2-8maemo6+0m5 Multi-protocol file transfer library (OpenSS Any help would be appreciated. Regards, Obaid ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers Myabe it's a dumb question, but ... is there any active connection (gprs, wifi, bluetooth, usbnet) on the device before launching your application? -- Luca Donaggio ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Problems downloading file on N900 using libcurl ...
Hi, The problem was solved by using IPv4 always. curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); Thanks for the cooments. BR, Obaid On Thu, Jun 10, 2010 at 4:53 PM, Obaid Mushtaq obaidmush...@gmail.comwrote: Hi, Yes. I can use PING. The problems seems to be strange to me now. I am running the following program on N900. http://curl.haxx.se/libcurl/c/simple.html When I put www.google.com there, it doesn't work. For other sites, it works. There is no packet generated for the case of google. I have snooped for the traffic. Thanks in advance. BR, Obaid On Thu, Jun 10, 2010 at 4:27 PM, Luca Donaggio donag...@gmail.com wrote: On Thu, Jun 10, 2010 at 3:56 PM, Obaid Mushtaq obaidmush...@gmail.comwrote: Hi, I am a new developer on maemo and using libcurl in C to download a file. When I run the application on normal PC, it works fine but on N900 I get the following: * About to connect() to xyz.com port 80 (#0) * couldn't connect to host * Closing connection #0 * Couldn't connect to server I have installed the following version of curl: Nokia-N900-51-1:~/test# dpkg -l | grep libcurl ii libcurl3 7.18.2-8maemo6+0m5 Multi-protocol file transfer library (OpenSS Any help would be appreciated. Regards, Obaid ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers Myabe it's a dumb question, but ... is there any active connection (gprs, wifi, bluetooth, usbnet) on the device before launching your application? -- Luca Donaggio ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to optify in MADDE?
On Thu 10 Jun 2010 15:17, Graham Cobb g+...@cobb.uk.net writes: On Thursday 10 June 2010 12:28:10 Andrew Flegg wrote: Using /opt/maemo for anything other than maemo-optify output could cause confusion, if not problems. I agree with Andrew. We have enough problems maintaining the optify hack without having to worry about other people creating files/directories in /opt/maemo. Consider /opt/maemo reserved for maemo-optify. Uh. I did not realise this -- and have made one package that uses /opt/maemo itself... have to change that. Maybe I have to settle with /opt/packagename (did I mention I dislike this) as there is no official directory (as /opt/maemo should not be used). But I would encourage people to do their own optification if that is feasible. In particular, for new apps, please avoid automatic optification and put your files in /opt yourself. Feel free to create a different /opt directory (say /opt/MaemoApp) if you want to put lots of small apps in one place. It would be helpful if tools like MADDE and QtCreator would handle this automatically for people. Some going to /opt/xxx, other (desktop/service etc. files) to /usr/... I'll have to check what MADDE (mad pscreate) can do. Graham Tomi ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers