Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Super Contributor tamhanna's Avatar
    Join Date
    Jul 2008
    Posts
    2,020
    Hi Folks,
    I am sorry but I have to bug you yet again with something which is probably very small.

    I want to set the launcher icon and the display name of my app. Can I do this in Qt creator, to target the N900?

    All the best
    Tam Hanna
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  2. #2
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Icon and name are in .desktop file, which is part of Debian package.
    Here you can find sample Debian package
    http://wiki.forum.nokia.com/index.ph...mple-0.0.1.zip
    Beware of DBus.
    Last edited by divanov; 2010-06-21 at 22:43.

  3. #3
    Super Contributor tamhanna's Avatar
    Join Date
    Jul 2008
    Posts
    2,020
    Hi divanov,
    thank you so much!

    What is the issue with DBus?

    Tam
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  4. #4
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by tamhanna View Post
    What is the issue with DBus?
    You should not use .service file unless you initialize DBus in your application. The sample application does it, but you may not need that.

  5. #5
    Super Contributor tamhanna's Avatar
    Join Date
    Jul 2008
    Posts
    2,020
    Hi Daniil,
    thank you so much for your help!

    I have now looked at the downloaded package - but it looks like the Nokia Qt SDK has already created the /debian/ folder for me.

    I now wonder about the following:
    a) how can I change the templates for version, etc which the Qt Creator uses for the files in the /debian/ folder
    b) how can I add a .desktop file in this configuration
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  6. #6
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Debianization made by MADDE is pretty much similar to sample application. You can copy relevant parts of the files. The only significant difference is that sample package is using template "subdirs" instead of "app". You can copy data directory from sample application to your working directory and make necessary changes.

  7. #7
    Super Contributor tamhanna's Avatar
    Join Date
    Jul 2008
    Posts
    2,020
    Hi divanov,
    thank you so much for all the help so far - if we ever meet, I owe you a can of red bull .

    I have now tried to apply your changes by copyi8ng the data folder of the sample app to the same folder as the src folder, and also by changing the .pro file to look like this:
    Code:
    TEMPLATE = app
    TARGET = BallZ
    QT += core \
    	gui \
    phonon
    HEADERS += s60sound/CMixerThread.h \
        s60sound/CSndMixer.h \
        s60sound/CWavLoader.h \
        s60sound/MyActive.h \
        s60sound/SoundMixerContainer.h \
        s60sound/TAudioShared.h \
        s60sound/TSample.h \
        highscoreform.h \
        settingsform.h \
        engine/ApplicationPrefs.h \
        engine/fixedpoint.h \
        engine/BallZEngine.h \
        hal/HalConstants.h \
        QtBallZ.h \
        QMyApplication.h
    SOURCES += s60sound/CMixerThread.cpp \
        s60sound/CSndMixer.cpp \
        s60sound/CWavLoader.cpp \
        s60sound/MyActive.cpp \
        s60sound/SoundMixerContainer.cpp \
        highscoreform.cpp \
        settingsform.cpp \
        engine/ApplicationPrefs.cpp \
        engine/BallZDrawStbar.cpp \
        engine/BallZDraw.cpp \
        engine/BallZMenu.cpp \
        engine/BallZState.cpp \
        engine/BallZPhys.cpp \
        engine/BallZLevels.cpp \
        engine/BallZGlobals.cpp \
        main.cpp \
        QtBallZ.cpp \
        QMyApplication.cpp
    FORMS += highscoreform.ui \
        settingsform.ui \
        QtBallZ.ui
    RESOURCES += leveldata.qrc 
    symbian: { 
        TARGET.UID3 = 0x2002CAC7
        RESOURCES+=symbian.qrc
        LIBS += -lcone \
    		-leikcore \
    		-lefsrv \
    		-lavkon \
    		-lmediaclientaudio \
    		-lmediaclientaudiostream \
    		-lcentralrepository \
    		-lws32
    	myFiles.sources = rsc\music\*.wav
    	DEPLOYMENT += myFiles
    	moreFiles.pkg_postrules = "\"$(EPOCROOT)epoc32\\data\\z\\resource\\apps\\QtBallZ_icons.mbm\" -\"!:\\resource\\apps\\QtBallZ_icons.mbm\""
    	DEPLOYMENT += moreFiles
    	MMP_RULES +=	"START BITMAP QtBallZ_icons.mbm" \
    					"HEADER" \
    					"SOURCEPATH .\gfx" \
    					"SOURCE c24,1 midicon.bmp midicon_mask.bmp smlicon.bmp smlicon_mask.bmp bigicon.bmp bigicon_mask.bmp" \
    					"TARGETPATH \resource\apps" \
    					"END"
    }
    maemo5 {
    	HEADERS+=maemosound/CSoundMixerContainer.h \
    		maemosound/BallZPhononEngine.h
    	SOURCES+=maemosound/CSoundMixerContainer.cpp \
    		maemosound/BallZPhononEngine.cpp
    	RESOURCES+=maemo.qrc
    }
    
    
    # Maemo specific
    unix {
    CONFIG += qdbus
    	#VARIABLES
    	isEmpty(PREFIX) {
    		PREFIX = /usr
    	}
    	BINDIR = $$PREFIX/bin
    	DATADIR =$$PREFIX/share
    
    	DEFINES += DATADIR=\"$$DATADIR\" \
    			   PKGDATADIR=\"$$PKGDATADIR\"
    
    	#MAKE INSTALL
    
    	INSTALLS += target desktop service icon26 icon40 icon64
    
    	target.path =$$BINDIR
    
    	service.path = $$DATADIR/dbus-1/services
    	service.files += ../data/org.indt.sample.service
    
    	desktop.path = $$DATADIR/applications/hildon
    	desktop.files += ../data/$${TARGET}.desktop
    
    	icon26.path = $$DATADIR/icons/hicolor/26x26/apps
    	icon26.files += ../data/26x26/$${TARGET}.png
    
    	icon40.path = $$DATADIR/icons/hicolor/40x40/apps
    	icon40.files += ../data/40x40/$${TARGET}.png
    
    	icon64.path = $$DATADIR/icons/hicolor/64x64/apps
    	icon64.files += ../data/64x64/$${TARGET}.png
    }
    I can then proceed to build a package, but if I install it, the N900 whines aboutr how this nis not a Nokia app and how it can cause damage. I click OK. It then states:
    unable to Update 'qtballz'
    Incompatible apoplication package

    Please help - what is going on here?

    P.S. The project sources, data folder from sample app and so on are in folder workspace/QtBallZ
    the build is in
    ´workspace/QtBallZ-build

    and I have not copied the toplevel .pro file.
    Last edited by tamhanna; 2010-06-27 at 05:00. Reason: caught wrong pro file - sorry
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  8. #8
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    You install packages in XTerminal with
    Code:
    sudo gainroot
    dpkg -i package_name_version_armel.deb

  9. #9
    Super Contributor tamhanna's Avatar
    Join Date
    Jul 2008
    Posts
    2,020
    Hi divanov,
    so they can not be clicked from the file manager?

    All the best
    Tam Hanna
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  10. #10
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Application manager installs applications from the Debian repositories configured for the manager.

  11. #11
    Super Contributor tamhanna's Avatar
    Join Date
    Jul 2008
    Posts
    2,020
    Hi,
    so if I just move a deb file to the N900 using PC suite and click it from File Manager, it will not install?

    Sorry for the dumb questions, but I am not a Linux head.

    All the best
    Tam Hanna
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  12. #12
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    You should place the packahe to /home/user/ directory, open XTerminal and execute
    Code:
    sudo gainroot
    dpkg -i package_name_version_armel.deb
    BTW, Nokia Qt SDK allows you deploying packages without necessity to use PC Suite and XTerminal.
    Last edited by divanov; 2010-07-08 at 08:53.

  13. #13
    Super Contributor tamhanna's Avatar
    Join Date
    Jul 2008
    Posts
    2,020
    Hi divanow,
    thank you so much for talking back.

    I am able to run the app on my n900 via WiFi - the issue is that I want it to be in the launcher and be able to run on other n900s via the Ovi...
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  14. #14
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by tamhanna View Post
    I am able to run the app on my n900 via WiFi - the issue is that I want it to be in the launcher and be able to run on other n900s via the Ovi...
    These are not the simplest ways to install applications on N900.

  15. #15
    Super Contributor tamhanna's Avatar
    Join Date
    Jul 2008
    Posts
    2,020
    Hi Divanov,
    thanks for your help.

    They may not be the simplest, but they are the way to make money...
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 2011-07-04, 09:45
  2. Set label text programmatically
    By daimous in forum Symbian C++
    Replies: 7
    Last Post: 2009-04-07, 07:40
  3. How to Set Address Book Contact's Ringtone programmatically In J2ME
    By satyarajasekhar in forum Mobile Java General
    Replies: 0
    Last Post: 2008-04-30, 12:45
  4. How to programmatically get/set theme in S60 3rd Edition?
    By bharath_hegde in forum Symbian C++
    Replies: 1
    Last Post: 2007-12-15, 11:16
  5. Replies: 0
    Last Post: 2002-05-09, 12:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved