• 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: Using zlib for i386 (or Universal) builds on PPC clients
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using zlib for i386 (or Universal) builds on PPC clients


  • Subject: Re: Using zlib for i386 (or Universal) builds on PPC clients
  • From: Kirk Kerekes <email@hidden>
  • Date: Thu, 9 Feb 2006 12:38:42 -0600

I confirm that my 10.4.4 iBook-G4 has nothing in the /usr/lib hierarchy that is Universal, but my 10.4.4 Intel iMac has all Universal dylibs in /usr/lib. Both have the same version (2.2.1) of Developer Tools installed.

10.4.4 != 10.4.4.

Anyone know what it takes to install 10.4.4 in a manner that installs the Universal libs? BSD SDK perhaps?

Lacking that, I suspect that weak-linking libz will allow you to complete the build.


On Feb 9, 2006, at 5:42 AM, email@hidden wrote:

Message: 11
Date: Thu, 9 Feb 2006 17:12:47 +0800
From: David Chan <email@hidden>
Subject: Using Zlib for i386 code
To: Cocoa Cocoa-Dev <email@hidden>
Message-ID:
	<email@hidden>
Content-Type: text/plain; charset=ISO-8859-1

Hi all,

Sometimes ago I emailed asking about decompressing file and I was told
to use zlib. I have used it successfully so far for my project. But
there is problem when I try to compile my project for intel-based
machine. fyi, I am working on powerpc at the moment, using xcode 2.2,
and the project itself is mainly using objective-c language. I need to
compile this project to be universal-binary-enabled as the clients
machine require so.

When I set the architecture to both intel and ppc, I stumble into
errors where zlib's functions such as inflate, inflateEnd, etc.. get
Undefined Symbol error message.

So the command line such as:

int err=inflateInit_(&m_ZRec, zlib_version, sizeof (m_ZRec));

which would cause no error when compiling for ppc, is know becoming an
error. This command line is written in an objective c class that
already include zlib.h.  I wonder what could the problem be. Thanks in
advance for the pointers on this problem.

Regards
David


------------------------------

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Using zlib for i386 (or Universal) builds on PPC clients
      • From: j o a r <email@hidden>
  • Prev by Date: Seattle XCoders meeting tonight, 7 PM - Squeak - book study: Advanced Mac OS X Programming
  • Next by Date: Re: Using zlib for i386 (or Universal) builds on PPC clients
  • Previous by thread: Seattle XCoders meeting tonight, 7 PM - Squeak - book study: Advanced Mac OS X Programming
  • Next by thread: Re: Using zlib for i386 (or Universal) builds on PPC clients
  • Index(es):
    • Date
    • Thread