Building Boost as Universal Binary on Mac OS X

I would like to build 1.35.0 Boost libs (especially date_time, filesystem, regex, system, and thread) on my G5 as Universal Binaries with bjam 3.1.16, so I can use them in a project with Xcode on both my G5 and my Intel-based MacBook Pro. (I was surprised they did not build that way by default). The command I used was: $> bjam --toolset=darwin --build-type=complete --with-thread --with- date_time --with-filesystem --with-regex --with-system I know they're just built PPC because I used the `file` command, e.g.: $> file libboost_system-mt-d-1_35.dylib libboost_system-mt-d-1_35.dylib: Mach-O dynamically linked shared library ppc Can anyone help? TIA, T -- "It's a very sobering feeling to be up in space and realise that one's safety factor was determined by the lowest bidder on a government contract.'' -- Alan Shepherd

On Tue, Apr 15, 2008 at 7:25 PM, Thomas Hauk
I would like to build 1.35.0 Boost libs (especially date_time, filesystem, regex, system, and thread) on my G5 as Universal Binaries with bjam 3.1.16, so I can use them in a project with Xcode on both my G5 and my Intel-based MacBook Pro. (I was surprised they did not build that way by default). The command I used was:
$> bjam --toolset=darwin --build-type=complete --with-thread --with- date_time --with-filesystem --with-regex --with-system
I know they're just built PPC because I used the `file` command, e.g.:
$> file libboost_system-mt-d-1_35.dylib libboost_system-mt-d-1_35.dylib: Mach-O dynamically linked shared library ppc
Can anyone help?
Try adding architecture=combined to the end of your command line. - Mat

On Apr 15, 2008, at 11:02 PM, Mat Marcus wrote:
Try adding architecture=combined to the end of your command line.
Worked like a charm... thank you very much! T -- "We've heard that a million monkeys at a million typewriters could produce the complete works of Shakespeare. Now, thanks to the Internet, we know this is not true." -- Robert Wilensky
participants (2)
-
Mat Marcus
-
Thomas Hauk