Read-only archive of the All About Symbian forum (2001–2013) · About this archive

[newbie] problems compiling Helloworld

2 replies · 2,017 views · Started 22 May 2005

Hi,
some thoughts first before the flaming starts:
- yes, I have read the stickies, unfortunately all the links there are dead
- yes, I have posted this already in the nokia forums but there has been no activity for some days (not only in my post but on the forums generally) so I thought I could post here as well.

To my problem:
I'm currently trying to get the helloworld-application to run on my mobile phone (Nokia 6600) bit it doesn't work as it should.
I'm trying to tell you step-by-step what I did so you might have it easy to find my error.

I am using:
Microsoft Visual C++ 6.0 SP3
Symbian SDK Series60_v20
Nokia 6600
Windows XP Service Pack 2

my steps were:

cmd
>cd C:\Symbian\7.0s\Series60_v20\Examples\helloworld
>bldmake bldfiles
>abld build armi urel

this step should create a helloworld.sis and helloworld.rsc in C:\Symbian\7.0s\Series60_v20\Epoc32\release\armi\urel - but only helloworld.sis is created here. After some research I found that the helloworld.rsc was created in C:\Symbian\7.0s\Series60_v20\Epoc32\data\z\system\apps\HELLOWORLD

now I created a file named helloworld.pkg with following content


;
; Basic install file for minimal application
;

; Languages
; none - English only by default

; Installation header
; Only one component name as we only support English
; UID is the app's UID - see HelloWorld.mmp

#{"Minimal application"},(0x10004299),1,0,0
; Only two files to install for the minimal application
"C:\Symbian\7.0s\Series60_v20\Epoc32\release\armi\urel\HelloWorld.app"-"HelloWorld.app"
"C:\Symbian\7.0s\Series60_v20\Epoc32\data\z\system\apps\HELLOWORLD\HelloWorld.rsc"-"HelloWorld.rsc"
;"C:\Symbian\7.0s\Series60_v20\Epoc32\release\armi\urel\HelloWorld.rsc"-"HelloWorld.rsc"

; Required files
; None

; Component .sis files
; None

then I ran
>makesis helloworld.pkg what created a helloworld.sis in the same directory.
I copied this file per bluetooth to my mobile phone and opened the message. The installation starts.
I get a message "Prgr. ist nicht beglaubigt. Probleme m�gl. Nur inst. falls Sie d. Herausgeber vertrauen" which means "not certified, just install if you think it's secure" and answer this with "yes"
then it asks "install minimal application?" (I'm just giving translations from now) - yes
install - ok
replace 1.00 with 1.00? (tried it several times so this appears) - yes
maybe incompatible with this phone - cancel installation? - no (why does this appear? I'm using the correct SDK f�r 6600, ain't I?)
then it says installation done but I can't find the installed program anywhere in the menus.

Please guys, I need your help with this.

It looks like a problem with your .PKG file.

There is no path for the destination folder on the device.

Try:

"C:\Symbian\7.0s\Series60_v20\Epoc32\release\armi\urel\HelloWorld.app"-"!:\system\apps\HelloWorld\HelloWorld.app"
"C:\Symbian\7.0s\Series60_v20\Epoc32\data\z\system\apps\HELLOWORLD\HelloWorld.rsc"-"!:\system\apps\HelloWorld\HelloWorld.rsc"

To avoid the "not certified" message, you will have to get your app signed by Symbian, but it can be expensive, see
http://www.symbiansigned.com

To avoid the "incompatible" message, you need to add the S60 product ID to your PKG file. There'a a good article on this at NewLC

Hope that helps you. Regards,

Neil.