在Mac上构建Boost和Exempi
为了在我的Mac上安装Python XMP Toolkit,我需要先安装Exempi,但这真的是一场噩梦...
经过很多麻烦,我终于通过boost成功安装了,真是太棒了。
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/usr/local/boost_1_44_0
The following directory should be added to linker library paths:
/usr/local/boost_1_44_0/stage/lib
现在我正在尝试用命令配置Exempi:
./configure --with-boost=/usr/local/boost_1_44_0/
但它总是卡在这个地方:
checking for Boost headers version >= 1.33.0... /usr/local/boost_1_44_0/
checking for Boost's header version... 1_44
checking for the toolset name used by Boost for g++... gcc40
checking boost/test/unit_test.hpp usability... yes
checking boost/test/unit_test.hpp presence... yes
checking for boost/test/unit_test.hpp... yes
checking for the Boost unit_test_framework library... no
configure: error: Could not find the flags to link with Boost unit_test_framework
我已经在网上搜索了好几天,但找不到任何有用的信息...
有没有人遇到过同样的问题?我非常需要帮助... 任何提示都欢迎!
编辑:
我用port
成功安装了,现在它终于显示exempi @2.1.1_0 (active)
。
问题是,当我尝试加载XMP工具包时,它找不到exempi,并且出现了错误,正如安装指南中所提到的:
如果你没有安装Exempi,当你尝试加载libxmp时,会出现
ExempiLoadError
异常。
我该怎么办?
2 个回答
0
看起来你在构建Boost库的时候,没有同时构建测试库。你需要在运行bjam的时候加上 --with-test
这个选项:
./bjam --with-test
1
我猜你是手动安装了Boost,因为它在/usr/local这个目录下。我是通过MacPorts成功安装了Boost和Exempi的。