• 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: Tue, 1 Jul 2008 02:06:11 -0700 (PDT)

Ok, thanks for your advice!

Luckly, the univeral binaries I have got works well. I will try to get the lib through the lipo again.


----- Original Message ----
From: Clark Cox <email@hidden>
To: Wang Yongqing <email@hidden>
Cc: Peter O'Gorman <email@hidden>; xcode-users <email@hidden>
Sent: Tuesday, July 1, 2008 12:25:14 AM
Subject: Re: How to build Universal Binaries through Open Source code

Be very careful that nothing in the configure script is checking for
anything architecture-specific (like endian-ness). You may get bad
results on the architecture "opposite" your build machine's. For this
reason, I always go the route of building separate ppc and intel
versions (so that the configure script can make the correct decisions
for each architecture independently) and lipo-ing them together at the
end.

On Sun, Jun 29, 2008 at 9:18 PM, Wang Yongqing <email@hidden> wrote:
> Hi,
> Yes, It can generate the universal binary according to adding the parameter
> following your advice!
> Thank you!
> Best wishes!
> ::yongqing
>
>
> ----- Original Message ----
> From: Peter O'Gorman <email@hidden>
> To: Wang Yongqing <email@hidden>
> Cc: xcode-users <email@hidden>
> Sent: Monday, June 30, 2008 11:40:39 AM
> Subject: Re: How to build Universal Binaries through Open Source code
>
> 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:
>>
>>  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I../../src/PCSC -I../src/PCSC
>> -fvisibility=hidden -I../../src -isysroot /Developer/SDKs/MacOSX10.5.sdk
>> -arch ppc -arch i386 -DLIBPCSCLITE -isysroot
>> /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386 -MT
>> libpcsclite_la-debug.lo -MD -MP -MF .deps/libpcsclite_la-debug.Tpo -c
>> ../../src/debug.c  -fno-common -DPIC -o .libs/libpcsclite_la-debug.o
>> gcc-4.0: -E, -S, -save-temps and -M options are not allowed with
>> multiple -arch flags
>
> It looks like you did not use the configure option
> '--disable-dependency-tracking'.
>
> Peter
> --
> Peter O'Gorman
> http://pogma.com
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      ( _______________________________________________ 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
  • Prev by Date: Re: objc_exception_throw (solved) (update)
  • Next by Date: Best practices for cross-project development (and version control too?)
  • Previous by thread: Re: objc_exception_throw (solved) (update)
  • Next by thread: Best practices for cross-project development (and version control too?)
  • Index(es):
    • Date
    • Thread