maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Deb package From QT SDK (https://talk.maemo.org/showthread.php?t=57894)

zwiik 2010-07-06 10:14

Deb package From QT SDK
 
i created a debian package from qt sdk using build all button
but it fails to install in the n900 using application manager
dpkg -i finishes succesfully
but the app doesnt appear anywhere in the menu

currently i am running the executable by using run-standalone.sh which works fine..but its tedious and not the way i want to share the app
source and the executable CGPA Calculator

kif 2010-07-06 12:41

Re: Deb package From QT SDK
 
Hi zwiik

You need to have a <your application>.desktop describing your application in /usr/share/applications/hildon/.

If you are using QT Creator it should be placed in <your application> maemo build/debian/usr/share/applications/hildon/ before you build the application.

See http://wiki.maemo.org/Desktop_file_format for full description of the file format.

Kim

zwiik 2010-07-06 17:10

Re: Deb package From QT SDK
 
Quote:

Originally Posted by kif (Post 742395)
Hi zwiik

You need to have a <your application>.desktop describing your application in /usr/share/applications/hildon/.

If you are using QT Creator it should be placed in <your application> maemo build/debian/usr/share/applications/hildon/ before you build the application.

See http://wiki.maemo.org/Desktop_file_format for full description of the file format.

Kim

hey
i had placed it in the same folder as my project and added this to my .pro file
Code:

desktop.path = $$DATADIR/applications/hildon
  desktop.files += tabcgpa.desktop

  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
  icon64.files += tabcgpa.png

so i have to create those directories and place it?
will try that

kif 2010-07-06 21:46

Re: Deb package From QT SDK
 
Yes, I have tried those too, without any success. It may be missing experience though, I have just started using QT.

So i just created the respective folders and placed the .desktop file and icon file where they belong, and they got installed.

Probably not the right solution, but it works ;)

Kim

zwiik 2010-07-07 18:05

Re: Deb package From QT SDK
 
Quote:

Originally Posted by kif (Post 743030)
Yes, I have tried those too, without any success. It may be missing experience though, I have just started using QT.

So i just created the respective folders and placed the .desktop file and icon file where they belong, and they got installed.

Probably not the right solution, but it works ;)

Kim

i tried it your way and it did work :)
also went through the files in the debian folder edited files besides the rules folder
now it builds the package pretty fine.but no success in uploading it to the repository

and kim,would you like to join the project,i sure could use ur skillsand do need the help

kif 2010-07-09 08:30

Re: Deb package From QT SDK
 
Hi zwiik

Quote:

Originally Posted by zwiik (Post 743965)
but no success in uploading it to the repository

I haven't gotten to the upload part yet, but will soon.

What's your problem uploading ?

Quote:

Originally Posted by zwiik (Post 743965)
and kim,would you like to join the project,i sure could use ur skillsand do need the help

Thanks for the invitation, but I'm pretty busy with my own projects right now.

I'm still learning QT and packaging :)

KIm

zwiik 2010-07-11 12:20

Re: Deb package From QT SDK
 
hope u get the uploading part soon
lot of people gettin errors from autobuilder
me too:P
i am still at the basics
goodluck to u

zwiik 2010-07-12 09:44

Re: Deb package From QT SDK
 
successfully uploaded now ..in queue ryt now :)

amar_amar 2010-07-18 18:41

Re: Deb package From QT SDK
 
i created a debian package from qt sdk using build all button
but it fails to install in the n900 using application manager
dpkg -i finishes succesfully
but the app doesnt appear anywhere in the menu.


I have read the threads above but couldn understand about the .desktop file.

Please can anyone explain me wat to do exactly ???

zwiik 2010-07-19 08:14

Re: Deb package From QT SDK
 
Quote:

Originally Posted by amar_amar (Post 756002)
i created a debian package from qt sdk using build all button
but it fails to install in the n900 using application manager
dpkg -i finishes succesfully
but the app doesnt appear anywhere in the menu.


I have read the threads above but couldn understand about the .desktop file.

Please can anyone explain me wat to do exactly ???

hey not installing using n900 app manager??wow join the club
well i havent put much effort into that but
i can help u out with the shortcut in the menu

u can do this by creating a desktop entry file like this one
Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.7
Type=Application
Name=CGPA Log
Exec=/usr/bin/tabcgpa
Icon=tabcgpa
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

remember to values with your values
u have to place this in /usr/share/applications/hildon/ as yourAppname.desktop

and for including this in your deb file
what i have done myself is to ccreate the same directories in the debian/appname folder in ur proj
create the same directories in the debian/appname folder in ur project folder
and place the file there

similarly u can add a icon (png 64x64) in the /usr/share/icons/hicolor/64x64/apps/


All times are GMT. The time now is 01:02.

vBulletin® Version 3.8.8