![]() |
Packaging a Qt App to Deploy With It's Icon
1 Attachment(s)
Hi All,
I hope you can help. I felt I was spamming the Technology Preview thread with dev type questions, so I have started a new thread. Anyhoo, I've got my first Qt app working, it deploys and I can run it from X-Terminal, but I can't get it to deploy to the N900 and display as an Icon to run it directly. Here's what I have done. I followed DanielWilm's instructions on this page: http://talk.maemo.org/showpost.php?p...4&postcount=28 and also Too's instructions in this post http://talk.maemo.org/showpost.php?p...&postcount=117 My source code is attached. When I compile I do the following - Code:
mad dh_make --createorig --single -e s.l@gmail.com -c gpl After that last command I get the following - Code:
/usr :confused: I know little of nothing about MAKEFILEs and I suspect that may be my downfall. Fingers crossed that someone can help. Also - sorry to be a pain, but if you think you can help please don't assume I know anything :) Sorry, but idiot proof steps would be a great help! I'd be more than happy to put together a guide for the Madde wiki FAQ once I get my head around this.... Thanks, Shep |
Re: Packaging a Qt App to Deploy With It's Icon
Quote:
I didnt see any debian config files likes debian/rules or debian/control. the problem seems like either nothing is getting built or they are not getting installed. sorry for the vague answer, but can you try to make this a little more clear. |
Re: Packaging a Qt App to Deploy With It's Icon
you are missing the .desktop file, see http://wiki.maemo.org/Desktop_file_format and http://wiki.maemo.org/Packaging_a_Qt...n_.26_position
|
Re: Packaging a Qt App to Deploy With It's Icon
Quote:
I did have a .desktop file though, maybe in the wrong place? |
Re: Packaging a Qt App to Deploy With It's Icon
2 Attachment(s)
OK, I've gone back to basics and started from scratch.
- Created project through Madde - Edited, tested etc. with QT Creator - (once tested) Created clean empty top level folder "wwcalc-0.2" - Added my "src" folder to the "wwcalc-0.2" folder - Added a "data" folder to the project with 2 subfolders, "48x48" and "64x64", each of these has a png called "wwcalc.png" inside (see folders.jpg attached for structure) - Inside the new top level folder created a file called "wwcalc.pro" Code:
TEMPLATE = subdirs Code:
TARGET = wwcalc Code:
[Desktop Entry] - In madde execute Code:
mad dh_make --createorig --single -e foo.bar@gmail.com -c gpl Code:
... Code:
mad dpkg-buildpackage Any ideas what's wrong with the setup now? Thanks, Shep |
Re: Packaging a Qt App to Deploy With It's Icon
Quote:
please refer the wiki here basically you need to run this I think gtk-update-icon-cache /usr/share/icons/hicolor check the wiki as the info might be updated or alternatively try restarting your device and the icons might appear, had worked like that for me, but the wiki has info to make it work right first time. |
Re: Packaging a Qt App to Deploy With It's Icon
I just followd your example and i get no icon at all, not even a blue one.
What i did was the following: Downloaded your source, extracted it. Executed these commands: mad dh_make --createorig --single -e foo.bar@gmail.com -c gpl mad qmake mad dpkg-buildpackage Then transfered the file to device and installed it.. No icon at all.. And no way to uninstall it.. Can some please please please make a tutorial on how to create an icon for this example: http://wiki.maemo.org/MADDE/Qt_Example I bet that will help many, if someone can tell me the exact steps to take here i can make a wiki on how to do it. No problem. Please, someone must know this. |
Re: Packaging a Qt App to Deploy With It's Icon
Quote:
I have no option to uninstall either, which surprised me when the (blank) icon finally installed. The is a mad command to remove a target, I wonder does that to an uninstall??? anyhow I guess you can always "sudo gainroot" and remove the folders. Quote:
Shep |
Re: Packaging a Qt App to Deploy With It's Icon
Quote:
I guess it's a problem with the package still. Shep |
Re: Packaging a Qt App to Deploy With It's Icon
shep: i transfered it with usb and installed with dpkg -i with root access.
|
All times are GMT. The time now is 06:10. |
vBulletin® Version 3.8.8