View Single Post
Posts: 200 | Thanked: 44 times | Joined on Jan 2010
#3
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 .

Last edited by jamie721; 2010-05-28 at 19:44.