Reply
Thread Tools
Posts: 52 | Thanked: 8 times | Joined on Apr 2010
#1
I have been creating some qt-based python apps for my n900. I dont like having to navigate through the terminal and executing them that way.

I would like to know if it is possible to 'compile' the app, as such, to appear in the applications dialog with the rest of my installed ones. Im saying this because i want to know if it would be possible to submit it to a repository in the future.

thanks
 
Swimm12984's Avatar
Posts: 80 | Thanked: 37 times | Joined on Feb 2010 @ Long Island, New York
#2
You could always package a GUI seperately (ie PianoBar & pyPianobar)
__________________
Sean aka Mr. Swimmtastic
Long Island/NYC Resident Nokia S60/Maemo Lover

Lover of Music, Technology & Travel
If I'm not logged in, I'm probably jetsetting to a city near you...
 

The Following 2 Users Say Thank You to Swimm12984 For This Useful Post:
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#3
i use pypackager and py2deb (Never remember which is which) - but allows you to package it on the device, and gets it all ready for the repo's (Obviously who have to edit a few files, and add an icon here and there! - but wasn't too bad )
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 

The Following 3 Users Say Thank You to noobmonkey For This Useful Post:
Posts: 52 | Thanked: 8 times | Joined on Apr 2010
#4
Ok thanks, i'll check out py2deb, it seems more direct. I take it the file editing is simply entering in the information that will appear in the catologue.

If i package it to a deb file, is it as simple as jus installing the deb file on my device? I suppose that would be the same as using apt-get install if it was in a repo.
 
Posts: 398 | Thanked: 301 times | Joined on Sep 2007 @ Texas
#5
Once packaged, you can upload it to extras and it can appear in application manager.

You can also install the deb directly.

Frank
 
Banned | Posts: 388 | Thanked: 57 times | Joined on Mar 2010
#6
Originally Posted by Jaso333 View Post
I have been creating some qt-based python apps for my n900. I dont like having to navigate through the terminal and executing them that way.

I would like to know if it is possible to 'compile' the app, as such, to appear in the applications dialog with the rest of my installed ones. Im saying this because i want to know if it would be possible to submit it to a repository in the future.

thanks
Would you consider writing a small tutorial describing your progress? I am thinking to follow a similar path to yours. A tutorial or a wiki page would make beginners like me happy indeed.
 
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#7
To be able to launch your app through the menu, you need to create a .desktop file at the right place:
http://wiki.maemo.org/Desktop_file_format

To upload it into a repository, you need to create a source package containing the information necessary to create the .deb package by the autobuilder. Py2deb, or Esbox can help you with that step (many tutorials are available online as well on how to create a debian package, not specific to meamo).
 

The Following User Says Thank You to Slocan For This Useful Post:
Posts: 52 | Thanked: 8 times | Joined on Apr 2010
#8
Originally Posted by gsever View Post
Would you consider writing a small tutorial describing your progress? I am thinking to follow a similar path to yours. A tutorial or a wiki page would make beginners like me happy indeed.
Im considering writing a beginner's tutorial for PyQt setup and a simple application on a Windows PC. Im using a program called Eric4 with governs the whole lot, from ui creation to executing the functional python files.

I've only just got my head round the whole lot myself, after a week of deciding which route to take. It can get very complicated, simply writing and deploying an application on the n900. I've only just got the ball rolling myself so when i've developed a fully functional application and managed to submit it to the extras repo, i will write a tutorial on it.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#9
Originally Posted by noobmonkey View Post
i use pypackager and py2deb (Never remember which is which) - but allows you to package it on the device, and gets it all ready for the repo's (Obviously who have to edit a few files, and add an icon here and there! - but wasn't too bad )
I used py2deb initially for pyPianobar, but once I had more than one version for the changelog I couldn't get a properly formatted changelog out of it.

So I basically used py2deb to build me the initial DEBIAN/ and root structure of the files.. then I just managed all the files by hand from there and used "dpkg-buildpackage -rfakeroot" to build the deb from there.

I refer to this article quite often when building deb packages because of it's many examples of the different required files and shows how to build the structure completely yourself.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following User Says Thank You to fatalsaint For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:48.