View Single Post
Posts: 60 | Thanked: 23 times | Joined on Jan 2010
#20
Okay, I will type the steps i take:

1. Open MADDE terminal

2. Execute: mad pscreate -t qt_simple qth

3. Renamed folder qth to qth-0.1

4. Deleted folders debian and uis

5. Placed a 64x64 image named qth.png in src folder

6. Created a file named qth.desktop in src with this content:
Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=qth
Exec=/usr/bin/qth
Icon=qth
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
7. Created qth.service in src with this content:
Code:
[D-BUS Service]
Name=org.maemo.qth
Exec=/usr/bin/qth
8. Created src.pro in src with this content:
Code:
TARGET = qth
TEMPLATE = app
SOURCES += qtmain.cpp 
HEADERS +=  
FORMS += 
PREFIX = ../debian/qth/usr

unix {
BINDIR = $$PREFIX/bin
DATADIR =$$PREFIX/share

DEFINES += DATADIR=\"$$DATADIR\" PKGDATADIR=\"$$PKGDATADIR\"

#MAKE INSTALL

INSTALLS += target desktop icon64 service

  target.path =$$BINDIR

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

  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
  icon64.files += qth.png
  
  service.path = $$DATADIR/usr/share/dbus-1/services
  service.files += qth.service

}
8. Then created a file named qth.pro in the qth-0.1 folder with this content:
Code:
TEMPLATE = subdirs
SUBDIRS  = src
9. Deleted the file named qtprog.pro

10. Then i used these commands:
Code:
cd qth-0.1
mad dh_make --createorig --single -e foo.bar@gmail.com -c gpl
mad qmake
mad dpkg-buildpackage
11. Transfered qth_0.1-1_armel.deb to the N900 (MyDocs)

12. Open Terminal (N900)

13. Executed: sudo gainroot

14. Executed: cd MyDocs

15. Executed: dpkg -i qth_0.1-1_armel.deb

Shortcut to application is in the app selection menu! (Blue icon)

16. restarted N900

Shortcut now has icon in app selection menu!

Now.. how to uninstall with app manager ? is it possible?
Thanks a lot shep!

Last edited by tmsha; 2010-01-18 at 19:02.
 

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