Re: /usr/lib/libxml2.2.dylib: mach-o, but wrong architecture
Re: /usr/lib/libxml2.2.dylib: mach-o, but wrong architecture
- Subject: Re: /usr/lib/libxml2.2.dylib: mach-o, but wrong architecture
- From: Greg Guerin <email@hidden>
- Date: Wed, 9 May 2007 15:51:10 -0700
Perrog wrote:
>Can I create a dynamic library with multiple architectures?
Yes.
> I have a problem
>where ImageIO.framework uses the ppc architecture of
>/usr/lib/libxml2.2.dylib, another (AppKit.framework) use the i386
>architecture. Or how do I resolve this?
>
>This is on a machine running MacOS 10.4.9 and Intel architecture.
>
>Another thing is that my libxml2.2.dylib is an own build, because a perl
>package I'm experimenting with needed this. I never tried if this error
>occured with the original library, but I think it would have occured.
Since it's your own build, the simplest thing I can think of is for you to
build your own libxml2.2.dylib on the architecture you want to run it on.
This would avoid having to think about how to compile for multiple
architectures.
>But this does not help me what to do next.
Short answer: create a Universal Binary of libxml2.2.dylib.
What to do next: read how to create Universal Binaries in Xcode.
<http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/index.html>
-- GG
_______________________________________________
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