Re: Using Boost C++ library in Xcode
Re: Using Boost C++ library in Xcode
- Subject: Re: Using Boost C++ library in Xcode
- From: Paul Walmsley <email@hidden>
- Date: Fri, 14 Sep 2007 09:39:02 +0100
I have after receiving a lot of excellent advices here, succeeded in
building the project in Debug, and it runs ok in Debug. Thank you guys!
But I have still problems building with Release configuration. I have
documented every step in creating the project and linking against the
Boost library,
both for Debug and Release configuration here:
http://www.myrvold.org/cpp/boost/boost_regex.html
I would be grateful for anyone pointing out where I have failed.
My guess is that this bit explains the problem:
/usr/bin/ld: warning
/Users/imyrvold/Documents/Tansa/cpp/testprojects/boost_regex/libboost_regex-1_34_1.dylib
cputype (7, architecture i386) does not match cputype (18) for
specified -arch flag: ppc (file not loaded)
You're trying to build a universal binary, but the boost library was
only built as i386. When you run boost's own build script then it will
just build a single architecture. So you either have to build separate
i386 and ppc libraries and then use the lipo tool to make a fat binary,
or just create an xcode library project with all the contents of
boost/libs/regex and link against that -- it's the simplest way of doing
it that handles all the universal binary stuff.
Paul
_______________________________________________
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