gpt4 book ai didi

python - 在 Mac 上构建 Boost 和 Exempi

转载 作者:太空宇宙 更新时间:2023-11-03 19:35:00 24 4
gpt4 key购买 nike

为了安装Python XMP Toolkit , 我需要在我的 Mac 上安装 Exempi,但这样做正在成为一场真正的噩梦......


经过一番努力,我终于成功了,并享受了美妙的

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,并引发错误,如安装指南中所报告的:

in case you haven’t installed Exempi you will get an ExempiLoadError exception once you try to load libxmp.

我能做什么?

最佳答案

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

关于python - 在 Mac 上构建 Boost 和 Exempi,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4019243/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com