boostorg / boostorg/python

boost numpy3 not compiling on OSX Yosemite using homebrew.

未关闭
#168 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
537
派生
223
平均合并
11 小时 22 分钟
30 天内合并 PR
2

描述

I get the following runtime error:
Symbol not found: _PyClass_Type
Referenced from: /usr/local/opt/boost-python/lib/libboost_python-mt.dylib
Expected in: flat namespace
in /usr/local/opt/boost-python/lib/libboost_python-mt.dylib

built on mac with brew:
brew install boost --c++11
brew install boost-python --with-python3 --c++11

This is very similar to issue #96, but my problem seems to be that the boost_numpy3 libraries are not being built.
In /usr/local/Cellar/boost-python/1.65.1/lib there are the numpy libraries but not the numpy3 libraries.

libboost_numpy-mt.a
libboost_python-mt.a
libboost_python3-mt.a
libboost_numpy-mt.dylib
libboost_python-mt.dylib
libboost_python3-mt.dylib
libboost_numpy.a
libboost_python.a
libboost_python3.a
libboost_numpy.dylib
libboost_python.dylib
libboost_python3.dylib

It looked to me like this issue should have been merged in with the 1.65 release, but maybe I'm missing something.

Thanks for the help

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先,在 macOS Yosemite 上使用 issue 中的两个 Homebrew 命令重现构建,然后检查 /usr/local/Cellar/boost-python/1.65.1/lib 以及相关的 Boost.Python 构建输出。当 Python 3 的 NumPy 库与列出的库一起构建完成,并且报告的 _PyClass_Type 运行时错误不再出现时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp, macos, numpy, python
领域
build-system
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。