maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   packaging n900 apps using qt creator (https://talk.maemo.org/showthread.php?t=57091)

s15mos 2010-06-25 12:42

packaging n900 apps using qt creator
 
I cant seem to permanently install the examples that are given in qt creator... i have tried using the .deb it actually sends to the n900 when debugging, but when i drag onto my phone and open in app manager it wont install it, just get an error... any help??? i have also tried a hello world app from scratch which i successfully packaged and installed on my phone, just wondering why this one wont work?

naabi 2010-06-25 13:04

Re: packaging n900 apps using qt creator
 
So this is the QtCreator which was launched yesterday? The previous version was not able to package software for N900. Some kind of tutorial would be nice, I haven't had the time to play with it yet.

s15mos 2010-06-26 09:12

Re: packaging n900 apps using qt creator
 
bump...........

Pavol 2010-06-26 11:48

Re: packaging n900 apps using qt creator
 
How to create a deb package in a Qt Creator?

s15mos 2010-06-27 23:41

Re: packaging n900 apps using qt creator
 
re bump.......???

s15mos 2010-06-29 05:18

Re: packaging n900 apps using qt creator
 
anyone?????????

strekazoid 2010-06-29 07:21

Re: packaging n900 apps using qt creator
 
Are you guys talking about this Packaging error - Command 'dh_make -s -n -p -maemo_test_0.1' failed ?

I'm getting it too when trying to deploy an app from Qt Creator to the N900. Would like to know how to get things working.

danielwilms 2010-06-29 08:29

Re: packaging n900 apps using qt creator
 
Hi,

Quote:

Originally Posted by strekazoid (Post 733618)
Are you guys talking about this Packaging error - Command 'dh_make -s -n -p -maemo_test_0.1' failed ?

I'm getting it too when trying to deploy an app from Qt Creator to the N900. Would like to know how to get things working.

in the name for a package should not contain any underscores. Try to name it "maemo-test" and it should work. Some more information about package naming:

Quote:

packagename_version_arch.deb, where "packagename" is the name of the package, "version" is the package version with major, minor, and revision numbers, and "arch" is the architecture for the package.

The name of the package itself (not the filename, just the name of the package) can contain lowercase letters, numbers, and the "-" and "+" characters.
source

Daniel

aenbacka 2010-06-29 08:46

Re: packaging n900 apps using qt creator
 
Concerning using QtCreator to create a deb package (using the final 2.0 version part of NokiaQtSDK); is it currently possible at all to customize the package creation process (e.g., by editing debian/rules, debian/control etc.)? It seems that currently QtCreator always executes the same build steps. This means that I at the moment still need to use the Scratchbox environment to build my project.

danielwilms 2010-06-29 08:51

Re: packaging n900 apps using qt creator
 
Hi,

Quote:

Originally Posted by s15mos (Post 728904)
I cant seem to permanently install the examples that are given in qt creator... i have tried using the .deb it actually sends to the n900 when debugging, but when i drag onto my phone and open in app manager it wont install it, just get an error...

which error do you get? Do you have the exact error-message? Maybe missing dependencies? Hard to say what's going wrong. You could as well get root-access on the device and run:

Code:

dpkg -i /path/to/your/package/package.deb
Daniel

mohannad 2010-06-29 09:16

Re: packaging n900 apps using qt creator
 
I followed the instructions in the following link and it worked for me.
http://talk.maemo.org/showthread.php?t=39962
Ill put up step by step instructions on my blog this weekend if youre still having trouble.

strekazoid 2010-06-29 11:15

Re: packaging n900 apps using qt creator
 
Quote:

Originally Posted by danielwilms (Post 733691)
Hi,



in the name for a package should not contain any underscores. Try to name it "maemo-test" and it should work. Some more information about package naming:



source

Daniel

Thanks, it worked!

danielwilms 2010-06-29 14:32

Re: packaging n900 apps using qt creator
 
Quote:

Originally Posted by aenbacka (Post 733722)
Concerning using QtCreator to create a deb package (using the final 2.0 version part of NokiaQtSDK); is it currently possible at all to customize the package creation process (e.g., by editing debian/rules, debian/control etc.)? It seems that currently QtCreator always executes the same build steps. This means that I at the moment still need to use the Scratchbox environment to build my project.


You can modify your settings in the debian-folder, which you can find shadow-build folder. It uses MADDE's dpkg-buildpackage, so it should take the changes in the control, changelog files into account. If you have faced concrete problems with it, please let me know.

Daniel

aenbacka 2010-06-29 18:33

Re: packaging n900 apps using qt creator
 
Thanks for your reply. I tried modifying e.g., the rules file in the shadow-build debian folder, but the changes were not taken into account when re-building the project (tried to comment out the dh_shlibdeps step, due to problem with locating dependency information for one of the libs in my project). Should such a modification be possible in the current QtCreator / MADDE versions?


Quote:

Originally Posted by danielwilms (Post 734149)
You can modify your settings in the debian-folder, which you can find shadow-build folder. It uses MADDE's dpkg-buildpackage, so it should take the changes in the control, changelog files into account. If you have faced concrete problems with it, please let me know.

Daniel


thecube 2010-06-30 00:17

Re: packaging n900 apps using qt creator
 
Hi!
I also have problems run my hello_0.1_armel.deb on my n900.
Created with QT Creator, C++, Winx64

I tried to rename it, to hi.deb

everytime I get from programm manager the error
Quote:

installing hello not possible
programm pakets not compatible
Any ideas???????

danielwilms 2010-06-30 12:35

Re: packaging n900 apps using qt creator
 
Quote:

Originally Posted by aenbacka (Post 734448)
Thanks for your reply. I tried modifying e.g., the rules file in the shadow-build debian folder, but the changes were not taken into account when re-building the project (tried to comment out the dh_shlibdeps step, due to problem with locating dependency information for one of the libs in my project). Should such a modification be possible in the current QtCreator / MADDE versions?

For me it seems to be a bug in QtCreator. I tried it directly with the command-line tools of MADDE and it took the changes in the rules file into account, while QtCreator didn't. I have filed a bug-report there.

Daniel

aenbacka 2010-06-30 13:29

Re: packaging n900 apps using qt creator
 
Thank you for the info. I have also tried directly using the MADDE terminal, and then the changes were indeed taken into account.

Quote:

Originally Posted by danielwilms (Post 735358)
For me it seems to be a bug in QtCreator. I tried it directly with the command-line tools of MADDE and it took the changes in the rules file into account, while QtCreator didn't. I have filed a bug-report there.

Daniel


nath 2010-06-30 13:48

Re: packaging n900 apps using qt creator
 
Quote:

Originally Posted by thecube (Post 734807)
Hi!
I also have problems run my hello_0.1_armel.deb on my n900.
Created with QT Creator, C++, Winx64

I tried to rename it, to hi.deb

everytime I get from programm manager the error


Any ideas???????

This sounds like the version of the Nokia Qt SDK and on your n900 are incompatible.
Is your n900 updated to PR1.2?
Do you use the 1.0 release of the Nokia Qt SDK?

thecube 2010-06-30 19:55

Re: packaging n900 apps using qt creator
 
Quote:

Originally Posted by nath (Post 735411)
This sounds like the version of the Nokia Qt SDK and on your n900 are incompatible.
Is your n900 updated to PR1.2?
Do you use the 1.0 release of the Nokia Qt SDK?

Hi!

I used the 1.0 release from here:
http://www.forum.nokia.com/info/sw.n...ia_Qt_SDK.html

my n900 has the pr1.2
10.2010.19-1

what are the steps to build 100% an arm deb for the n900 with qt creator? maybe I did something wrong

realsportcars 2010-07-01 01:14

Re: packaging n900 apps using qt creator
 
Quote:

Originally Posted by thecube (Post 736017)
Hi!

I used the 1.0 release from here:
http://www.forum.nokia.com/info/sw.n...ia_Qt_SDK.html

my n900 has the pr1.2
10.2010.19-1

what are the steps to build 100% an arm deb for the n900 with qt creator? maybe I did something wrong

Im not sure to understand but when you create a package you need to install it from N900 command line or from PC command line using madde.
Packages created from SDK are not "signed" as application manager requires.

Also i suggest you to use madde from command line because SDK seems to ignore somethings like the .pro file (or perhaps it uses a different procedures/keywords)

NightShift79 2010-07-17 02:36

Re: packaging n900 apps using qt creator
 
Quote:

Originally Posted by danielwilms (Post 733731)
Hi,



which error do you get? Do you have the exact error-message? Maybe missing dependencies? Hard to say what's going wrong. You could as well get root-access on the device and run:

Code:

dpkg -i /path/to/your/package/package.deb
Daniel

the deb can be installed this way. thanks... but why it doesn't have any Menu Icon ? How schould i start my app with a gui made in Qt ?

cmczzzzz 2010-08-04 20:41

Re: packaging n900 apps using qt creator
 
Adding an app icon seems to be rather unwieldy process, I'm also trying to figure it out. I have my app developed and tested but it seems the hard part is adding the icon!

jonnenau 2010-08-05 10:17

Re: packaging n900 apps using qt creator
 
I have heard that using git head for Qt Creator will have packaging in the ui. I don't think its in the release Qt Creator has this feature, not sure if it will be in the release next to Qt 4.7. Just something I heard from Nokia folks, as they wanna make releasing easier. Might not be 100% accurate info, haven't build it myself.

http://qt.gitorious.org/qt-creator/

Seems to have 2.1.0 branch already, maybe the feature is in there, dunno.

cmczzzzz 2010-08-05 12:48

Re: packaging n900 apps using qt creator
 
I'm using the latest nightly snapshot and it isn't in there. To be fair it does package up the app into a .deb package and this works pretty well, but it isn't clear to me how I can add an icon. Maybe there is a way but really this is something that nearly everybody wants for a GUI app so it is something that should be added to Qt Creator. I have logged a bug so we'll see what happens:

http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2017

abuelmagd 2010-11-01 04:07

Re: packaging n900 apps using qt creator
 
any updates here?

i seem to be able to install my deb package as root with no problems but now only root can run that program. of course this is in addition to it not having an icon, but i think before having an icon i will need to know first how to install it to the normal user.

Laethnes 2010-12-16 14:49

Re: packaging n900 apps using qt creator
 
Did anything change, or if I want to create .deb package with dependencies, icon, description and so, I need to do it out of QtCreator and .pro file?


All times are GMT. The time now is 23:31.

vBulletin® Version 3.8.8