PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Compilation working in VS2003, but not with EdgeIDE

Basing upon the basics of the blastar sample, I've tried to create a simple game.

Right now I have a problem with the compilation process with EDGEIde. The same code that can be compiled with Visual Studio 2003 (and working) doesn't compile with EdgeIDE. So I just can't get to produce the .sis file I need to install it on a 6680 mobile.

Here are the errors generated :

Code:
---------------- Building: TestGame - Series 60 (1st edition) Release ----------------

TestGame.cpp

TestGame.cpp: In function `class CEikAppUi * EdgeMain(struct EDGEDATA *)':

TestGame.cpp:45: `ClassMain' undeclared (first use this function)

TestGame.cpp:45: (Each undeclared identifier is reported only once

TestGame.cpp:45: for each function it apprs in.)

TestGame.cpp:45: `main' undeclared (first use this function)

TestGame.cpp:45: parse error before `('

TestGame.cpp:46: confused by earlier errors, bailing out



It seems that the compilation applciation doesn't find the definitions for the ClassMain class although the include is present. I just don't understand. I've also tried to add the path to the file "ClassMain.h" in the .epj file parameters, also tried to add all th e.h in the tree architecture of the .epj project, no changes ...


Here are the extracts of the code.


TestGame.cpp
Code:

#define ESOUND_HEKKUS

//Include Edge
#include "edgemain.h"


//Link the Edge static library
#pragma comment(lib, "edge.lib")




//Platform dependent definitions
#include "../PC/def_platf.h"




#if defined(DEVICE_WIN32)

//Include internal resources for native Win32 builds
#include "resource.h"



#include "ClassMain.h"



#endif


/////////////////////////////////////////////////////////////////////
// The program entry point //
/////////////////////////////////////////////////////////////////////

MAINRET EdgeMain(EDGEDATA *data)
{
/* #if defined(DEVICE_WIN32)
data->appicon = IDI_MAIN;
#endif */
ClassEStd::StrCpy(data->caption, "Toto");
ClassMain *main = new ClassMain(data);
return(main->Start());
}


...
You're only including ClassMain.h for WIN32 builds.

Code:

#if defined(DEVICE_WIN32)

//Include internal resources for native Win32 builds
#include "resource.h"


#include "ClassMain.h"



#endif


Should probably be:

Code:

#ifdef DEVICE_WIN32
//Include internal resources for native Win32 builds
#include "resource.h"
#endif

#include "ClassMain.h"


Dan East
Damn I'm stupid :roll:

thx
Ok obviously now it works, but I still have one problem. It's with the s60 3rd ed : the compilation ends in error.

HEre's the log

---------------- Building: TestGame - Series 60 (3rd edition) Release ----------------
TestGame_F0205D9D.mbm
TestGame_F0205D9D.rsc

TestGame_F0205D9D_reg.rsc
C:\edgeide_bldtmp_F0205D9D_reg.rss:2: TestGame.rsg: No such file or directory


I'm trying to look at the configuration file, but in the same time if someone expert (Edge ?) could help me, that would be great :wink:
Hi Guynemer,

This problem can be easily fixed by adding the current path to the include path list. Add "." to the EdgeIDE at project -> library/include paths.
Ok , but other problems :
Code:

---------------- Building: TestGame - Series 60 (3rd edition) Release ----------------
TestGame_200096D8.mbm
TestGame_200096D8.rsc

TestGame_200096D8_reg.rsc

TestGame.cpp
arm-none-symbianelf-g++.exe: Files\CSL: No such file or directory
arm-none-symbianelf-g++.exe: Arm: No such file or directory
arm-none-symbianelf-g++.exe: Toolchain\lib\gcc\arm-none-symbianelf\3.4.3\include -I d:\edge\include -o D:\Dev\test\TestGame\6680\release\Series: Invalid argument
arm-none-symbianelf-g++.exe: 60: No such file or directory
arm-none-symbianelf-g++.exe: (3rd: No such file or directory
arm-none-symbianelf-g++.exe: edition)\MoonQuest.obj TestGame.cpp: No such file or directory
arm-none-symbianelf-g++.exe: warning: `-x c++' after last input file has no effect
arm-none-symbianelf-g++.exe: no input files


I've checked and the paths are configured correctly in the .ini file.
Hi Guynemer,

That seems like a problem with quoted parameters to the gcc compiler. Would you like to open your platform ini file and do the following?:
- Search for the '# Compile source code files' section
- Edit the second commandcompile line and prepend it with: %comspec% echo (just like the first one), this will show the command instead of executing it
- Close and reopen the Edge IDE and try recompiling, the command should be shown in the Edge IDE output window
- Paste the command in this forum so we can check what goes wrong

Thanks :)
HEre's the new command :

Code:
# Compile source code files
commandcompile = "%comspec% echo %srcfile%"
commandcompile = "%comspec% echo %toolcompiler% -O3 -fno-unit-at-a-time -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -nostdinc -c -msoft-float %l_macrodef_l% -x c++ -include "%sdkbuildpath%\INCLUDE\GCCE\GCCE.h" %l_incpath_l% -o "%bldpath%\%objfile%" "%srcpath%%srcfile%""


and the new errors :
Code:
---------------- Building: TestGame - Series 60 (3rd edition) Release ----------------
TestGame_200096D8.mbm
TestGame_200096D8.rsc

TestGame_200096D8_reg.rsc

TestGame.cpp
"C:\Program Files\CSL Arm Toolchain\bin\arm-none-symbianelf-g++.exe" -O3 -fno-unit-at-a-time -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -nostdinc -c -msoft-float -DNDEBUG -D_UNICODE -D__GCCE__ -D__SYMBIAN32__ -D__EPOC32__ -D__MARM__ -D__EABI__ -D__MARM_ARMV5__ -D__SUPPORT_CPP_EXCEPTIONS__ -D__SERIES60_30__ -D__SERIES60_3X__ -D__EXE__ -D__PRODUCT_INCLUDE__="D:\Symbian\9.1\S60_3rd_MR\epoc32\include\variant\Symbian_OS_v9.1.hrh" -DSERIES60 -DAPP_UID=0x200096D8 -D__EDGEIDE__ -x c++ -include "D:\Symbian\9.1\S60_3rd_MR\Epoc32\INCLUDE\GCCE\GCCE.h" -I "D:\HekkusSoundSystem\" -I "D:\HekkusSoundSystem\include" -I "D:\Dev\test\TestGame\code" -I "D:\Dev\test\TestGame\6680" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include\libc" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include\variant" -I "C:\Program Files\CSL Arm Toolchain\lib\gcc\arm-none-symbianelf\3.4.3\include" -I "d:\edge\include" -o "D:\Dev\test\TestGame\6680\release\Series 60 (3rd edition)\TestGame.obj" "TestGame.cpp"
Error: Error creating compiled source file: TestGame.obj
Hi Guynemer,

Can you tell me what happens if you paste the command in a dosbox, and execute it manually?
Which line exactly ?
I've tried this one
Code:
"%comspec% echo %toolcompiler% -O3 -fno-unit-at-a-time -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -nostdinc -c -msoft-float %l_macrodef_l% -x c++ -include "%sdkbuildpath%\INCLUDE\GCCE\GCCE.h" %l_incpath_l% -o "%bldpath%\%objfile%" "%srcpath%%srcfile%""
but it says "line too long"
Hi Guynemer,

I meant this line:
"C:\Program Files\CSL Arm Toolchain\bin\arm-none-symbianelf-g++.exe" -O3 -fno-unit-at-a-time -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -nostdinc -c -msoft-float -DNDEBUG -D_UNICODE -D__GCCE__ -D__SYMBIAN32__ -D__EPOC32__ -D__MARM__ -D__EABI__ -D__MARM_ARMV5__ -D__SUPPORT_CPP_EXCEPTIONS__ -D__SERIES60_30__ -D__SERIES60_3X__ -D__EXE__ -D__PRODUCT_INCLUDE__="D:\Symbian\9.1\S60_3rd_MR\epoc32\include\variant\Symbian_OS_v9.1.hrh" -DSERIES60 -DAPP_UID=0x200096D8 -D__EDGEIDE__ -x c++ -include "D:\Symbian\9.1\S60_3rd_MR\Epoc32\INCLUDE\GCCE\GCCE.h" -I "D:\HekkusSoundSystem\" -I "D:\HekkusSoundSystem\include" -I "D:\Dev\test\TestGame\code" -I "D:\Dev\test\TestGame\6680" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include\libc" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include\variant" -I "C:\Program Files\CSL Arm Toolchain\lib\gcc\arm-none-symbianelf\3.4.3\include" -I "d:\edge\include" -o "D:\Dev\test\TestGame\6680\release\Series 60 (3rd edition)\TestGame.obj" "TestGame.cpp"

This is the same command you posted above, but parsed with all the environment variable values.
Code:
C:\Documents and Settings\Administrateur>"C:\Program Files\CSL Arm Toolchain\bin
\arm-none-symbianelf-g++.exe" -O3 -fno-unit-at-a-time -Wall -Wno-ctor-dtor-priva
cy -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -nostdinc -c -ms
oft-float -DNDEBUG -D_UNICODE -D__GCCE__ -D__SYMBIAN32__ -D__EPOC32__ -D__MARM__
-D__EABI__ -D__MARM_ARMV5__ -D__SUPPORT_CPP_EXCEPTIONS__ -D__SERIES60_30__ -D__
SERIES60_3X__ -D__EXE__ -D__PRODUCT_INCLUDE__="D:\Symbian\9.1\S60_3rd_MR\epoc32\
include\variant\Symbian_OS_v9.1.hrh" -DSERIES60 -DAPP_UID=0x200096D8 -D__EDGEIDE
__ -x c++ -include "D:\Symbian\9.1\S60_3rd_MR\Epoc32\INCLUDE\GCCE\GCCE.h" -I "D:
\HekkusSoundSystem\" -I "D:\HekkusSoundSystem\include" -I "D:\Dev\test\TestGame\
code" -I "D:\Dev\test\TestGame\6680" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\includ
e" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include\libc" -I "D:\Symbian\9.1\S60_3rd
_MR\epoc32\include\variant" -I "C:\Program Files\CSL Arm Toolchain\lib\gcc\arm-n
one-symbianelf\3.4.3\include" -I "d:\edge\include" -o "D:\Dev\test\TestGame\6680
\release\Series 60 (3rd edition)\TestGame.obj" "TestGame.cpp"
arm-none-symbianelf-g++.exe: Files\CSL: No such file or directory
arm-none-symbianelf-g++.exe: Arm: No such file or directory
arm-none-symbianelf-g++.exe: Toolchain\lib\gcc\arm-none-symbianelf\3.4.3\include
-I d:\edge\include -o D:\Dev\test\TestGame\6680\release\Series: Invalid argumen
t
arm-none-symbianelf-g++.exe: 60: No such file or directory
arm-none-symbianelf-g++.exe: (3rd: No such file or directory
arm-none-symbianelf-g++.exe: edition)\TestGame.obj TestGame.cpp : No such file o
r directory
arm-none-symbianelf-g++.exe: warning: `-x c++' after last input file has no effe
ct
arm-none-symbianelf-g++.exe: no input files

C:\Documents and Settings\Administrateur>
Hi Guynemer,

The cause of the error is the backslash in the "D:\HekkusSoundSystem\" includepath. Change it to "D:\HekkusSoundSystem" and it should compile fine.

In the next version of the Edge IDE this bug will be fixed by removing the final backslash in the include paths.
Here's the new line (I changed the path of the include in the project properties to remove the backslash)



Code:
"C:\Program Files\CSL Arm Toolchain\bin\arm-none-symbianelf-g++.exe" -O3 -fno-unit-at-a-time -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -nostdinc -c -msoft-float -DNDEBUG -D_UNICODE -D__GCCE__ -D__SYMBIAN32__ -D__EPOC32__ -D__MARM__ -D__EABI__ -D__MARM_ARMV5__ -D__SUPPORT_CPP_EXCEPTIONS__ -D__SERIES60_30__ -D__SERIES60_3X__ -D__EXE__ -D__PRODUCT_INCLUDE__="D:\Symbian\9.1\S60_3rd_MR\epoc32\include\variant\Symbian_OS_v9.1.hrh" -DSERIES60 -DAPP_UID=0x200096D8 -D__EDGEIDE__ -x c++ -include "D:\Symbian\9.1\S60_3rd_MR\Epoc32\INCLUDE\GCCE\GCCE.h" -I "D:\HekkusSoundSystem" -I "D:\HekkusSoundSystem\include" -I "D:\Dev\Test\TestGame\code" -I "D:\Dev\Test\TestGame\6680" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include\libc" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include\variant" -I "C:\Program Files\CSL Arm Toolchain\lib\gcc\arm-none-symbianelf\3.4.3\include" -I "d:\edge\include" -o "D:\Dev\Test\TestGame\6680\release\Series 60 (3rd edition)\TestGame.obj" "TestGame.cpp"


But it still doesn't compile , here 's the error :
Code:
Error: Error creating compiled source file: MoonQuest.obj


And indded in the path "D:\Dev\Test\TestGame\6680\release\Series 60 (3rd edition)\", there's no .obj at all.

Maybe it's looking in the wrong path for the .cpp.

Here's the line used in the .epj file
Code:
sourcefile = "..\code\TestGame.cpp"



Is it possible to have a verbose mode during the compilation process in EdgeIDE, just to check the compilation line used when the target is s601 first ed, just to compare.
I've tried to modify the command line inside the .ini file for s60 3rd ed.

I changed it to that
Code:
commandcompile = "%comspec% echo %toolcompiler% -O3 -fno-unit-at-a-time -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -nostdinc -c -msoft-float %l_macrodef_l% -x c++ -include "%sdkbuildpath%\INCLUDE\GCCE\GCCE.h" %l_incpath_l% -o "%bldpath%\%objfile%" [b]"D:\Dev\Test\TestGame\code\%srcfile%"[/b]"


In a dos command line , that line works (althougth it creates lot of warnings) but it works.

DEspite that, in the Edge IDE , it still fails, don't know why.

Code:
---------------- Building: MysticalPetArena - Series 60 (3rd edition) Release ----------------
MysticalPetArena_200096D8.mbm
MysticalPetArena_200096D8.rsc

MysticalPetArena_200096D8_reg.rsc

TestGame.cpp
"C:\Program Files\CSL Arm Toolchain\bin\arm-none-symbianelf-g++.exe" -O3 -fno-unit-at-a-time -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -nostdinc -c -msoft-float -DNDEBUG -D_UNICODE -D__GCCE__ -D__SYMBIAN32__ -D__EPOC32__ -D__MARM__ -D__EABI__ -D__MARM_ARMV5__ -D__SUPPORT_CPP_EXCEPTIONS__ -D__SERIES60_30__ -D__SERIES60_3X__ -D__EXE__ -D__PRODUCT_INCLUDE__="D:\Symbian\9.1\S60_3rd_MR\epoc32\include\variant\Symbian_OS_v9.1.hrh" -DSERIES60 -DAPP_UID=0x200096D8 -D__EDGEIDE__ -x c++ -include "D:\Symbian\9.1\S60_3rd_MR\Epoc32\INCLUDE\GCCE\GCCE.h" -I "D:\HekkusSoundSystem" -I "D:\HekkusSoundSystem\include" -I "D:\Dev\Test\TestGame\code" -I "D:\Dev\Test\TestGame\6680" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include\libc" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include\variant" -I "C:\Program Files\CSL Arm Toolchain\lib\gcc\arm-none-symbianelf\3.4.3\include" -I "d:\edge\include" -o "D:\Dev\Test\TestGame\6680\release\Series 60 (3rd edition)\TestGame.obj" "D:\Dev\Test\TestGame\code\TestGame.cpp"
Error: Error creating compiled source file: TestGame.obj





Just for the record, here are the warnings I get when I try the line manually in a dow command line window :

Code:
C:\Documents and Settings\Administrateur>"C:\Program Files\CSL Arm Toolchain\bin
\arm-none-symbianelf-g++.exe" -O3 -fno-unit-at-a-time -Wall -Wno-ctor-dtor-priva
cy -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -nostdinc -c -ms
oft-float -DNDEBUG -D_UNICODE -D__GCCE__ -D__SYMBIAN32__ -D__EPOC32__ -D__MARM__
-D__EABI__ -D__MARM_ARMV5__ -D__SUPPORT_CPP_EXCEPTIONS__ -D__SERIES60_30__ -D__
SERIES60_3X__ -D__EXE__ -D__PRODUCT_INCLUDE__="D:\Symbian\9.1\S60_3rd_MR\epoc32\
include\variant\Symbian_OS_v9.1.hrh" -DSERIES60 -DAPP_UID=0x200096D8 -D__EDGEIDE
__ -x c++ -include "D:\Symbian\9.1\S60_3rd_MR\Epoc32\INCLUDE\GCCE\GCCE.h" -I "D:
\HekkusSoundSystem" -I "D:\HekkusSoundSystem\include" -I "D:\Dev\Test\TestGame
\code" -I "D:\Dev\Test\TestGame\6680" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\inc
lude" -I "D:\Symbian\9.1\S60_3rd_MR\epoc32\include\libc" -I "D:\Symbian\9.1\S60_
3rd_MR\epoc32\include\variant" -I "C:\Program Files\CSL Arm Toolchain\lib\gcc\ar
m-none-symbianelf\3.4.3\include" -I "d:\edge\include" -o "D:\Dev\Test\TestGame
\6680\release\Series 60 (3rd edition)\TestGame.obj" "D:\Dev\Test\TestGame\cod
e\TestGame.cpp"
In file included from D://Symbian//9.1//S60_3rd_MR//epoc32//include/eikmenub.h:1
8,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/aknenv.h:28,

from D://Symbian//9.1//S60_3rd_MR//epoc32//include/aknutils.h:4
0,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/aknpopuplayo
ut.h:26,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/AknQueryDial
og.h:31,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/aknnotewrapp
ers.h:28,
from d://edge//include/edgedevice.h:87,
from d://edge//include/edge.h:20,
from d://edge//include/edgemain.h:20,
from D:\\Dev\\Test\\TestGame\\code\\TestGame.cpp:24:
D://Symbian//9.1//S60_3rd_MR//epoc32//include/eikmenup.h: In member function `TB
ool CEikMenuPaneItem::IsScaleableText(const TDesC&) const':
D://Symbian//9.1//S60_3rd_MR//epoc32//include/eikmenup.h:183: warning: enumeral
mismatch in conditional expression: `TFalse' vs `TTrue'
Hi Guynemer,

Sorry, I forgot to tell you to remove the '%comspec% echo' part from the second commandcompile. This part actually puts the command in the EdgeIDE output window instead of executing it.

You can use the %comspec% echo part in any of the commands to show them. '%comspec%' means that it will start a dos command, and 'echo' will display any string it follows into the output window.
Ok I removed the echo, btu still it doesn't work :

Code:
---------------- Building: TestGame - Series 60 (3rd edition) Release ----------------
TestGame_200096D8.mbm
TestGame_200096D8.rsc

TestGame_200096D8_reg.rsc

TestGame.cpp
'C:\Program' n'est pas reconnu en tant que commande interne
ou externe, un programme ex‚cutable ou un fichier de commandes.


The error message says that 'C:\Program' isn't recognized as an intern or extern command, an executable program nor a command file ...

:?


Anyway thx for the explanation about the echo, that could be quite useful :D
Hi Guynemer,

I recommend redownloading the Edge IDE from the www.edgelib.com download\tools area. It should fix your symbian platform ini file to original state.
Is it the same version given with the Edge 2.95 package ? Or does it include some fixes ?

Cause I could reinstall the whole package, I don't mind.
Hi Guynemer,

Yes, the downloadable Edge IDE is equal to the version delivered in the SDK.
Ok I had forgotten to remove the %comspec% in the "old" .ini file, and I got errors with Hekkus functions inclusion.

SO I started from a reinstall of Edge, but i got the same errors.

Code:
---------------- Building: TestGame - Series 60 (3rd edition) Release ----------------
TestGame_200096D8.mbm
TestGame_200096D8.rsc

TestGame_200096D8_reg.rsc

TestGame.cpp
In file included from D://Symbian//9.1//S60_3rd_MR//epoc32//include/eikmenub.h:18,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/aknenv.h:28,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/aknutils.h:40,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/aknpopuplayout.h:26,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/AknQueryDialog.h:31,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/aknnotewrappers.h:28,
from d://edge//include/edgedevice.h:87,
from d://edge//include/edge.h:20,
from d://edge//include/edgemain.h:20,
from TestGame.cpp:24:
D://Symbian//9.1//S60_3rd_MR//epoc32//include/eikmenup.h: In member function `TBool CEikMenuPaneItem::IsScaleableText(const TDesC&) const':
D://Symbian//9.1//S60_3rd_MR//epoc32//include/eikmenup.h:183: warning: enumeral mismatch in conditional expression: `TFalse' vs `TTrue'
In file included from TestGame.cpp:24:
d://edge//include/edgemain.h:547:7: warning: no newline at end of file
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_NewDriver()':
TestGame.cpp:(.text+0x504): undefined reference to `hssSpeaker::hssSpeaker()'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_Open(void*, unsigned long, unsigned char, bool, unsigned char, unsigned char)':
TestGame.cpp:(.text+0x564): undefined reference to `hssSpeaker::open(unsigned int, unsigned int, bool, unsigned int, unsigned int)'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_Close(void*)':
TestGame.cpp:(.text+0x578): undefined reference to `hssSpeaker::close()'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_Suspend(void*)':
TestGame.cpp:(.text+0x57c): undefined reference to `hssSpeaker::suspend()'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_Resume(void*)':
TestGame.cpp:(.text+0x580): undefined reference to `hssSpeaker::resume()'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_NewSound(void*)':
TestGame.cpp:(.text+0x5a8): undefined reference to `hssSound::hssSound()'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_LoadSound(void*, void*, void*, unsigned long)':
TestGame.cpp:(.text+0x5e0): undefined reference to `hssSound::load(void*, bool)'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_NewMusic(void*)':
TestGame.cpp:(.text+0x634): undefined reference to `hssMusic::hssMusic()'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_LoadMusic(void*, void*, void*, unsigned long)':
TestGame.cpp:(.text+0x66c): undefined reference to `hssMusic::load(void*, bool)'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_VolumeSound(void*, unsigned char)':
TestGame.cpp:(.text+0x6b8): undefined reference to `hssSpeaker::volumeSounds(unsigned int)'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_VolumeMusic(void*, unsigned char)':
TestGame.cpp:(.text+0x6d4): undefined reference to `hssSpeaker::volumeMusics(unsigned int)'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_PlaySound(void*, void*, long, signed char, bool)':
TestGame.cpp:(.text+0x700): undefined reference to `hssSound::loop(bool)'
TestGame.cpp:(.text+0x710): undefined reference to `hssSpeaker::playSound(hssSound*, unsigned int)'
TestGame.cpp:(.text+0x744): undefined reference to `hssSpeaker::channel(int)'
TestGame.cpp:(.text+0x74c): undefined reference to `hssChannel::speed(unsigned int)'
TestGame.cpp:(.text+0x758): undefined reference to `hssSpeaker::channel(int)'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_PlayMusic(void*, void*, bool)':
TestGame.cpp:(.text+0x78c): undefined reference to `hssMusic::loop(bool)'
TestGame.cpp:(.text+0x7a0): undefined reference to `hssSpeaker::playMusic(hssMusic*, unsigned int)'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_StopSound(void*, void*, long)':
TestGame.cpp:(.text+0x7bc): undefined reference to `hssSpeaker::channel(int)'
TestGame.cpp:(.text+0x7c4): undefined reference to `hssChannel::stop()'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_StopMusic(void*, void*, long)':
TestGame.cpp:(.text+0x7e0): undefined reference to `hssSpeaker::channel(int)'
TestGame.cpp:(.text+0x7e8): undefined reference to `hssChannel::stop()'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_ChannelSoundVolume(void*, void*, long, unsigned char)':
TestGame.cpp:(.text+0x810): undefined reference to `hssSpeaker::channel(int)'
release\Series 60 (3rd edition)\TestGame.obj: In function `ESound_ChannelMusicVolume(void*, void*, long, unsigned char)':
TestGame.cpp:(.text+0x85c): undefined reference to `hssSpeaker::channel(int)'


Is it because I changed the include paht by removing the backslash ? If that's the reason, I hardly see any solution :?



[EDIT] : Oops I'm not sure I copied the library files for the 3rd ed :roll: , gonna check
Hi Guynemer,

Yes, you need to link the Hekkus library file. I recommend adding it to your platform ini file (so it will be linked for every new project you make).
ok , I copied the dll and the lib file of Hekkus to the epoc32 folder of the sdk, but i still have the same errors.


And I think the epj file ahs already a link to the hekkus library. Here you go :

Code:
# Edge project file (edit at your own risk)
# Copyright (c) Elements Interactive B.V.
# http://www.edgelib.com
# -----------------------------------------

# General project properties
projectname = "Test"
caption = "Test"
target type = "bin"
appuid = "0x200096d8"
version = "1.00.0"
capabilities = "None"
noresemu = "1"

# Project source, header and resource tree
sourcefile = "..\code\TestGame.cpp"

headerfile = "..\code\ClassMain.h"
headerfile = "..\code\Menu.h"
headerfile = "..\code\Module.h"
headerfile = "..\code\PlayerData.h"
headerfile = "..\code\SharedData.h"
headerfile = "..\code\StartLoader.h"

resourcepath = "install"
resourcepath = "res"
resourcefile = "..\res\gfx.epk"
endpath = 0
resourcepath = "Icons"
resourcefile = "..\res\icons\ico48_64.bmp"
resourcefile = "..\res\icons\ico48.bmp"
resourcefile = "..\res\icons\ico32.bmp"
resourcefile = "..\res\icons\ico24.bmp"
resourcefile = "..\res\icons\ico20.bmp"
resourcefile = "..\res\icons\ico16.bmp"
endpath = 0
resourcefile = "..\res\HSS.DLL"
endpath = 0

# Project environment
incpath = "D:\HekkusSoundSystem"
libpath = "D:\HekkusSoundSystem\lib\symbian-armi"
staticlib = "D:\HekkusSoundSystem\lib\symbian-armi\hss.lib"
incpath = "D:\HekkusSoundSystem\include"
incpath = "D:\Dev\Test\TestGame\code"
incpath = "."


IT's the same epj file I used for 6680 and it compiles with Hekkus ..


Just in case , here 's the folder where I copied the files

D:\Symbian\9.1\S60_3rd_MR\Epoc32\release\armv5\urel
OK just for testing purposes I commented the define concerning the use of Hekkus : #define ESOUND_HEKKUS

IT now compiles to a .exe (but still with the same warnings).

But once again there's a problem. WHen I use the "Build setup" command it fails:

Code:
---------------- Building: TestGame - Series 60 (3rd edition) Release ----------------
Processing D:\Dev\Test\TestGame\6680\release\Series 60 (3rd edition)\TestGame_tmp.pkg...
D:\Dev\Test\TestGame\6680\release\Series 60 (3rd edition)\TestGame_tmp.pkg(6) : error: file I/O fault.
Hi Guynemer,

The Hekkus linking error is the cause of these lines in the project file:

Code:

libpath = "D:\HekkusSoundSystem\lib\symbian-armi"
staticlib = "D:\HekkusSoundSystem\lib\symbian-armi\hss.lib"


They point to the old symbian libraries instead of the Symbian 9 ones. The newline warning you can fix easily by inserting a newline (with enter) at the bottom of your header file.

The build setup error is because it can't find one of the files. I also suggest moving the icons folder to the resource folder root, and not in the install resource folder.
Ok my mistake I thought the library was the same for both platform.

Anyway here's my new .epj file

Code:
# Edge project file (edit at your own risk)
# Copyright (c) Elements Interactive B.V.
# http://www.edgelib.com
# -----------------------------------------

# General project properties
projectname = "TestGame"
caption = "TestGame"
target type = "bin"
appuid = "0x200096d8"
version = "1.00.0"
capabilities = "None"
noresemu = "1"

# Project source, header and resource tree
sourcefile = "..\code\TestGame.cpp"

headerfile = "..\code\ClassMain.h"
headerfile = "..\code\Menu.h"
headerfile = "..\code\Module.h"
headerfile = "..\code\PlayerData.h"
headerfile = "..\code\SharedData.h"
headerfile = "..\code\StartLoader.h"

resourcepath = "install"
resourcepath = "res"
resourcefile = "..\res\pkg\N73\gfx.epk"
endpath = 0
resourcepath = "Icons"
resourcefile = "..\res\icons\ico48_64.bmp"
resourcefile = "..\res\icons\ico48.bmp"
resourcefile = "..\res\icons\ico32.bmp"
resourcefile = "..\res\icons\ico24.bmp"
resourcefile = "..\res\icons\ico20.bmp"
resourcefile = "..\res\icons\ico16.bmp"
endpath = 0
resourcefile = "..\res\pkg\N73\dll\HSS.dll"
endpath = 0

# Project environment
incpath = "D:\HekkusSoundSystem"
libpath = "D:\HekkusSoundSystem\lib\symbian_v9-gcce"
staticlib = "D:\HekkusSoundSystem\lib\symbian_v9-gcce\HSS.dso"
staticlib = "D:\HekkusSoundSystem\lib\symbian_v9-gcce\HSS{000a0000}.dso"
incpath = "D:\HekkusSoundSystem\include"
incpath = "."


Now it compiles , I had to copy the library files from Hekkus to this directory : D:\Symbian\9.1\S60_3rd_MR\Epoc32\release\armv5\lib

(D:\Symbian\9.1\S60_3rd_MR\Epoc32\release\armv5\urel , with this one it didn't work. I still left files in this directory just in case).

Now the code seems to compile (I still have warnings about edge system include). But after that , the build setup still fails with the same error.

First here's the warnings I still get during the compilation process

Code:
---------------- Building: TestGame - Series 60 (3rd edition) Release ----------------
TestGame_200096D8.mbm
TestGame_200096D8.rsc

TestGame_200096D8_reg.rsc

TestGame.cpp
In file included from D://Symbian//9.1//S60_3rd_MR//epoc32//include/eikmenub.h:18,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/aknenv.h:28,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/aknutils.h:40,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/aknpopuplayout.h:26,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/AknQueryDialog.h:31,
from D://Symbian//9.1//S60_3rd_MR//epoc32//include/aknnotewrappers.h:28,
from d://edge//include/edgedevice.h:87,
from d://edge//include/edge.h:20,
from d://edge//include/edgemain.h:20,
from TestGame.cpp:24:
D://Symbian//9.1//S60_3rd_MR//epoc32//include/eikmenup.h: In member function `TBool CEikMenuPaneItem::IsScaleableText(const TDesC&) const':
D://Symbian//9.1//S60_3rd_MR//epoc32//include/eikmenup.h:183: warning: enumeral mismatch in conditional expression: `TFalse' vs `TTrue'

TestGame.exe



And now the error message during the buil setup process
Code:
---------------- Building: TestGame - Series 60 (3rd edition) Release ----------------
Processing D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame_tmp.pkg...
D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame_tmp.pkg(6) : error: file I/O fault.



I've tried to remove all ressource files from the .epj project, just to be sure it was the source of the problem. But the error is the same. :?
I've tried to echo the command line used

Code:
commandinstall = "%toolsis% "%binfile%_tmp.pkg""


is now :

Code:
commandinstall = "%comspec% echo %toolsis% "%binfile%_tmp.pkg""







and here's the result in EDGE IDE
Code:
---------------- Building: TestGame - Series 60 (3rd edition) Release ----------------
"D:\Symbian\9.1\S60_3rd_MR\EPOC32\Tools\makesis.exe" "D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame_tmp.pkg"
file I/O fault, cannot open D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame_tmp.sis.



Is it normal I don't see any "pkg" file at all ?
Hi Guynemer,

The warning is actually in one of the Symbian SDK files (eikmenup.h, line 183), there isn't much I can do about it.

I recommend changing the resource file section in your .epj file into this:
Code:

resourcepath = "install"
resourcepath = "res"
resourcefile = "..\res\pkg\N73\gfx.epk"
endpath = 0
resourcefile = "..\res\pkg\N73\dll\HSS.dll"
endpath = 0
resourcepath = "Icons"
resourcefile = "..\res\icons\ico48_64.bmp"
resourcefile = "..\res\icons\ico48.bmp"
resourcefile = "..\res\icons\ico32.bmp"
resourcefile = "..\res\icons\ico24.bmp"
resourcefile = "..\res\icons\ico20.bmp"
resourcefile = "..\res\icons\ico16.bmp"
endpath = 0


This pkg file is a temporary file which will be deleted after the last commandinstall line. You may add a new commandinstall line to copy this temporary file so you can open and edit it.

Here is an example:
commandinstall = "%comspec% copy "%binfile%_tmp.pkg" "%binfile%_copy.pkg""
I made the changes in the epj file, but still the same errors.

I've edited my .ini file for the platform

HEre's the result

Code:
# Create installer
generateinstall = "%comspec% echo "symbianpkg.ini" "%binfile%_tmp.pkg" $symbianui$=[0x101F7961], 0, 0, 0, {"S60ProductID"} $version$=%vermajor%,%verminor%,%buildnr% $appuid$=%appuid% $caption$=%bincaption% $binname$=%binname% $binfile$=%binfile% $installfiles$=%l_installsrc_l%"
commandinstall = "%toolsis% "%binfile%_tmp.pkg""
commandinstall = "%comspec% copy "%binfile%_tmp.pkg" "%binfile%_copy.pkg""
commandinstall = "%toolsign% "%binfile%_tmp.sis" "%binfile%.sis" "%edgeidepath%\resources\edge.cer" "%edgeidepath%\resources\edge.key" eide613"


and the error :

Code:
---------------- Building: TestGame - Series 60 (3rd edition) Release ----------------
Processing D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame_tmp.pkg...
error: cannot open file, check filename and access rights
Hi Guynemer,

Please remove the %comspec% echo before the generateinstall command. Then try to run it again.

After running it, are you able to open the pkg file copy?
:?

It still doesn't compile

Code:
---------------- Building: TestGame - Series 60 (3rd edition) Release ----------------
Processing D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame_tmp.pkg...
D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame_tmp.pkg(6) : error: file I/O fault.


and just to check my command lines in the .ini. I'm pasting the whole thing so that you could check if the mistake is not elsewhere. :?


Code:
# Edge IDE platform configuration file
#
# Copyright (c) 2004-2006 Elements Interactive B.V.
# http://www.edgelib.com
# ------------------------------------

# General options
defname = "Series 60 (3rd edition)"
defshortname = "s60_e3rd"
sdkpath = "D:\Symbian\9.1\S60_3rd_MR"
sdkbuildpath = "D:\Symbian\9.1\S60_3rd_MR\EPOC32"
csltoolchainpath = "C:\Program Files\CSL Arm Toolchain"

* Code removed to improve topic readability *
Hi Guynemer,

You should be able to find the cause of the error easily now. Open D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame_copy.pkg and look at the file on the 6th line.

Please check if all files references in the pkg file are present at their locations.
that's what i've been trying to look for, but i have no .pk file at all :?
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.
OK , here's the pkg file

Code:

&EN;
#{"TestGame"},(0x200096D8),1,00,0
%{"Vendor-EN"}
:"Vendor"
[0x101F7961], 0, 0, 0, {"S60ProductID"}
"D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame.rsc"-"!:\resource\apps\TestGame.rsc"
"D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame_reg.rsc"-"!:\private\10003a3f\import\apps\TestGame_reg.rsc"
"D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame.mbm"-"!:\resource\apps\TestGame.mbm"
"D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame.exe"-"!:\sys\bin\TestGame.exe"
"..\res\pkg\N73\gfx.epk"-"!:\private\200096D8\res\gfx.epk"
"..\res\pkg\N73\dll\HSS.dll"-"!:\private\200096D8\HSS.dll"


The problem is that when the IDE generates the files, it adds the app UID, so the files are named :

TestGame_200096D8.exe for instance.

I renamed the ones recquired by the pkg file and it create the sis. But there's still a question about the .exe file. Actually it creates the TestGame_200096D8.exe file, but also another exe file called TestGame.exe. I guess it's the first one I have to use.

To fix the name issue I guess I have to remove all the %appuid% instances in the .ini file ?


Anyway I have created the .sis file (actually 2 , there's also a _tmp.sis file, with a different size ...) , I transfered to a N73 phone. And the problem is that the installation fails:

The error message is something like (translating from french into english)

Error certificate : Contact the vendor
if I try the _tmp.sis file

or the error is something like
Impossible to install a protected (or signed) application coming from a non signed vendor

if I try the .sis file.

I have checked in my options on the phone and I'm supposed to be able to install any application...I changed my mode from "only signed" to "all" , and without net verification.[/code]
Hi Guynemer,

The application UID postfixes should be set for all resource and executable files. This is because all these files are installed in the same folder. Appending the UID will make sure it doesn't overwrite other files.

The EdgeIDE should prepare the pkg file correctly, appending the application UID's. Are you sure it starts the latest EdgeIDE version (beta 6)?

Even if you enable all applications to install on your phone, they still need to be signed using a self-signed certificate. The 'signed applications can install' setting only refers to applications officially signed by a Symbian Signed testhouse.
edge wrote:The application UID postfixes should be set for all resource and executable files. This is because all these files are installed in the same folder. Appending the UID will make sure it doesn't overwrite other files.

The EdgeIDE should prepare the pkg file correctly, appending the application UID's. Are you sure it starts the latest EdgeIDE version (beta 6)


Yes I'm sure, it's the name (beta 6) written in the title bar of the window.

So I musn't trick into the ini file to remove the %appuid%.


Even if you enable all applications to install on your phone, they still need to be signed using a self-signed certificate. The 'signed applications can install' setting only refers to applications officially signed by a Symbian Signed testhouse.


And how am I supposed to do that ? I thought requesting a specific UID on the symbian signed website was enough for that.
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
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:
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 :)
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.
Hi Guynemer,

I recommend starting over and follow the steps below. I hope we can pinpoint the exact reason why your application doesn't work on your mobile:

1. Re-install the Edge SDK and uninstall all Edge-powered applications from your phone

2. Change paths in the Edge IDE ini files (you probably only have to change c: into d: for the Symbian SDK folders)

3. Try to open the Edge IDE workspace of the helloworld sample, rebuild the entire project for S60 3rd edition, build the setup file (double check its date to ensure you've built it) and try it on your device

4. Change the UID of the helloworld project in the Edge IDE to match the UID given to you by Symbian Signed, rebuild the project and setup files and try on your device again (remove the old version first)

5. Copy the helloworld Edge IDE workspace to the project folder of your own application and change the project name/properties, C++ sourcefiles and include your gfx.epk file to the resource files\install folder (create this folder), don't include the hss.dll file

6. Edit your source code and disable Hekkus, rebuild your application/setup and try again on your device (remove the old version first, like before)

7. Include the hss.dll file, rebuild and try again

8. Enable hekkus in your sourcecode and try again
It fails at point 8.

Apparently it doesn't like the staticlib lines I've added.

Here's the end of my epj file

Code:
# Project environment
incpath = "D:\HekkusSoundSystem"
#libpath = "D:\HekkusSoundSystem\lib\symbian_v9-gcce"
#staticlib = "D:\HekkusSoundSystem\lib\symbian_v9-gcce\HSS.dso"
#staticlib = "D:\HekkusSoundSystem\lib\symbian_v9-gcce\HSS{000a0000}.dso"
incpath = "D:\HekkusSoundSystem\include"
incpath = "."


Do you see any error ?


I have an idea about the problem but I don't know how to solve it

HEre's the .pkg file generated for the 3rd ed
Code:
&EN;
#{"TestGame"},(0x200096D8),1,00,0
%{"Vendor-EN"}
:"Vendor"
[0x101F7961], 0, 0, 0, {"S60ProductID"}
"D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame.rsc"-"!:\resource\apps\TestGame.rsc"
"D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame_reg.rsc"-"!:\private\10003a3f\import\apps\TestGame_reg.rsc"
"D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame.mbm"-"!:\resource\apps\TestGame.mbm"
"D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame.exe"-"!:\sys\bin\TestGame.exe"
"..\res\pkg\N73\gfx.epk"-"!:\private\200096D8\res\gfx.epk"
"..\res\pkg\N73\dll\HSS.dll"-"!:\private\200096D8\HSS.dll"


you see that the gfx and the dll files are stored in the "private" folder. It doesn't respect the tree I created.


And for 1rst ed platform the pkg file looks like this :

Code:

#{"TestGame"},(0x100096D8),1,00,0
(0x101F6F88), 0, 0, 0, {"Series60ProductID"}
"D:\Dev\Test\TestGame\6680\release\Series 60 (1st edition)\TestGame.rsc"-"!:\system\apps\TestGame\TestGame.rsc"
"D:\Dev\Test\TestGame\6680\release\Series 60 (1st edition)\TestGame.aif"-"!:\system\apps\TestGame\TestGame.aif"
"D:\Dev\Test\TestGame\6680\release\Series 60 (1st edition)\TestGame.app"-"!:\system\apps\TestGame\TestGame.app"
"..\res\pkg\6680\gfx.epk"-"!:\system\apps\TestGame\res\gfx.epk"
"..\res\pkg\6680\dll\HSS.DLL"-"!:\system\apps\TestGame\HSS.DLL"


There the dll is in the same folder as the executable file (.app), and the gfx is in a folder "res" stored at the same place of the executable.

The thing is that I should change the destination foldes for the 3rd ed pkg file, but since it's generated, i just don't know how to do that :?
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.
Here're the new changes in my epj file

Code:
# Project environment
incpath = "D:\HekkusSoundSystem"
#libpath = "D:\HekkusSoundSystem\lib\symbian_v9-gcce"
dynamiclib = "D:\HekkusSoundSystem\lib\symbian_v9-gcce\HSS.dso"
#staticlib = "D:\HekkusSoundSystem\lib\symbian_v9-gcce\HSS.dso"
#staticlib = "D:\HekkusSoundSystem\lib\symbian_v9-gcce\HSS{000a0000}.dso"
incpath = "D:\HekkusSoundSystem\include"
incpath = "."


It didn't change much anyway.

I even copied manually the HSS.dll file in y sys/bin folder (I removed my card, opened it with the windows explorer and pasted the file in the folder which also contains the .exe).

But it doesn't work. Now when I try to start the application, something happens , but it's a message error saying :


Menu :
Impossible to execute this application for security reasons
:twisted:


Maybe it wasn't a good idea to manually copy the dll file the way I did, but since the pkg file and the sis file are generated in the same process "Build seup" , I can't change the pkg file before it creates the sis :?
Ok now it works but what a mess :lol:

I had to copy the pkg file and change it to
Code:
&EN;
#{"TestGame"},(0x200096D8),1,00,0
%{"Vendor-EN"}
:"Vendor"
[0x101F7961], 0, 0, 0, {"S60ProductID"}
"D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame.rsc"-"!:\resource\apps\TestGame.rsc"
"D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame_reg.rsc"-"!:\private\10003a3f\import\apps\TestGame_reg.rsc"
"D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame.mbm"-"!:\resource\apps\TestGame.mbm"
"D:\Dev\Test\TestGame\N73\release\Series 60 (3rd edition)\TestGame.exe"-"!:\sys\bin\TestGame.exe"
"D:\Dev\Test\TestGame\res\pkg\N73\gfx.epk"-"!:\private\200096D8\res\gfx.epk"
"D:\Dev\Test\TestGame\res\pkg\N73\dll\HSS.dll"-"!:\sys\bin\HSS.dll"


Now the application starts.

I then use manually the makesis file upon my "customized" pkg file, and signed it manually too.


I guess the solution will be to have the source code of Hekkus so that the dll won't be a problem anymore.


There's still one thing that's annoying. It seems i can't install the package to another phone. (I gave the IMEI when I requested the certificate). What should I do to be able to install it on any phone ?

Thx a lot anyway for your help :wink:
Hi Guynemer,

Great to hear that your application finally works :)

I suggest using the certificate files delivered with the Edge IDE until you've found a way to use OpenSSL. OpenSSL is a utility usually found on Linux.

If you're able to start OpenSSL, you can create a certificate with these commands:
Code:

openssl genrsa 1024 > sign.key
openssl req -new -x509 -nodes -sha1 -days 7300 -key sign.key > sign.cert
ok , and does the certificate created with openssl work with every phone , with any IMEI ?
Hi Patrick,

Yes, the certificate should work on every Symbian 9+ device.