【问题标题】:Build Boost and Exempi on a Mac在 Mac 上构建 Boost 和 Exempi
【发布时间】:2010-10-25 21:59:42
【问题描述】:

为了安装Python XMP Toolkit, 一世 需要在我的 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


我已经用谷歌搜索了几天,但我找不到任何有用的东西...... 以前有人遇到过同样的问题吗?我愿意为伸出援手而死...欢迎每一个提示!



编辑:
我已经用port 成功了,现在它终于写成了exempi @2.1.1_0 (active)
问题是当我尝试加载 XMP 工具包时,它找不到 exempi,并引发错误,如安装指南中所述:

如果您尚未安装 Exempi,则在尝试加载 libxmp 时会收到 ExempiLoadError 异常。

我能做什么?

【问题讨论】:

    标签: python macos boost boost-python


    【解决方案1】:

    我假设您手动安装了 Boost,因为它位于 /usr/local。我可以通过MacPorts 安装 Boost 和 Exempi。

    【讨论】:

    • 是的,我必须手动安装它。可悲的是,我几乎不可能使用 MacPorts,因为我住在一个 400k 共享互联网连接不稳定的岛上......
    【解决方案2】:

    看起来你在构建 boost 时没有构建 boost 测试库。您需要将--with-test 添加到您的bjam 调用中:

    ./bjam --with-test

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-12-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多