• 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: Recompile for Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recompile for Intel


  • Subject: Re: Recompile for Intel
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 22 Nov 2006 10:55:28 -0800


On Nov 22, 2006, at 10:21 AM, John Nairn wrote:

I am trying to compiling existing code for Intel only on my new Mac. It need to link to the xerces library. The steps I took are

1. Used command line to recompile libxerces-c on Intel and installed in /usr/local/lib. lipo -info reports it has the right architecture

      Non-fat file: libxerces-c.27.0.dylib is architecture: i386

2. Opened my XCode project for a C tool executable. The target SDK is "Current Mac OS"

3. It compiles but will not link to above library (which was added to project as external library). It lists a bunch of "undefined symbols" (all in xerces) during the linking step.

You either need to copy the xerces lib into the 10.4u SDK (at /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib), or use the Other Linker Flags to pass -l/usr/local/lib/libxerces-c.27.0.dylib explicitly to the Linker.  Xcode doesn't support mixing SDK paths and system paths, so you need to either put your custom lib into the SDK or make it find your lib explicitly in the /usr/local path.

Chris
 _______________________________________________
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

References: 
 >Recompile for Intel (From: John Nairn <email@hidden>)

  • Prev by Date: Re: dedicated network build problems
  • Next by Date: Re: Xcode bugs
  • Previous by thread: Recompile for Intel
  • Next by thread: Re: Parallel builds on Intel Mac failing..... start loosing trust in MacOS X....
  • Index(es):
    • Date
    • Thread