I am using s60 3rd and Carbide.C++ Express 1.1 . I build for the emulator successfully. However I get errors when I try to "Build the Application for a Target Device".
In Carbide C++ I select: Project>Active Build Configuration>S60 3.1 Phone (GCCE) Debug [S60_3rd_FP1]
I have problems in 'GCCE Linker' (Error1) and in 'Building file: sis/BatteryC_EKA2.pkg' (Error2). I don´t know the problem.
Code:
**** Full rebuild of configuration S60 3.1 Phone (GCCE) Debug [S60_3rd_FP1] for project BatteryC ****
make -k all 'Building file: ../src/BatteryC.cpp' 'Invoking: GCCE Compiler' arm-none-symbianelf-g++.exe -MD -c -pipe -mapcs -nostdinc -g -x c++ -march=armv5t -fexceptions -mfloat-abi=soft -D_DEBUG -D_UNICODE -D__GCCE__ -D__SYMBIAN32__ -D__EPOC32__ -D__MARM__ -D__EABI__ -D__MARM_ARMV5__ -D__EXE__ -D__SUPPORT_CPP_EXCEPTIONS__ -D__SERIES60_31__ -D__SERIES60_3X__ -D__PRODUCT_INCLUDE__=\"C:\Symbian\9.2\S60_3rd_FP1\epoc32\include\variant\Symbian_OS_v9.2.hrh\" -include "C:\Symbian\9.2\S60_3rd_FP1\EPOC32\INCLUDE\GCCE\GCCE.h" -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas -I "C:\Archivos de programa\CSL Arm Toolchain\lib\gcc\arm-none-symbianelf\3.4.3\include" -I "C:\Documents and Settings\ialonso\Escritorio\TrabajoAlonso\workspace\BatteryC\inc" -I "C:\Symbian\9.2\S60_3rd_FP1\epoc32\include" -I "C:\Symbian\9.2\S60_3rd_FP1\epoc32\include\variant" -I "C:\Archivos de programa\CSL Arm Toolchain\lib\gcc\arm-none-symbianelf\3.4.3\include" -o src/BatteryC.o ../src/BatteryC.cpp 'Generated dependency file src/BatteryC.d' 'Finished building: ../src/BatteryC.cpp' ' '
'Invoking: GCCE Linker' arm-none-symbianelf-ld.exe --check-sections --no-undefined --no-allow-shlib-undefined -nostdlib -shared --entry _E32Startup -Tdata 0x400000 -Ttext 0x8000 --target1-abs --discard-locals --default-symver -u_E32Startup -L"C:\Archivos de programa\CSL Arm Toolchain\arm-none-symbianelf\lib" -L"C:\Archivos de programa\CSL Arm Toolchain\lib\gcc\arm-none-symbianelf\3.4.3" -soname "BatteryC{000a0000}.exe" "C:\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\ARMV5\UREL\eexe.lib" C:\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\ARMV5\LIB\dfpaeabi.dso C:\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\ARMV5\LIB\drtaeabi.dso C:\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\ARMV5\LIB\dfprvct2_2.dso C:\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\ARMV5\LIB\scppnwdl.dso C:\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\ARMV5\LIB\drtrvct2_2.dso C:\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\ARMV5\UREL\usrt2_2.lib -o "C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\GCCE\UDEB\BatteryC.sym" -Map C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\GCCE\UDEB\\BatteryC.exe.map ./src/BatteryC.o  "C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\euser.lib C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\Etel3rdParty.lib C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\esock.lib C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\insock.lib" C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\LIB\euser.dso -lsupc++ -lgcc arm-none-symbianelf-ld.exe: C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\euser.lib C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\Etel3rdParty.lib C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\esock.lib C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\insock.lib: No such file: Invalid argument make: *** [BatteryC.sym] Error 1
'Building file: sis/BatteryC_EKA2.pkg' 'Invoking: CreateSis (Installation File Generator)' createsis create -pass DefaultPassword "sis/BatteryC_EKA2.pkg" C:/Documents Processing sis/BatteryC_EKA2.pkg... Created sis/BatteryC_EKA2-tmp.SIS Extracting info. from sis/BatteryC_EKA2.pkg ... No key/cert found in sis/BatteryC_EKA2.pkg. making key-gen.key, cert-gen.cer ... Generating private key... Created certificate cert-gen.cer A DSA private key has been generated with a keylength of 1024 bits Signing sis/BatteryC_EKA2-tmp.SIS with cert-gen.cer and key-gen.key -> C:/Documents 'Finished building: sis/BatteryC_EKA2.pkg' ' '
'Building file: sis/BatteryC_EKA2.pkg' 'Invoking: CreateSis (Installation File Generator)' createsis create -pass DefaultPassword "sis/BatteryC_EKA2.pkg" and Processing sis/BatteryC_EKA2.pkg... Created sis/BatteryC_EKA2-tmp.SIS Extracting info. from sis/BatteryC_EKA2.pkg ... No key/cert found in sis/BatteryC_EKA2.pkg. making key-gen1.key, cert-gen1.cer ... Generating private key... Created certificate cert-gen1.cer A DSA private key has been generated with a keylength of 1024 bits Signing sis/BatteryC_EKA2-tmp.SIS with cert-gen1.cer and key-gen1.key -> and 'Finished building: sis/BatteryC_EKA2.pkg' ' '
'Building file: sis/BatteryC_EKA2.pkg' 'Invoking: CreateSis (Installation File Generator)' createsis create -pass DefaultPassword "sis/BatteryC_EKA2.pkg" Settings/ialonso/Escritorio/TrabajoAlonso/workspace/BatteryC/sis/BatteryC_EKA2.sis Processing sis/BatteryC_EKA2.pkg... Created sis/BatteryC_EKA2-tmp.SIS Extracting info. from sis/BatteryC_EKA2.pkg ... No key/cert found in sis/BatteryC_EKA2.pkg. making key-gen2.key, cert-gen2.cer ... Generating private key... Created certificate cert-gen2.cer A DSA private key has been generated with a keylength of 1024 bits Signing sis/BatteryC_EKA2-tmp.SIS with cert-gen2.cer and key-gen2.key -> Settings/ialonso/Escritorio/TrabajoAlonso/workspace/BatteryC/sis/BatteryC_EKA2.sis file I/O fault, cannot create Settings/ialonso/Escritorio/TrabajoAlonso/workspace/BatteryC/sis/BatteryC_EKA2.sis. ERROR! Failed at signsis -s "sis/BatteryC_EKA2-tmp.SIS" "Settings/ialonso/Escritorio/TrabajoAlonso/workspace/BatteryC/sis/BatteryC_EKA2.sis" "cert-gen2.cer" "key-gen2.key" DefaultPassword
In Window>Show View>Other>PDE Runtime>Error Log I have this message: "Error Category com.nokia.carbide.cpp not found for view com.nokia.cdt.debug.cw.symbian.ui.SymbianOSView. This view added to 'Other' category. "
The Error 2 is due to the space caracters in the workspace's path. This is resolved and the .sis file is created.
However the Error 1 continued. I think that the problem is in the library's path.
C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\euser.lib C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\Etel3rdParty.lib C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\esock.lib C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\insock.lib: No such file: Invalid argument make: *** [BatteryC.sym] Error 1
...but these lib's are in "C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\LIB\".
I don't know how to change this option in Carbide C++. In Project>Properties>C/C++ Build>GCCE Linker>Libraries, I only push the name of the static libraries, not the path.
Forum posts: 9
However the Error 1 continued. I think that the problem is in the library's path.
C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\euser.lib
C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\Etel3rdParty.lib
C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\esock.lib
C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\UREL\insock.lib:
No such file: Invalid argument
make: *** [BatteryC.sym] Error 1
...but these lib's are in "C:\Symbian\9.2\S60_3rd_FP1\epoc32\release\ARMV5\LIB\".
I don't know how to change this option in Carbide C++. In Project>Properties>C/C++ Build>GCCE Linker>Libraries, I only push the name of the static libraries, not the path.