×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    13

    Coudn't generate library with new SDK 3rd edition

    I'm trying to compile a library but I've got the following error code :

    abld build gcce urel
    make -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\9.1\S60_3rd\ExampleLib\group\EXPORT.make" EXPORT VERBOSE=-s
    Nothing to do
    make -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\9.1\S60_3rd\ExampleLib\group\GCCE.make" MAKEFILE VERBOSE=-s
    perl -S makmake.pl -D \Symbian\9.1\S60_3rd\ExampleLib\group\EXAMPLELIB GCCE
    make -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\9.1\S60_3rd\ExampleLib\group\GCCE.make" LIBRARY VERBOSE=-s
    make -s -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\9.1\S60_3rd\ExampleLib\group\EXAMPLELIB\GCCE\EXAMPLELIB.GCCE" LIBRARY
    Creating \Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\9.1\S60_3rd\ExampleLib\group\EXAMPLELIB\GCCE\UREL
    Exampleclass.cpp
    In file included from ..\\src\\Exampleclass.cpp:1:
    ..\\src\\/ExampleClass.h:11:29: warning: no newline at end of file
    process_begin: CreateProcess((null), cr ..\..\EPOC32\RELEASE\ARMV5\UREL\examplelib.lib ..\..\EPOC32\BUILD\Symbian\9.1\S60_3rd\ExampleLib\group\EXAMPLELIB\GCCE\UR
    EL\ExampleClass.o, ...) failed.
    make (e=2): Le fichier spÚcifiÚ est introuvable.
    make[1]: *** [..\..\EPOC32\RELEASE\ARMV5\UREL\examplelib.lib] Error 2
    make: *** [LIBRARYEXAMPLELIB] Error 2
    make -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\9.1\S60_3rd\ExampleLib\group\GCCE.make" RESOURCE CFG=UREL VERBOSE=-s
    make -s -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\9.1\S60_3rd\ExampleLib\group\EXAMPLELIB\GCCE\EXAMPLELIB.GCCE" RESOURCEUREL
    make -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\9.1\S60_3rd\ExampleLib\group\GCCE.make" TARGET CFG=UREL VERBOSE=-s
    make -s -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\9.1\S60_3rd\ExampleLib\group\EXAMPLELIB\GCCE\EXAMPLELIB.GCCE" UREL
    process_begin: CreateProcess((null), cr ..\..\EPOC32\RELEASE\ARMV5\UREL\examplelib.lib ..\..\EPOC32\BUILD\Symbian\9.1\S60_3rd\ExampleLib\group\EXAMPLELIB\GCCE\UR
    EL\ExampleClass.o, ...) failed.
    make (e=2): Le fichier spÚcifiÚ est introuvable.
    make[1]: *** [..\..\EPOC32\RELEASE\ARMV5\UREL\examplelib.lib] Error 2
    make: *** [TARGETEXAMPLELIB] Error 2
    make -r -f "\Symbian\9.1\S60_3rd\EPOC32\BUILD\Symbian\9.1\S60_3rd\ExampleLib\group\GCCE.make" FINAL CFG=UREL VERBOSE=-s


    The ExampleLib.mmp file is the following :
    Code:
    TARGET examplelib.lib
    TARGETTYPE lib
    	
    SOURCE     ExampleClass.cpp
    
    USERINCLUDE .
    The ExampleClass.h is the following :
    Code:
    #ifndef __EXAMPLECLASS_H__
    #define __EXAMPLECLASS_H__
    
    class ExampleClass
    {
    public :
    	ExampleClass() {}
    	~ExampleClass() {}
    };
    
    #endif // __EXAMPLECLASS_H__
    The ExampleClass.cpp is the following :
    Code:
    #include "ExampleClass.h"

  2. #2
    Super Contributor
    Join Date
    May 2003
    Location
    Vancouver, Canada
    Posts
    985

    Re: Coudn't generate library with new SDK 3rd edition

    Have you installed GCCE? If not, may be you have to install it (use Start menu and select Tools | Install CSL ARM Toolchain). If you have installed it, make sure that GCCE is in your PATH.

    Hope this helps.

    Antony

  3. #3
    Regular Contributor
    Join Date
    May 2005
    Location
    Sweden
    Posts
    272

    Re: Coudn't generate library with new SDK 3rd edition

    (Use the -v (verbose) parameter with abld, so that you can see what's going on.) In this case the problem is that "ar" isn't defined correctly (or rather, not at all) in the makefile. In Epoc32\tools\compilation_config\gcce.mk, change "AR=arm-none-symbianelf-ar" into "ARCHIVER=arm-none-symbianelf-ar".

  4. #4
    Registered User
    Join Date
    Oct 2003
    Posts
    13

    Re: Coudn't generate library with new SDK 3rd edition

    Thanks a lot. "ar" wasn't defined correctly in the makefile ...

  5. #5
    Registered User
    Join Date
    Feb 2006
    Posts
    3

    Re: Coudn't generate library with new SDK 3rd edition

    Quote Originally Posted by ptrmn
    (Use the -v (verbose) parameter with abld, so that you can see what's going on.) In this case the problem is that "ar" isn't defined correctly (or rather, not at all) in the makefile. In Epoc32\tools\compilation_config\gcce.mk, change "AR=arm-none-symbianelf-ar" into "ARCHIVER=arm-none-symbianelf-ar".

    i am having the same problem trying to build a library...
    i tried the steps you suggested, but i still get the same error...

    is there anything else i can try?

    my PATH variable should be set up correclty, as the first entry is the path to the GCCE toolchain "C:\Symbian\ARM\bin"

    not sure why i am having this problem as i can build an exe with no problem.

    thanks again,
    Nick

  6. #6
    Regular Contributor
    Join Date
    May 2005
    Location
    Sweden
    Posts
    272

    Re: Coudn't generate library with new SDK 3rd edition

    If you're having another problem, I suggest you do what I did and debug it. If you're still getting the same error, the variable in the Makefile which is supposed to contain the name of ar isn't defined, and you'll have to find a way to solve that. As I said in my previous message, the -v parameter to abld should give you some help.

  7. #7
    Registered User
    Join Date
    Feb 2006
    Posts
    3

    Re: Coudn't generate library with new SDK 3rd edition

    well my problem may be slightly different as i am using a different SDK.
    just thought since i was seeing the same exact problem as the original poster, my problem could be the same.

    the AR was defined incorrectly, but that does not seem to make a difference.

    i just gotta keep searching.

  8. #8
    Registered User
    Join Date
    Feb 2006
    Posts
    3

    Re: Coudn't generate library with new SDK 3rd edition

    ok i figured out my issue,
    there are 2 places in the GCCE.mk file where AR needed to be changed to ARCHIVER.
    once i did that it all worked!

    thanks again, cause woulda never figured this out if i didn't know where to look.

  9. #9
    Registered User
    Join Date
    Jun 2003
    Posts
    20

    Re: Coudn't generate library with new SDK 3rd edition

    Could you please mention path where your SDK is installed to?

  10. #10
    Registered User
    Join Date
    Jun 2006
    Posts
    11

    Smile Re: Coudn't generate library with new SDK 3rd edition

    Hi,
    Thanks very much for this answer. Hats off to whosoever spotted this.

    Rgds,
    Chirag

  11. #11
    Registered User
    Join Date
    Aug 2003
    Posts
    3

    Re: Coudn't generate library with new SDK 3rd edition

    How i can link an application with this static library???

    Toolchain requires dso file for all library incase you are compiling for GCCE platform..
    Please help me with info..

    Br,
    Muzibour

  12. #12
    Super Contributor
    Join Date
    May 2003
    Location
    Vancouver, Canada
    Posts
    985

    Re: Coudn't generate library with new SDK 3rd edition

    The .dso files should be available in the SDK (under \epoc32\release\armv5\lib). Don't get confused with \armv5 folder, the build tool will pick up the .dso files from here when you are usin GCCE.

  13. #13
    Registered User
    Join Date
    Aug 2003
    Posts
    3

    Re: Coudn't generate library with new SDK 3rd edition

    Hi,
    Actually when you create a static library, toolchain doesn't generate .dso file while \epoc32\release\armv5\lib folder. Tool create only .lib with \epoc32\release\gcce\urel|udeb folder.

    Now when you want to use this static library within application, gcce toolchain required .dso file. But toolchain doesn't generate .dso file for static library.

    Now my question is, how to use static library for gcce platfrom. How i can link my application with static library on gcce platform???

    I found some thing at http://www.symbian.com/developer/tec...elf2e32%2emain

    But, There is clearly mentioned that for static library toolchain will archieve the object codes and wnt generate any dso file.

    Within this discussion chain, it seems to me people are able to link with static library. Please let me know, if i need to do thing extra to resolve this problem..



    Please help me...

    Thanks & Regards,
    Muzibour
    Last edited by muzibour; 2006-07-18 at 09:36.

  14. #14
    Registered User
    Join Date
    Oct 2003
    Posts
    13

    Re: Coudn't generate library with new SDK 3rd edition

    You have to generate your library with the followings in your .mmp file :
    TARGET re3d_mms.lib
    TARGETTYPE lib
    and generate your application with the followings in your .mmp file
    STATICLIBRARY a.lib
    It works for my project.

  15. #15
    Registered User
    Join Date
    Aug 2003
    Posts
    3

    Re: Coudn't generate library with new SDK 3rd edition

    I got the problem.. Actually from the static library, applicaiton is not calling any method. But this library is need by another static library.

    Since from my code, i m not calling any method, arm-none-symbianelf-ld ignore this static library during linking.

    To supress this one, modify gcce.mk file with the following.

    # Option to specify the undefined reference
    #UNDEFINED_SYMBOL_REF_OPTION=-u
    UNDEFINED_SYMBOL_REF_OPTION=

Similar Threads

  1. OpenGL ES on S60 3rd Edition SDK Emulator
    By specjones in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2008-09-30, 10:22
  2. avkon.mbm transformed in 3rd edition
    By iulian_moldovan in forum Symbian
    Replies: 3
    Last Post: 2006-08-01, 09:51
  3. When SDK for Symbian 3rd edition will be available?
    By symbianx in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2006-05-08, 09:21
  4. Full Duplex Audio Streaming and Series 60 SDK 3rd Edition
    By akbasonder in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2006-02-06, 06:03
  5. TTime : TInt64& Int64() problem in S60 3rd edition
    By iulian_moldovan in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2006-01-24, 13:07

Posting Permissions

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