在 Mac 上构建 Boost 和 Exempi
为了安装 Python XMP 工具包, 我 需要在我的 Mac 上安装 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
我已经google了几天了,但没有找到任何有用的东西...... 以前有人遇到过同样的问题吗?我愿意为援助之手而死……欢迎每一个提示!
编辑:
我已经使用 port
完成了它,现在它终于显示 exempi @2.1.1_0 (active)
。
问题是,当我尝试加载 XMP 工具包时,它找不到 exempi,并引发错误,如安装指南中所报告的:
如果您尚未安装 Exempi,则在尝试加载 libxmp 时将收到
ExempiLoadError
异常。
我能做些什么?
In order to install Python XMP Toolkit,
I
need to install Exempi on my Mac, but doing this is becoming a real nightmare...
After a lot of trouble, i finally made it with boost, and had the fantastic
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
Right now I'm trying to configure Exempi, with the command
./configure --with-boost=/usr/local/boost_1_44_0/
but it always get stuck on this:
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
I've been googlin for a couple of days, but I couldn't find anything useful...
Anyone had the same problem before? I would die for a helping hand... every hint is welcome!
EDIT:
I've made it with port
and now it finally says exempi @2.1.1_0 (active)
.
The problem is that when I try to load the XMP toolkit, it doesn't find exempi, and raises an error, as reported on the installation guide:
in case you haven’t installed Exempi you will get an
ExempiLoadError
exception once you try to load libxmp.
What can I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我假设您手动安装了 Boost,因为它位于 /usr/local 中。我可以通过 MacPorts 安装 Boost 和 Exempi。
I'm assuming that you installed Boost manually, given that it's in /usr/local. I was able to install both Boost and Exempi through MacPorts.
看起来你在构建boost时没有构建boost测试库。您需要将
--with-test
添加到您的bjam
调用中:./bjam --with-test
Looks like you didn't build the boost test library when you built boost. You need to add
--with-test
to yourbjam
invokation:./bjam --with-test