• 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: Cross-posting from Boost Users: Multi-arch build script for Boost 1.35 for OSX 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-posting from Boost Users: Multi-arch build script for Boost 1.35 for OSX 10.5


  • Subject: Re: Cross-posting from Boost Users: Multi-arch build script for Boost 1.35 for OSX 10.5
  • From: Paul Walmsley <email@hidden>
  • Date: Mon, 09 Jun 2008 21:28:37 +0100

As an alternative method, I've found it much easier to create an xcode project wrapper for the bits of boost you want, and manually add the cpp files of the appropriate boost/libs directories, then tweak the boost/config/user.hpp file as appropriate. This has the advantage of making it trivial to create universal binaries, static or dynamic libraries, etc without having to use esoteric bjam/makefile incantations.

Paul

William H. Schultz wrote:
I did the same thing, but I did it using a Makefile. Also, my Makefile is easily adaptable to any project that is built with a configure script. I did, however, leave out the lipo stage, as the build output for various projects seems to be too different.


------------------------------- Hank Schultz Cedrus Corporation http://www.cedrus.com/


On Jun 7, 2008, at 3:15 PM, Daniel Lord wrote:

All,

I think not a few of us use the powerful and ever-growing in capability of the Boost LIbraries for C++. That is if we use "impure" Obj-C code by mixing in C++ for some things (like regex for instance) so I thought I'd just mention here that while Boost Build has a problem producing Boost library builds for the multi-arch (quad in particular--32- and 64-bit ppc and x86) static and shared libs, there is a solution.

I have written a shell script to build static and shared libs from various combinations or 32- and 64-bit i386, ppc, ppc64, and x86_64 architectures using lower level bjam calls. It requires use of the 10.5 SDK while the default SDK for the stock Boost build on OS X is 10.4 SDK 10.4 won't build shared 64-bit libs flawlessly.

The script basically builds single-arch libs and stitches them together with lipo. It is no great feat but I figured since I spent the time I'd share to save others the drudgery.
I am sure it could be turned into Xcode build scripts but I haven't found the need yet and so I have not done the work.


Many thanks to the Boost developers who gave me a enough hints on this list to figure it all out.

If there is a wiki where I can post it, I can do that to make access easier.
If someone wants the script in the mean time, let me know.



Daniel

--
"It's not how many years you live--it's how much living you put in the years you have"
-- Sierra Mountain Guides newsletter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden <mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden <mailto:email@hidden>

------------------------------------------------------------------------

 _______________________________________________
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

_______________________________________________ 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
References: 
 >Cross-posting from Boost Users: Multi-arch build script for Boost 1.35 for OSX 10.5 (From: "Daniel Lord" <email@hidden>)
 >Re: Cross-posting from Boost Users: Multi-arch build script for Boost 1.35 for OSX 10.5 (From: "William H. Schultz" <email@hidden>)

  • Prev by Date: Using boost 1.35.0 on Mac OS X with Xcode 3
  • Next by Date: Shark question
  • Previous by thread: Re: Cross-posting from Boost Users: Multi-arch build script for Boost 1.35 for OSX 10.5
  • Next by thread: Interface and Implementation File Placements
  • Index(es):
    • Date
    • Thread