Error making .sis file due to losing .lib files.

Login to reply to this topic.
Sat, 2007-10-06 10:54
Joined: 2007-07-09
Forum posts: 40

Hi,
I have a program in which I use some methods like DrawTextExtended for which we should use related libraries such as “gdi.lib”. My program work fine in Emulator but I can not make sis file for ARMI. I can resolve this by commenting the line of code in which I used DrawTextExtended.
Regards.


Mon, 2007-10-08 10:56
Joined: 2006-09-18
Forum posts: 68
Re: Error making .sis file due to losing .lib files.

What tools are you using to compile? In Carbide.c++ v.1 &v.1.1 you had to add the .lib files for each build type, WINCW and ARMI. For Carbide.c++ v1.2 and the command line you only need to add it to the .mmp file.

Mon, 2007-10-08 11:43
Joined: 2007-07-09
Forum posts: 40
Re: Error making .sis file due to losing .lib files.

Thanks a lot, It seems that my problem is resolved.

Mon, 2007-10-08 11:55
Joined: 2006-09-18
Forum posts: 68
Re: Error making .sis file due to losing .lib files.

From your question I gather that you are using Carbide v.1 or v.1.1. In future please supply answers to questions.

1. In "C/C++ projects" right click on your project folder.
2. Click "Properties" on context menu.
3. In left pane click C/C++ Build.
4. In "Active Configuration", "Configuration" select ARMI or phone build
5. In "Configuration Settings", "Tool Settings" left pane select Linker->Libraries
6. On right Libraries add the library you want, but with .dso extention instead of .lib

I would suggest that you upgrade to Carbide.c++ v1.2. I find it much better, than previous versions.

Mon, 2007-10-08 11:59
Joined: 2007-07-09
Forum posts: 40
Re: Error making .sis file due to losing .lib files.

Dear Werries,
Your comment really helped me, Thanks a lot.
Regards.

Tue, 2007-10-09 08:23
Joined: 2007-07-09
Forum posts: 40
Re: Error making .sis file due to losing .lib files.

I have added the libraries which are needed by ARMI, It seems that it needs some more libraries yet; but now I get a new error:
ERROR: Dll 'DBMS[101F5466].APP' has uninitialised data.
What can cause such an error?

Viewing the console output may be useful:

...
'Building target: C:/Symbian/7.0s/Series60_v21_CW/epoc32/release/ARMI/UREL/DBMS.app'
'Invoking: Petran'
petran.exe -nocall -uid1 0x10000079 -uid2 0x100039ce -uid3 0x101f5466 "C:\Symbian\7.0s\Series60_v21_CW\epoc32\release\ARMI\UREL\DBMS.sym" "C:/Symbian/7.0s/Series60_v21_CW/epoc32/release/ARMI/UREL/DBMS.app"

ERROR: Dll 'DBMS[101F5466].APP' has uninitialised data.
PETRAN - PE file preprocessor V01.00 (Build 187)
Copyright (c) 1996-2001 Symbian Ltd.

make: *** [C:/Symbian/7.0s/Series60_v21_CW/epoc32/release/ARMI/UREL/DBMS.app] Error -2
'Building file: sis/DBMS_S60_2nd_ed.pkg'
'Invoking: MakeSis (Installation File Generator)'
makesis.exe "sis/DBMS_S60_2nd_ed.pkg" C:/Symbian/Carbide/workspace/new_DBMS/sis/DBMS_S60_2nd_ed.sis
Processing sis/DBMS_S60_2nd_ed.pkg...
sis/DBMS_S60_2nd_ed.pkg(17) : error: file not found
make: *** [C:/Symbian/Carbide/workspace/new_DBMS/sis/DBMS_S60_2nd_ed.sis] Error 1
make: Target `all' not remade because of errors.
Build complete for project new_DBMS

Tue, 2007-10-09 10:31
Joined: 2006-09-18
Forum posts: 68
Re: Error making .sis file due to losing .lib files.

This problem occurs because you cannot have static data in a Symbian DLL, thus global variables must be declared const and must not call a constructor. An .app file is a type of .dll in Symbian.

  • Login to reply to this topic.