![]() |
2010-01-17
, 01:37
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#2
|
Hi All,
After that last command I get the following -
But still....no icon on the N900Code:/usr /usr/bin /usr/bin/wwcalc /usr/sbin /usr/share /usr/share/doc /usr/share/doc/wwcalc /usr/share/doc/wwcalc/changelog.Debian.gz /usr/share/doc/wwcalc/copyright /usr/share/doc/wwcalc/README.Debian /usr/share/icons /usr/share/icons/hicolor /usr/share/icons/hicolor/64x64 /usr/share/icons/hicolor/64x64/apps /usr/share/icons/hicolor/64x64/apps/wwcalc.png
...
Shep
The Following User Says Thank You to krk969 For This Useful Post: | ||
![]() |
2010-01-17
, 01:49
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#3
|
![]() |
2010-01-17
, 11:36
|
|
Posts: 85 |
Thanked: 65 times |
Joined on Jan 2010
@ Ireland
|
#4
|
you are missing the .desktop file, see http://wiki.maemo.org/Desktop_file_format and http://wiki.maemo.org/Packaging_a_Qt...n_.26_position
![]() |
2010-01-17
, 11:58
|
|
Posts: 85 |
Thanked: 65 times |
Joined on Jan 2010
@ Ireland
|
#5
|
TEMPLATE = subdirs SUBDIRS = src
TARGET = wwcalc TEMPLATE = app SOURCES += qtmain.cpp \ mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui PREFIX = ../debian/wwcalc/usr unix { BINDIR = $$PREFIX/bin DATADIR =$$PREFIX/share DEFINES += DATADIR=\"$$DATADIR\" PKGDATADIR=\"$$PKGDATADIR\" #MAKE INSTALL INSTALLS += target desktop target.path =$$BINDIR desktop.path = $$DATADIR/applications/hildon desktop.files += wwcalc.desktop icon64.path = $$DATADIR/icons/hicolor/64x64/apps icon64.files += ../data/64x64/wwcalc.png }
[Desktop Entry] Encoding=UTF-8 Version=0.2 Type=Application Name=WW Calc Exec=/usr/bin/wwcalc Icon=wwcalc X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable
mad dh_make --createorig --single -e foo.bar@gmail.com -c gpl mad qmake
... install_icon64: first FORCE @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/icons/hicolor/64x64/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/icons/hicolor/64x64/apps/ -$(INSTALL_FILE) c:\MADDE\0.5\home\Stephen\wwcalc-0.2\data\64x64\wwcalc.png $(INSTALL_ROOT)/usr/local/share/icons/hicolor/64x64/apps/ uninstall_icon64: FORCE -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/local/share/icons/hicolor/64x64/apps/c:/MADDE/0.5/home/Stephen/wwcalc-0.2/data/64x64/wwcalc.png -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/share/icons/hicolor/64x64/apps/ ...
mad dpkg-buildpackage mad remote -r org.maemo.wwcalc send ../wwcalc_0.2-1_armel.deb mad remote -r org.maemo.wwcalc install wwcalc_0.2-1_armel.deb mad remote -r org.maemo.wwcalc run dpkg -L wwcalc
The Following User Says Thank You to shep For This Useful Post: | ||
![]() |
2010-01-17
, 12:15
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#6
|
![]() |
2010-01-17
, 13:49
|
Posts: 60 |
Thanked: 23 times |
Joined on Jan 2010
|
#7
|
![]() |
2010-01-17
, 16:12
|
|
Posts: 85 |
Thanked: 65 times |
Joined on Jan 2010
@ Ireland
|
#8
|
...
Then transfered the file to device and installed it..
No icon at all..
And no way to uninstall it..
Can some please please please make a tutorial on how to create an icon for this example:
http://wiki.maemo.org/MADDE/Qt_Example
I bet that will help many, if someone can tell me the exact steps to take here i can make a wiki on how to do it. No problem.
Please, someone must know this.
![]() |
2010-01-17
, 16:18
|
|
Posts: 85 |
Thanked: 65 times |
Joined on Jan 2010
@ Ireland
|
#9
|
this is a known issue
please refer the wiki here
basically you need to run this I think
gtk-update-icon-cache /usr/share/icons/hicolor
check the wiki as the info might be updated
or alternatively try restarting your device and the icons might appear, had worked like that for me, but the wiki has info to make it work right first time.
![]() |
2010-01-17
, 16:58
|
Posts: 60 |
Thanked: 23 times |
Joined on Jan 2010
|
#10
|
I hope you can help. I felt I was spamming the Technology Preview thread with dev type questions, so I have started a new thread.
Anyhoo, I've got my first Qt app working, it deploys and I can run it from X-Terminal, but I can't get it to deploy to the N900 and display as an Icon to run it directly.
Here's what I have done.
I followed DanielWilm's instructions on this page: http://talk.maemo.org/showpost.php?p...4&postcount=28 and also Too's instructions in this post http://talk.maemo.org/showpost.php?p...&postcount=117
My source code is attached.
When I compile I do the following -
After that last command I get the following -
I know little of nothing about MAKEFILEs and I suspect that may be my downfall.
Fingers crossed that someone can help.
Also - sorry to be a pain, but if you think you can help please don't assume I know anything
I'd be more than happy to put together a guide for the Madde wiki FAQ once I get my head around this....
Thanks,
Shep
Last edited by shep; 2010-01-17 at 08:32.