• 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
Cross compiling on the command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cross compiling on the command line


  • Subject: Cross compiling on the command line
  • From: Markus Hitter <email@hidden>
  • Date: Sun, 9 Nov 2003 10:35:27 +0100

Hello all,

just thought I'd share my experiences with cross compiling on the command line. As you know, there are tons of packages using "configure" and "make" and usually they compile out of the box. Personally, I don't use Fink or Darwinports because I have my own idea of where to place the results ...

OK, so here is how to compile them on Panther (10.3) and make them work on Puma (10.1). Of course, you need to have XCode and the 10.1 cross-SDK installed.

    export MACOSX_DEPLOYMENT_TARGET=10.1
    export NEXT_ROOT=/Developer/SDKs/MacOSX10.1.5.sdk
    CFLAGS="-I/Developer/SDKs/MacOSX10.1.5.sdk/usr/include -O2" \
        LDFLAGS="-L/Developer/SDKs/MacOSX10.1.5.sdk/usr/lib/" \
        ./configure
    make
    sudo make install


Sucessfully built two packages this way already and the results passed all tests ... Thanks a lot to the XCode team to make this possible.



Have fun, Markus _______________________________________________ xcode-users mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users Do not post admin requests to the list. They will be ignored.

References: 
 >Tips on using Nibs in Carbon (From: Brian Barnes <email@hidden>)

  • Prev by Date: Tips on using Nibs in Carbon
  • Next by Date: Re: Collections Suggestions
  • Previous by thread: Tips on using Nibs in Carbon
  • Next by thread: Re: Tips on using Nibs in Carbon
  • Index(es):
    • Date
    • Thread