[Boost-users] Building Boost as Universal Binary on Mac OS X

151 views
Skip to first unread message

Thomas Hauk

unread,
Apr 15, 2008, 10:25:19 PM4/15/08
to boost...@lists.boost.org
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

_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Mat Marcus

unread,
Apr 16, 2008, 2:02:31 AM4/16/08
to boost...@lists.boost.org
On Tue, Apr 15, 2008 at 7:25 PM, Thomas Hauk <th...@novuscom.net> wrote:
> 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

Thomas Hauk

unread,
Apr 16, 2008, 3:34:35 PM4/16/08
to boost...@lists.boost.org
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

Reply all
Reply to author
Forward
0 new messages