• 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: Xcode uses "SDK Path" instead of my "Library Search Paths" ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode uses "SDK Path" instead of my "Library Search Paths" ?


  • Subject: Re: Xcode uses "SDK Path" instead of my "Library Search Paths" ?
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 22 May 2006 21:32:11 -0700
  • Thread-topic: Xcode uses "SDK Path" instead of my "Library Search Paths" ?

Well, I tried to fix it by building it as a static library instead of
dynamic, and it built.  Yahooooo!  But when running, an NSLog of
sqlite_version told me that the run-time was still loading old version 3.1.3
from /System instead of my new static library.  Darn it.  Anybody know how
to fix that?

So, I went back to beat on the dylib.  In the following document:

ADC Home > Reference Library > Documentation > Tools > Xcode > Xcode 2.2
User Guide > Linking > Linking to a Dynamic Library in a Nonstandard
Location

I read:

"When you need to link with a custom version of a dynamic library but don¹t
want to replace the standard version of the library, you can use the
-dylib_file option of the linker to tell it where to find the nonstandard
version of the library."

Hey now!! I think maybe that sounds just like what I want to do!!
Continuing....

"Just add -dylib_filestandard_library_path:nonstandard_library_path to the
Other Linker Flags (OTHER_LD_FLAGS) build setting, where
standard_library_path is the path to the standard library and
nonstandard_library_path is the path to the custom version of the library."

But they don't tell me what is nonstandard_library_path.  Is it the default
Installation Location, "usr/local/lib"?  Doesn't make sense...if it is
constant, why do I have to fill it in?

Can I use @executable_path in my nonstandard_library_path?

Also, should there be a space between "-dylib_files" and
"standard_library_path"?  Is that a typo?

Jerry

Literary Note: Whenever I read instructions whick start with the word "Just"
as in "Just do this..." or "Just to that....", I know I'm probably in
trouble.


 _______________________________________________
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: Xcode uses "SDK Path" instead of my "Library Search Paths" ?
      • From: "Peter O'Gorman" <email@hidden>
References: 
 >Re: Xcode uses "SDK Path" instead of my "Library Search Paths" ? (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Discard Changes on project
  • Next by Date: Re: Xcode uses "SDK Path" instead of my "Library Search Paths" ?
  • Previous by thread: Re: Xcode uses "SDK Path" instead of my "Library Search Paths" ?
  • Next by thread: Re: Xcode uses "SDK Path" instead of my "Library Search Paths" ?
  • Index(es):
    • Date
    • Thread