• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to make a program look for dylibs other than /usr/local/lib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make a program look for dylibs other than /usr/local/lib?


  • Subject: Re: How to make a program look for dylibs other than /usr/local/lib?
  • From: "parag vibhute" <email@hidden>
  • Date: Tue, 11 Dec 2007 19:00:24 +0530


I have mentioned answers to ur questions as following. From next time I will follow same thing, sorry for earlier one.

On Dec 11, 2007 6:35 PM, Alastair Houghton < email@hidden> wrote:
On 11 Dec 2007, at 12:53, parag vibhute wrote:

> Have u tried the option  -dylib_file of gcc which is mentioned in
> doc of dynamic library. I tried but it did not work, so want to
> check am I doing anything wrong?

I can't say I've needed to use that, no.

Also, if you're going to post something like the above, please include:

1. The URL of the document you're looking at.

Page 67 of pdf at URL http://developer.apple.com/documentation/DeveloperTools/Conceptual/DynamicLibraries/DynamicLibraries.pdf


2. The problem you're trying to solve.
 
The same problem i.e. do not want to change environment variables & also want to place dependant dynamic library at non standard location.
 


3. The command you tried to use.
 
In XCode build settings, I set value of OTHER_CPLUSPLUSFLAGS  to "-dylib_file /usr/lib/libopbx.dylib:/libopbx.dylib" (I placed my dynamic library in OS volume).


4. The results of using the command (i.e. any output, as well as what
you expected it to do and what it actually did).
 
dyld: Library not loaded: /usr/lib/libopbx.dylib
  Referenced from: /Users/palav/Desktop/./Test.app/Contents/MacOS/Test
  Reason: image not found
Trace/BPT trap


Man page of ld mentions a strange thing that this dylib_file option only works  with 32 bit only. So on my macbook I think it is not working. But then why apple did not give similar type of setting for 64 bit.




That way the people trying to help you won't have to search the docs
or try to guess what you're doing.

Kind regards,

Alastair.

--
http://alastairs-place.net





--

There are many things in your life that will catch your eye but only a few will catch your heart....pursue those'.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to make a program look for dylibs other than /usr/local/lib?
      • From: Alastair Houghton <email@hidden>
References: 
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: "parag vibhute" <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: Alastair Houghton <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: "parag vibhute" <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: "parag vibhute" <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: Alastair Houghton <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: "parag vibhute" <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: Alastair Houghton <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: "parag vibhute" <email@hidden>)
 >Re: How to make a program look for dylibs other than /usr/local/lib? (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: How to make a program look for dylibs other than /usr/local/lib?
  • Next by Date: Re: How to make a program look for dylibs other than /usr/local/lib?
  • Previous by thread: Re: How to make a program look for dylibs other than /usr/local/lib?
  • Next by thread: Re: How to make a program look for dylibs other than /usr/local/lib?
  • Index(es):
    • Date
    • Thread