×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jun 2004
    Posts
    135

    S60 3rd: creating a static library...

    hi,

    I have the following code for my AccountTools.lib :

    Code:
    TARGET          AccountTools.lib
    TARGETTYPE      lib
    UID             0
    TARGETPATH      \sys\bin
    SECUREID        0
    VENDORID        0
    CAPABILITY      None
    
    SOURCEPATH    .
    SOURCE        AccountTools.cpp
    
    USERINCLUDE   .
    USERINCLUDE   ..\Include
    USERINCLUDE   ..\Utils
    USERINCLUDE   ..\Intro
    
    SYSTEMINCLUDE \Epoc32\include
    SYSTEMINCLUDE \Epoc32\include\libc
    
    #if defined(WINSCW)
        deffile .\ACCOUNTTOOLSWINSCW.def
    #else if defined(GCCE)
        deffile .\ACCOUNTTOOLSGCCE.def
    #endif
    nostrictdef
    this part:
    #if defined(WINSCW)
    deffile .\ACCOUNTTOOLSWINSCW.def
    #else if defined(GCCE)
    deffile .\ACCOUNTTOOLSGCCE.def
    #endif

    nostrictdef

    I know is not neccesary.

    But my problem is when I compile the lib for GCCE.
    Compiled for WINSCW it works fine, but when compiled for GCCE I have the following build output:

    Code:
    C:\BullGuard\AccountTools>abld build gcce urel
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\BullGuard\AccountTools\EXPORT.m
    ake" EXPORT VERBOSE=-s
    make: Nothing to be done for `EXPORT'.
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\BullGuard\AccountTools\GCCE.mak
    e" MAKEFILE VERBOSE=-s
    perl -S makmake.pl  -D \BullGuard\AccountTools\ACCOUNTTOOLS GCCE
    WARNING: Cannot determine the version of the RVCT Compiler.
    WARNING: Frozen .DEF file \BullGuard\AccountTools\ACCOUNTTOOLSGCCE.def not found
     - project not frozen
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\BullGuard\AccountTools\GCCE.mak
    e" LIBRARY VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\BullGuard\AccountTools\ACCOUNT
    TOOLS\GCCE\ACCOUNTTOOLS.GCCE" LIBRARY
    process_begin: CreateProcess((null), cr ..\..\Symbian\9.1\S60_3rd\EPOC32\RELEASE
    \ARMV5\UREL\AccountTools.lib ..\..\Symbian\9.1\S60_3rd\EPOC32\BUILD\BullGuard\Ac
    countTools\ACCOUNTTOOLS\GCCE\UREL\AccountTools.o, ...) failed.
    make (e=2): The system cannot find the file specified.
    make[1]: *** [..\..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\AccountTools.l
    ib] Error 2
    make: *** [LIBRARYACCOUNTTOOLS] Error 2
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\BullGuard\AccountTools\GCCE.mak
    e" RESOURCE CFG=UREL VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\BullGuard\AccountTools\ACCOUNT
    TOOLS\GCCE\ACCOUNTTOOLS.GCCE" RESOURCEUREL
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\BullGuard\AccountTools\GCCE.mak
    e" TARGET CFG=UREL VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\BullGuard\AccountTools\ACCOUNT
    TOOLS\GCCE\ACCOUNTTOOLS.GCCE" UREL
    process_begin: CreateProcess((null), cr ..\..\Symbian\9.1\S60_3rd\EPOC32\RELEASE
    \ARMV5\UREL\AccountTools.lib ..\..\Symbian\9.1\S60_3rd\EPOC32\BUILD\BullGuard\Ac
    countTools\ACCOUNTTOOLS\GCCE\UREL\AccountTools.o, ...) failed.
    make (e=2): The system cannot find the file specified.
    make[1]: *** [..\..\Symbian\9.1\S60_3rd\EPOC32\RELEASE\ARMV5\UREL\AccountTools.l
    ib] Error 2
    make: *** [TARGETACCOUNTTOOLS] Error 2
      make -r  -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\BullGuard\AccountTools\GCCE.mak
    e" FINAL CFG=UREL VERBOSE=-s
    What is wrong?

    thanks.

  2. #2
    Super Contributor
    Join Date
    Nov 2005
    Location
    London
    Posts
    584

    Re: S60 3rd: creating a static library...

    The fix is as follows:

    In epoc32/tools/compilation_config/gcce.mk the following line:

    AR=arm-none-symbianelf-ar

    should be modified to

    ARCHIVER=arm-none-symbianelf-ar

    The static library will then build for GCCE as well as ARMV5

Similar Threads

  1. Fail to build syexpat 1.3 under 2nd FP3
    By harry_zhang in forum Symbian
    Replies: 10
    Last Post: 2010-03-19, 10:24
  2. What is going on with Vibration on S60?
    By amd_rikus in forum Mobile Java General
    Replies: 3
    Last Post: 2006-06-16, 00:29
  3. Can’t launch application on 6630
    By kaffemannen in forum Symbian
    Replies: 8
    Last Post: 2005-06-29, 10:49
  4. Replies: 3
    Last Post: 2005-04-11, 20:00
  5. some problems with label
    By vivienzhung in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-21, 09:52

Posting Permissions

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