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

How to build Universal Binaries through Open Source code


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

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
make[2]: *** [libpcsclite_la-debug.lo] Error 1
Making all in etc
make[2]: Nothing to be done for `all'.
Making all in doc
Making all in .
make[3]: Nothing to be done for `all-am'.
Making all in example
if gcc -DHAVE_CONFIG_H -I. -I../../../doc/example -I../..   -I../../../src  -I../../../src/PCSC -I../../src/PCSC -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386 -MT pcsc_demo-pcsc_demo.o -MD -MP -MF ".deps/pcsc_demo-pcsc_demo.Tpo" -c -o pcsc_demo-pcsc_demo.o `test -f 'pcsc_demo.c' || echo '../../../doc/example/'`pcsc_demo.c; \
then mv -f ".deps/pcsc_demo-pcsc_demo.Tpo" ".deps/pcsc_demo-pcsc_demo.Po"; else rm -f ".deps/pcsc_demo-pcsc_demo.Tpo"; exit 1; fi
gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[3]: *** [pcsc_demo-pcsc_demo.o] Error 1
make[2]: *** [all-recursive] Error 1
make[2]: Nothing to be done for `all-am'.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
apple:build apple$ 

Any ideas or suggestions I will appreciate!

::yonqging



 _______________________________________________
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: Peter O'Gorman <email@hidden>
    • Re: How to build Universal Binaries through Open Source code
      • From: Chris Suter <email@hidden>
  • Prev by Date: Re: Why no -masm=intel with Darwin GCC?
  • Next by Date: Re: How to build Universal Binaries through Open Source code
  • Previous by thread: Re: Using Xcode as a Python IDE
  • Next by thread: Re: How to build Universal Binaries through Open Source code
  • Index(es):
    • Date
    • Thread