×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    292

    How to Create a static library for independent set of class!

    Hi Guys :

    I want to create a library for my different features ......(like for camera,Gps etc) s.t if i want to use this lib in my final sis i can include this lib and header file and use it.

    Could you please help me to know the various ways to achieve this and how to implement them.


    Regards
    Manish

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: How to Create a static library for independent set of class!

    The SDK already contains such examples, like Examples\Basics\StaticDLL, but the client-server examples in Examples\Base\IPC\ClientServer also uses static interface .dll-s (note that Examples\Base\DLLs is about polymorphic .dll-s)

  3. #3
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    292

    Re: How to Create a static library for independent set of class!

    thanks for helping in creating statis lib.

  4. #4
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    292

    Re: How to Create a static library for independent set of class!

    Now i have another requirement i.e i want to know something i.e given by java like ...whether this class (name) exists in the exe and if exists then load the class .......

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: How to Create a static library for independent set of class!

    There is no such thing in Symbian C++.

  6. #6
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    292

    Re: How to Create a static library for independent set of class!

    thanks for ur help[]

  7. #7
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    Re: How to Create a static library for independent set of class!

    Sorry,
    forget my post, I can't delete it ...
    Domi.
    Last edited by Jeepy; 2009-11-19 at 16:36.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: How to Create a static library for independent set of class!

    TARGETTYPE lib is fine. And where is the problem?
    You obviously still need TARGET xy.lib, SOURCE/PATH, SYSTEMINCLUDE-s, USERINCLUDE, perhaps a fake "UID 0"

    EDIT: Ok, forget the answer too.

  9. #9
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    Re: How to Create a static library for independent set of class!

    Hi wizard_hu_

    thanks for you answer, in fact this works 1/2 ...

    I'm able to create and use the lib for the emulator but not for the device, under the emulator, 2 libs are created : in \winscw\udeb and \winscw\UREL

    but when I compile for phone release (GCCE), the lib is not created !; I get 'no problem' but in the console, I get the following :
    Code:
    ***Invoking abld command
    perl.exe -S ABLD.PL \nok_3rd\SymDBG\Engine\project\group\ library gcce  
      make -r  -f "\symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\GCCE.make" LIBRARY VERBOSE=-s
    process_begin: CreateProcess(c:\bin\cr, cr ..\..\..\..\..\symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib ..\..\..\..\..\symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\SYMDBGENGINE\GCCE\UREL\SymDbgEngine.o, ...) failed.
    make -s  -r -f "\symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" LIBRARY
    make (e=193): Error 193make[1]: *** [..\..\..\..\..\symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib] Error 193
    make: *** [LIBRARYSYMDBGENGINE] Error 2
    the .mmp I use is the following (with only one cpp) :

    Code:
    TARGET         		symdbgengine.lib
    TARGETTYPE        	lib
    UID		  	0
    
    SOURCEPATH        	..\src
    SOURCE            	SymDbgEngine.cpp
    
    USERINCLUDE       	..\inc
    
    SYSTEMINCLUDE     	\epoc32\include
    // End of File
    any idea ?
    PS: sorry for the confusion by deleting the previous post, but it was not complete

    thanks in advance,
    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: How to Create a static library for independent set of class!

    Actually it says "Create Process ...some long text... failed". Since in your other post you are asking about moving to a different machine, can it happen that you have forgotten to install the GCCE/CSL toolchain on the new one?

  11. #11
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    Re: How to Create a static library for independent set of class!

    Hi,

    thanks; no, forget my previous post regarding carbide for here, these 2 requests are completely different !
    I have no problem on this machine to compile any project (9.1, mr, 9.2, 9.3, 9.4 .. humm , all), I can also make .dll (the .dso files are created, ...) no problem ! but it's the first time I'm try to build a static lib.

    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  12. #12
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: How to Create a static library for independent set of class!

    That "c:\bin\cr, cr ..\..\..\..\..\symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib ......" in the message seems really strange to me, trying to execute "abld build gcce urel" from a command line may provide some more clues. Especially if you use the verbose variant, "abld -v build gcce urel".

  13. #13
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    Re: How to Create a static library for independent set of class!

    Hi,

    same problem from the command line prompt :

    Code:
    C:\nok_3rd\SymDBG\Engine\project\group>abld build gcce urel
    
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\EXPORT.make" EXPORT VERBOSE=-s
    Nothing to do
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\GCCE.make" MAKEFILE VERBOSE=-s
    perl -S makmake.pl  -D \nok_3rd\SymDBG\Engine\project\group\SYMDBGENGINE GCCE
    WARNING: Cannot determine the version of the RVCT Compiler.
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\GCCE.make" LIBRARY VERBOSE=-s
    make -s  -r -f "\symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" LIBRARY
    process_begin: CreateProcess(c:\bin\cr, cr ..\..\..\..\..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib ..\..\..\..\..\Symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\SYMDBGENGINE\GCCE\UREL\SymDbgEngine.o, ...) failed.
    make (e=193): Error 193
    make[1]: *** [..\..\..\..\..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib] Error 193
    make: *** [LIBRARYSYMDBGENGINE] Error 2
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\GCCE.make" RESOURCE CFG=UREL VERBOSE=-s
    make -s  -r -f "\symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" RESOURCEUREL
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\GCCE.make" TARGET CFG=UREL VERBOSE=-s
    make -s  -r -f "\symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" UREL
    process_begin: CreateProcess(c:\bin\cr, cr ..\..\..\..\..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib ..\..\..\..\..\Symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\SYMDBGENGINE\GCCE\UREL\SymDbgEngine.o, ...) failed.
    make (e=193): Error 193
    make[1]: *** [..\..\..\..\..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib] Error 193
    make: *** [TARGETSYMDBGENGINE] Error 2
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\nok_3rd\SymDBG\Engine\project\group\GCCE.make" FINAL CFG=UREL VERBOSE=-s
    
    C:\nok_3rd\SymDBG\Engine\project\group>
    thinking it was due to a too long path, I have put all into c:\abc and I get the same problem :

    Code:
    C:\abc>abld build gcce urel
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\EXPORT.make" EXPORT VERBOSE=-s
    Nothing to do
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\GCCE.make" MAKEFILE VERBOSE=-s
    perl -S makmake.pl  -D \abc\SYMDBGENGINE GCCE
    WARNING: Cannot determine the version of the RVCT Compiler.
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\GCCE.make" LIBRARY VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" LIBRARY
    process_begin: CreateProcess(c:\bin\cr, cr ..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib ..\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\SYMDBGENGINE\GCCE\UREL\SymDbgEngine.o, ...) failed.
    make (e=193): Error 193
    make[1]: *** [..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib] Error 193
    make: *** [LIBRARYSYMDBGENGINE] Error 2
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\GCCE.make" RESOURCE CFG=UREL VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" RESOURCEUREL
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\GCCE.make" TARGET CFG=UREL
      VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" UREL
    process_begin: CreateProcess(c:\bin\cr, cr ..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib ..\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\SYMDBGENGINE\GCCE\UREL\SymDbgEngine.o, ...) failed.
    make (e=193): Error 193
    make[1]: *** [..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib] Error 193
    make: *** [TARGETSYMDBGENGINE] Error 2
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\GCCE.make" FINAL CFG=UREL VERBOSE=-s
    
    C:\abc>
    PS :
    1) have checked ..\Symbian\9.1\S60_3rd\EPOC32 , this is cthe correct sdk path.
    2) have tried to put exportfrozen in the .mmp, same problem.
    3) have tried to use EXPORT_C / IMPORT_C, same problem.

    any other idea ?
    btw, thanks for your help !
    Domi.
    Last edited by Jeepy; 2009-11-20 at 08:16.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  14. #14
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    Re: How to Create a static library for independent set of class!

    ok,

    in my previous post, I had a c:\bin directory containing a file name cr (....)

    I have removed this file and I get now :

    Code:
    C:\abc>abld build gcce urel
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\EXPORT.make" EXPORT VERBOSE=-s
    Nothing to do
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\GCCE.make" MAKEFILE VERBOSE=-s
    perl -S makmake.pl  -D \abc\SYMDBGENGINE GCCE
    WARNING: Cannot determine the version of the RVCT Compiler.
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\GCCE.make" LIBRARY VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" LIBRARY
    process_begin: CreateProcess((null), cr ..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib ..\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\SYMDBGENGINE\GCCE\UREL\SymDbgEngine.o, ...) failed.
    make (e=2): The system cannot find the file specified.
    make[1]: *** [..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib]
     Error 2
    make: *** [LIBRARYSYMDBGENGINE] Error 2
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\GCCE.make" RESOURCE CFG=UREL VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" RESOURCEUREL
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\GCCE.make" TARGET CFG=UREL
    VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" UREL
    process_begin: CreateProcess((null), cr ..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib ..\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\SYMDBGENGINE\GCCE\UREL\SymDbgEngine.o, ...) failed.
    make (e=2): The system cannot find the file specified.
    make[1]: *** [..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib]
     Error 2
    make: *** [TARGETSYMDBGENGINE] Error 2
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\abc\GCCE.make" FINAL CFG=UREL V
    ERBOSE=-s
    
    C:\abc>
    the 'createprocess' looks for an executable named 'cr' ???

    have retried under carbide and I get the same error :

    Code:
    process_begin: CreateProcess((null), cr ..\symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib ..\symbian\9.1\S60_3rd\EPOC32\BUILD\abc\SYMDBGENGINE\GCCE\UREL\SymDbgEngine.o, ...) failed.
    make (e=2): The system cannot find the file specified.
    
    make[1]: *** [..\symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\symdbgengine.lib] Error 2
    make: *** [TARGETSYMDBGENGINE] Error 2
    make -j 4 -s  -r -f "\Symbian\9.1\S60_3r
    something strange : when compiling for winscw (emulator), the createprocess is not called (cf the console)

    I just wonder if it's not a problem with some perl script ?

    PS: I attach a small project which reproduce the error (under 9.1)

    Tkx,
    Domi.
    Attached Files Attached Files
    Last edited by Jeepy; 2009-11-20 at 09:19.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  15. #15
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: How to Create a static library for independent set of class!

    It works for me, something is wrong with your config.
    Code:
    C:\Work\SymbianCPP\SymDBG>bldmake bldfiles
    
    C:\Work\SymbianCPP\SymDBG>abld build gcce urel
      make -r  -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Work\SymbianCPP\SymDBG\EXPORT.make" EXPORT VERBOSE=-s
    Nothing to do
      make -r  -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Work\SymbianCPP\SymDBG\GCCE.make" MAKEFILE VERBOSE=-s
    perl -S makmake.pl  -D \Work\SymbianCPP\SymDBG\SYMDBGENGINE GCCE
      make -r  -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Work\SymbianCPP\SymDBG\GCCE.make" LIBRARY VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Work\SymbianCPP\SymDBG\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" LIBRARY
    Creating \Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Work\SymbianCPP\SymDBG\SYMDBGENGINE\GCCE\UREL
    Symdbgengine.cpp
    Creating \Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Work\SymbianCPP\SymDBG\SYMDBGENGINE\GCCE\UDEB
    Symdbgengine.cpp
      make -r  -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Work\SymbianCPP\SymDBG\GCCE.make" RESOURCE CFG=UREL VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Work\SymbianCPP\SymDBG\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" RESOURCEUREL
      make -r  -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Work\SymbianCPP\SymDBG\GCCE.make" TARGET CFG=UREL VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Work\SymbianCPP\SymDBG\SYMDBGENGINE\GCCE\SYMDBGENGINE.GCCE" UREL
      make -r  -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Work\SymbianCPP\SymDBG\GCCE.make" FINAL CFG=UREL VERBOSE=-s
    
    C:\Work\SymbianCPP\SymDBG>dir \Symbian\9.1\S60_3rd_MR\Epoc32\release\armv5\urel
     Volume in drive C is Windows
     Volume Serial Number is C494-7345
    
     Directory of C:\Symbian\9.1\S60_3rd_MR\Epoc32\release\armv5\urel
    
    20.11.2009  11:20    <DIR>          .
    20.11.2009  11:20    <DIR>          ..
    31.10.2005  20:40             3'968 ecrt0.lib
    01.11.2005  20:01             5'120 edll.lib
    01.11.2005  20:01             5'064 edllstub.lib
    01.11.2005  20:01             7'184 eexe.lib
    06.04.2008  06:21             5'964 libcrt0.lib
    15.03.2007  16:41            11'202 libcrt0_gcce.lib
    06.04.2008  06:22             4'312 libwcrt0.lib
    31.10.2005  20:40             4'076 mcrt0.lib
    20.11.2009  11:20            24'600 symdbgengine.lib
    07.10.2005  18:24            32'808 usrt2_2.lib
    31.10.2005  20:40             2'612 wecrt0.lib
    31.10.2005  20:40             2'720 wmcrt0.lib
                  12 File(s)        109'630 bytes
                   2 Dir(s)   4'412'845'056 bytes free
    BTW: you are apparently using the "1st 3rd", S60 3rd MR is supposed to be a more stable release of the same SDK.

Similar Threads

  1. Error loading connection when obfuscation high?
    By ejakkk in forum Mobile Java General
    Replies: 8
    Last Post: 2009-06-26, 12:54
  2. Can't get around "Program is not a recognized executable" when trying to debug my app
    By leisti in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 5
    Last Post: 2008-06-27, 16:32
  3. Python for UIQ
    By cassioli in forum Symbian
    Replies: 141
    Last Post: 2008-06-11, 18:16
  4. Exceptions while loading application
    By avinash_rs in forum Mobile Java General
    Replies: 0
    Last Post: 2003-06-09, 10:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×