Reply
Thread Tools
lostinmirkwood's Avatar
Posts: 128 | Thanked: 232 times | Joined on Sep 2009 @ New Jersey, USA
#11
I went to the directory on my n900 where the application part resides and tried to run it i got permission denied the tried to run the example and it ran so i think its a permissions issue.
What directory do you have the application in? this could be your issue. in MyDocs i don't think you can set the executable bit. so you have move it to your /opt and then chmod +x
 
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#12
i can not garuntee it is possible in madde i will test it for you when i go home.

I did it in scratch box eventualy had to learn alot of comand line along the way.

How far are you with your experimenting which stage. writing , compiling or testing on device ?
 
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#13
Originally Posted by lostinmirkwood View Post
What directory do you have the application in? this could be your issue. in MyDocs i don't think you can set the executable bit. so you have move it to your /opt and then chmod +x
it was not a normal application so it would be tested in the place stated above. usr/lib/hildon-desktop/ if i remember correctly. I have solved the issue using chmod 775 fileName.

could somebody explain to me what chmod 775 actualy does i have a feeling it sets the executable bit or is it more to do with permissions ?
 
Banned | Posts: 138 | Thanked: 45 times | Joined on Feb 2010
#14
christ all this bugginess makes me sick

can we, as a community look at running AROS on the N900

hmmm mabe AROS is x86 and not PPC no when i think about it

in that case can we port Amiga OS 3.9 (ppc) to N900 ????

feck if that dont work can we port RISCOS, damn I always wanted an Archimedes
 
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#15
Originally Posted by garyc2010 View Post
christ all this bugginess makes me sick

can we, as a community look at running AROS on the N900

hmmm mabe AROS is x86 and not PPC no when i think about it

in that case can we port Amiga OS 3.9 (ppc) to N900 ????

feck if that dont work can we port RISCOS, damn I always wanted an Archimedes
Was that ment for this thread??
 
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#16
BIG EDIT TO MAKE THINGS CLEAR.

MADDE creation of files unclear if it works as of yet.

Scratchbox defernetly works for this.

Ok so you have created a widget using the template given by the guy above me and you want to test it on the device or simulator.

First of all you should compile your application in the same way you would a normal qt application for maemo.

Go to scratchbox decide on your target x86 or arm.

cd to the applications folder.

Then use.

"qmake"

then

"make"

You then have to create a .desktop file i used the one from the example and edited it for my application.The file must be lower case. very simple just change the name at X-path to your application name and change type= to type = qt. and change the name part so the correct name is sown in the add widget gui.

Then either cp "x86" or scp "arm" your files over dippending on weather you target the x86 emulator or the arm processor.

make sure when you scp a file to your mobile that you state the file you want to scp first then the location you want to deliver it to.

This had me stumped for a while because i was scp'ing from my mobile to my computer woops.

Location for files on mobile.

.desktop file
/usr/share/applications/hildon-home
Edit: .desktop file name must be lower case.

executable file
/usr/lib/hildon-desktop

Location for files on emulator.

.desktop file
/scratchbox/users/"computer login name"/target/Fremantel x86/usr/share/applications/hildon-home/

Executable file
/scratchbox/users/"computer login name"/target/Fremantel x86/usr/lib/hildon-desktop

Once this is done go to your x-term on the mobile/desktop "dippending if you are emulating or testing on device". locate the executable file.

Do "chmod 775 'executable file name'" without quotes or back ticks.

You dont realy need to do this on the emulator testing but its good to remember.

one last step make sure you have installed the qt-homescreen-loader can either be installed when istalling the examples for the homscreen widget opr installed seperatly thro apt-get.

Hint "apt-cache search" is your freind.

once the loader is installed go to the add widget section and you should see it there click to add it.

Bang and the work is done .

Have to love thos cilit bang adverts.

I will create this into a wiki if people would prefer with alot more detail.

If you fancy saying cheers just hit the thansk button .
 
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#17
I'd like to see if it works for MADDE.
 
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#18
ok sorry i forgot to test it when i went home im at work now till 1:00pm gmt. i have a free evning i shall give it a go for you. altho i have mad it as simple as poissible for you to do it your self.

Just exchange qmake for mad qmake and make for mad make then test on device with the example. If you are having problems i wil help you sort them out.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:39.