Re: Cross-posting from Boost Users: Multi-arch build script for Boost 1.35 for OSX 10.5
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