• 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
Linking universal binary framework with UNIX library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking universal binary framework with UNIX library


  • Subject: Linking universal binary framework with UNIX library
  • From: Andrew Zamler-Carhart <email@hidden>
  • Date: Sun, 20 Nov 2005 10:36:21 -0500

Dear List,

I am trying to compile as a universal binary a framework that links with a UNIX .a library. The framework in question is EPEGWrapper, distributed by Marc Liyanage. More info here:

	http://www.cocoabuilder.com/archive/message/cocoa/2004/1/19/99067

The download package includes libjpeg.a, compiled for PowerPC, with its associated headers. The Xcode project for the framework links with this library. I can't compile as a universal binary because there's no i386 version of the library.

Fortunately, libjpeg is open source. I can download the source (http://freeware.sgi.com/source/libjpeg/), configure/make on the command line, and build a PowerPC version of libjpeg.a.

First of all, is it even possible to compile a UNIX .a library as a universal binary? If so, what kind of modifications to the makefile and other command-line tricks would I need to perform? I've read that gcc on the command line can't be made to link against SDKs.

Would it be possible to compile libjpeg.a on an Intel computer (Developer Transition Kit or Linux PC?) and then incorporate both a PowerPC and an Intel version of the library into the project for the framework? Perhaps I could build with two targets and then join them on the command line?

I should mention that my application builds with gcc 4.0 and targets 10.3.9 on PowerPC and 10.4 on Intel. I have a PowerBook (PowerPC!) running 10.4.2 and Xcode 2.2.

Thanks all.

Andrew
KavaSoft
_______________________________________________
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: Linking universal binary framework with UNIX library
      • From: David Young <email@hidden>
  • Prev by Date: Line break in xcode editor
  • Next by Date: Intel architecture setting ignored?
  • Previous by thread: Line break in xcode editor
  • Next by thread: Re: Linking universal binary framework with UNIX library
  • Index(es):
    • Date
    • Thread