升压XCode i386

升压XCode i386,xcode,boost,i386,Xcode,Boost,I386,我需要在Boost中使用i386,因为我正在使用另一个SDK。我试着用它来构建Boost ./b2 toolset=darwin architecture=x86 address-model=32 获取32位版本,但它给我一个链接器错误: ld: symbol(s) not found for architecture i386 我也试过使用 port install boost 但只有通过这种方式才能获得x86_64版本的boost 是否有其他方法构建Boost,以便我可以在Xcode中

我需要在Boost中使用i386,因为我正在使用另一个SDK。我试着用它来构建Boost

./b2 toolset=darwin architecture=x86 address-model=32
获取32位版本,但它给我一个链接器错误:

ld: symbol(s) not found for architecture i386
我也试过使用

port install boost
但只有通过这种方式才能获得x86_64版本的boost


是否有其他方法构建Boost,以便我可以在Xcode中使用i386进行编译?

通过编辑位于的macports配置文件,我可以使用macports编译i386版本

/opt/local/etc/macports/macports.conf
并取消这行的注释

build_arch  i386
在那之后,我刚刚打过电话

sudo port install boost
瞧,现在它开始工作了