• 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: How to build Universal Binaries through Open Source code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to build Universal Binaries through Open Source code


  • Subject: Re: How to build Universal Binaries through Open Source code
  • From: Wang Yongqing <email@hidden>
  • Date: Sun, 29 Jun 2008 20:33:50 -0700 (PDT)

Hi, 

Thank you for your reply!

I have tested using the lipo tool to create the universal binary, but get following error information:

apple:src apple$ lipo -detailed_info ./lib_i386/libpcsclite.1.0.0.dylib ./lib_ppc/libpcsclite.1.0.0.dylib -output ./pcsclib_ub
input file ./lib_i386/libpcsclite.1.0.0.dylib is not a fat file
input file ./lib_ppc/libpcsclite.1.0.0.dylib is not a fat file
Non-fat file: ./lib_i386/libpcsclite.1.0.0.dylib is architecture: i386
Non-fat file: ./lib_ppc/libpcsclite.1.0.0.dylib is architecture: ppc7400


is it the parameter is wrong?



----- Original Message ----
From: Chris Suter <email@hidden>
To: Wang Yongqing <email@hidden>
Cc: xcode-users <email@hidden>
Sent: Monday, June 30, 2008 9:59:30 AM
Subject: Re: How to build Universal Binaries through Open Source code


On 30/06/2008, at 11:51 AM, Wang Yongqing wrote:

> Hello all,
>
> I want to compile the open source library to a universal binary and 
> I do it following the document "Porting UNIX/Linux Application to 
> Mac OS X".
>
> If I only compile the i386 or ppc architecture library, it can 
> success.
>
> But when I run  "./configure" and " make CFLAGS="-isysroot /
> Developer/SDKs/MacOSX10.5u.sdk -arch ppc -arch i386" in the source 
> code to get the universal binaries, it is failed and I get the error 
> information:
[snip]

-E, -S, -save-temps and -M options are not allowed with multiple -arch 
flags.

Your best bet might be to build independent versions for each 
architecture and then use lipo to make a FAT file.

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

  • Follow-Ups:
    • Re: How to build Universal Binaries through Open Source code
      • From: Chris Suter <email@hidden>
  • Prev by Date: Re: How to build Universal Binaries through Open Source code
  • Next by Date: Re: objc_exception_throw
  • Previous by thread: Re: How to build Universal Binaries through Open Source code
  • Next by thread: Re: How to build Universal Binaries through Open Source code
  • Index(es):
    • Date
    • Thread