Active Topics

 


Reply
Thread Tools
Rachel's Avatar
Posts: 6 | Thanked: 1 time | Joined on Apr 2010 @ Oulu, Finland
#1
Apologies if I am being a doik with this, but I am flummoxed -

I have a couple of small, simple Qt apps which I have recompiled and repackaged for Maemo5 PR 1.2 using Madde running on a Mac (lovely build environment, btw).

The apps run nicely on Mac and on Linux, and I am pretty sure that the apps are working fine. They even run fine on Windows, although obviously using Windows is not something I do, if I can avoid it.

They install nicely on the N900, but don't run when I tap the icons - or if they do run, they start to open up and then crash.

But if I start the applications from the command line, they run fine.

So, there is nothing wrong with the applications, it is obviously my packaging which has the problem.

As you can see, I am a noob at packaging applications. I created the packaging for the applications by following the MADDE instructions, ie

mad pscreate -t qt_simple newapp
/* add code etc */
mad qmake
mad make
mad dpgk-buildpackage

I also tried building the application in scratchbox, same problem - runs on command line but not from menu.

I've looked through this forum and found something about adding QT += maemo5 to the .pro file - tried this but no help.


Any hints about what I am missing out/doing wrong would be much appreciated.


cheers,


rache
 
mwerle's Avatar
Posts: 47 | Thanked: 28 times | Joined on Dec 2009 @ London, UK
#2
I'm guessing you followed the Wiki article?

In particular, you have .services files for your apps?
__________________
My apps: mwTube
 
Rachel's Avatar
Posts: 6 | Thanked: 1 time | Joined on Apr 2010 @ Oulu, Finland
#3
Yes, I did read the wiki article, and yes I do have .service files for each app.

Still not working.




Edit: it's an article, not an app.

Last edited by Rachel; 2010-06-02 at 18:06.
 
Posts: 35 | Thanked: 64 times | Joined on Aug 2006 @ Somerville, MA
#4
You also need a little code in your app to register itself with D-Bus and respond to the appropriate signals. This article summarizes what's needed. I have this working in PortaBase, so you can look at its source code if you want another example. (I had the same problem initially, where the app would start up and run fine from the command line but crash if launched from the icon.)
 

The Following 2 Users Say Thank You to jmbowman For This Useful Post:
Posts: 435 | Thanked: 769 times | Joined on Apr 2010
#5
Try : sudo chmod 771 executableabspath

If they don't open from menu but they do from command line it may be a privs trouble..
 
Rachel's Avatar
Posts: 6 | Thanked: 1 time | Joined on Apr 2010 @ Oulu, Finland
#6
That looks like it - will go through the article and take a look at PortaBase tonight.


Thanks!

Rachel.
 
mwerle's Avatar
Posts: 47 | Thanked: 28 times | Joined on Dec 2009 @ London, UK
#7
Originally Posted by jmbowman View Post
You also need a little code in your app to register itself with D-Bus and respond to the appropriate signals.
I was under the obviously mistaken impression that the QT framework did that for you (can't locate source offhand). Thanks for the link.
__________________
My apps: mwTube
 
Rachel's Avatar
Posts: 6 | Thanked: 1 time | Joined on Apr 2010 @ Oulu, Finland
#8
Originally Posted by mwerle View Post
I was under the obviously mistaken impression that the QT framework did that for you (can't locate source offhand). Thanks for the link.
You would have thought so, wouldn't you - it does everything else nicely.

App now working - the .desktop and .service files are created by the MADDE environment and only need app name and path changing. MADDE also adds the service.path and service.files lines into the .pro file - all I needed to add was the QDBusConnection calls to registerService and registerObject, the parts in the tutorial adding lines to the QMainWindow didn't need to be added.

PortaBase looks like a tidy app too!


Thanks again,


rache.
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:28.