This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Compilation working in VS2003, but not with EdgeIDE


Postby guynemer » Feb 5, 2007 @ 7:40pm

guynemer
pm Member
 
Posts: 56
Joined: Jan 18, 2007 @ 2:00pm


Postby edge » Feb 5, 2007 @ 9:04pm

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby guynemer » Feb 5, 2007 @ 11:31pm

guynemer
pm Member
 
Posts: 56
Joined: Jan 18, 2007 @ 2:00pm


Postby edge » Feb 6, 2007 @ 9:51am

Hi Guynemer,

The pkg copy doesn't appear because the setup generator fails at the first command (all commands after them doesn't get executed).

Move the copy installsetup command right below the generateinstall command and it should create a copy. You can tell if it worked if you see a 'file copied' message in the EdgeIDE output window after running build setup.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby guynemer » Feb 6, 2007 @ 2:18pm

guynemer
pm Member
 
Posts: 56
Joined: Jan 18, 2007 @ 2:00pm


Postby edge » Feb 6, 2007 @ 3:05pm

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby guynemer » Feb 6, 2007 @ 5:24pm

guynemer
pm Member
 
Posts: 56
Joined: Jan 18, 2007 @ 2:00pm


Postby edge » Feb 8, 2007 @ 11:33am

Hi Guynemer,

You can create your self-signed certificate using the makekeys utility and sign the .sis file with signsis (both utilities are provided by the Symbian SDK, you may need to switch to the correct SDK using the devices command).

More information about signing can be found in the Edge Symbian getting started tutorial:
http://www.edgelib.com/index.php?node=828

The certificate is only valid for one year (your applications signed with the certificate today, wouldn't be able to install next year). To create a 20-year lasting certificate you need OpenSSL, a utility usually installed on Linux.

The OpenSSL commands are shown here:
http://www.edgelib.com/index.php?node=43
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby guynemer » Feb 8, 2007 @ 1:33pm

Actually I had solved this problem with DevCertRequest a utility found on the symbian signed website.

I generated a .csr, a .key file etc..

It appears to work cause now I can install my signed .sis on my N73.

BUT, cause there is a but, once installed nothing happens when I start to start my app.

It's the same code I used for my 6680 and it works on that platform. So the problem must be with the fiels I package I think.


As you know there the files generated for a 3rd ed platform are named with the appuid.

like Testgame_XXXXXX.exe , Testgame_xxxxxxx.rsc etc.

I changed their name to create the sis file : removing the appuid for each file.


There are 2 problems :

- During the compilation process I got 2 exe files, one named with the appuid like above, and one (larger in size, like 600k instead of 200k for the other one) named simply TestGame.exe ...

I'm not sure about which one to use.


- After creating the .sis package using the pkg file, I got 2 .sis files :

One named TestGame_tmp.sis and one TestGame.sis.
Their size is different. I' m not sure which one to use either.


Anyway I've tried each .exe and each sis package, but still the application installs itself of the platform but nothing happens... :?


I hope the message is clear enough :roll:
guynemer
pm Member
 
Posts: 56
Joined: Jan 18, 2007 @ 2:00pm


Postby edge » Feb 8, 2007 @ 3:04pm

Hi Guynemer,

Did you request a developer certificate through the DevCertRequest utility? You can tell if the utility asked about the IMEI of your phone. This is because applications using this certificate can only be installed on a device with that IMEI code (only your device). I recommend using the suggestions I made above for creating your certificate.

I recommend deleting all files in the release folder and rebuild with the EdgeIDE and keep the filenames intact. Then edit the package file copy and fix the installation destination filenames.

After that, use the makesis utility to create a .sis file and use signsis. You need to specify a destination filename for the signed .sis file, I recommend application_signed.sis.

The .exe file without the appuid postfix is a temporary file before setting capabilities and converting it into a format suitable for Symbian. Please ignore this file. The application_tmp.sis file is the unsigned version of application.sis.

I hope this clarifies it all :)
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby guynemer » Feb 8, 2007 @ 3:16pm

Yes it asked me for my IMEI. Does that mean I wont be able to install my package on another mobile unless I change again the key provided ? If that's so, it's not manageable. :?

If I'm not mistaken , in the IDE there's already the line to sign the package, but is uses a default certificate you provided. Is that why I can't install it on my phone ?

Could the problem of my app not starting be a result of a bad UID used ? I have requested a UID from the Symbian signed website, but maybe the one I have is good for my app and my phone.
guynemer
pm Member
 
Posts: 56
Joined: Jan 18, 2007 @ 2:00pm


Postby edge » Feb 8, 2007 @ 8:51pm

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby guynemer » Feb 9, 2007 @ 3:03am

guynemer
pm Member
 
Posts: 56
Joined: Jan 18, 2007 @ 2:00pm


Postby edge » Feb 9, 2007 @ 8:38am

Hi Guynemer,

You can fix the static library problem by changing staticlib = "hss.dso" into dynamiclib = "hss.dso". Every file with .dso as an extension is a dynamic shared object. You probably need to copy the .dso files into your Symbian SDK folder.

The files installing inside the private folder is correct behaviour. This is because in Symbian 9, each application should put their resource files into a private folder with a matching UID. The current path of your Edge application will automatically point to this private folder as well.

The only file that can't be installed in the private folder is hss.dll. After generating the pkg file, you will need to add the dll file manually and let it install into !:sys\bin.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby guynemer » Feb 9, 2007 @ 11:45am

guynemer
pm Member
 
Posts: 56
Joined: Jan 18, 2007 @ 2:00pm


PreviousNext

Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron