×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    55

    How to specify Library Search Path in Carbide

    Hi,
    I have quite few custom libaries, which I have kept in separate folder. I want to give this as a library search path for linker so that it can find appropriate libraries during linking. I searched for option in the mmp file and in the carbide but couldn't find it.

    Can anybody tell me how to do this?

    Where can I specify other gcc settings such as performance settings while using Carbide?

    Thanks,
    Atul
    Last edited by atul_kulkarni; 2008-08-14 at 07:40.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to specify Library Search Path in Carbide

    Quote Originally Posted by atul_kulkarni View Post
    Hi,
    I have quite few custom libaries, which I have kept in separate folder. I want to give this as a library search path for linker so that it can find appropriate libraries during linking. I searched for option in the mmp file and in the carbide but couldn't find it.

    Can anybody tell me how to do this?

    Where can I specify other gcc settings such as performance settings while compiling with Carbide?

    Thanks,
    Atul
    AFIK you can't do it using carbide. may be you have to change the scripts.

  3. #3
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    55

    Re: How to specify Library Search Path in Carbide

    Anybody, knows the exact script or environment variable where I can make this change?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,675

    Re: How to specify Library Search Path in Carbide

    At least you can specify the path of a .lib file in the .mmp file:
    Code:
    LIBRARY mylibs\mylib.lib
    And if the OPTION keyword of the .mmp file is not enough, Carbide also provides an Options tab in its .mmp editor, there you can apparently set compiler options on a per toolchain basis.

  5. #5
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    55

    Re: How to specify Library Search Path in Carbide

    Thanks Wizard,

    LIBRARY mylibs\mylib.lib
    I had tried this earlier, Actually this 'mylibs' path is recognized only relative to the thumb/urel folder (or release folder). It also doesn't recognize the absolute path given. Am I right?

    I'll try other trick of OPTION mentioned by you.

  6. #6
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    55

    Re: How to specify Library Search Path in Carbide

    OPTION keyword recognizes only compiler options(linker options are not recognized :( ).

    I forgot to mention when I try linker options (from options tab), carbide cries with error saying keyword 'LINKEROPTION' not recognized.

    Is there a way out?

    Thanks,
    Atul

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to specify Library Search Path in Carbide

    Is there any reason you have to point to another place also.

  8. #8
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: How to specify Library Search Path in Carbide

    The libraries are expected to be found at their default location so you better get them there.

    The PRJ_EXPORT section of bld.inf can be used to make sure that any 3rd party library is copied into the SDK used.

    This is an SDK toolchain issue so I won't move this to the Carbide.c++ forum. ;)
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  9. #9
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    55

    Re: How to specify Library Search Path in Carbide

    The reason I don't want to use default location is that for each SDK flavor the default library location is different. Our application is designed to work on all the SDK flavors (from S60 2nd onwards) and manual copy would not be good option, i want it to happen automatically as I take the code from the repository and import it.

    However I think the alternative suggested by Itomuta can alleviate my concern. There are not enough macros which can be used in bld.inf to distinguish between S60 2nd SDK flavors. Is there any way to provide macros externally to bld.inf which could be used during import (or some sort of preprocessing)?

    Thanks,
    Atul

  10. #10
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to specify Library Search Path in Carbide

    you can use the hrh file in Epoc32\include\variant\ folder

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. Building library fails with GCCE? (Carbide 1.3)
    By pailes in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-03-12, 12:06
  3. Replies: 4
    Last Post: 2006-12-22, 22:51
  4. Question on Importing Projects into Carbide
    By d2army in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-06-22, 19:13
  5. Question on Importing Projects into Carbide
    By d2army in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-06-22, 02:02

Posting Permissions

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