.build_release/lib/libcaffe.so:未定义对'boost::p ython::import(boost::p ython::str)'的引用
.build_release/lib/libcaffe.so: undefined reference to `boost::python::import(boost::python::str)'
我在Python2.7和Ubuntu15.10中得到这个错误:
jalal@klein:~/computer_vision/py-faster-rcnn/caffe-fast-rcnn$ make -j8 && make pycaffe
CXX/LD -o .build_release/tools/compute_image_mean.bin
CXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin
CXX/LD -o .build_release/tools/convert_imageset.bin
CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin
CXX/LD -o .build_release/tools/caffe.bin
CXX/LD -o .build_release/tools/extract_features.bin
CXX/LD -o .build_release/tools/upgrade_solver_proto_text.bin
CXX/LD -o .build_release/examples/cpp_classification/classification.bin
/usr/bin/ld: warning: libboost_system.so.1.58.0, needed by .build_release/lib/libcaffe.so, may conflict with libboost_system.so.1.61.0
/usr/bin/ld: warning: libboost_thread.so.1.58.0, needed by .build_release/lib/libcaffe.so, may conflict with libboost_thread.so.1.61.0
.build_release/lib/libcaffe.so: undefined reference to `boost::python::throw_error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::import(boost::python::str)'
.build_release/lib/libcaffe.so: undefined reference to `PyEval_CallFunction'
.build_release/lib/libcaffe.so: undefined reference to `typeinfo for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `PyErr_Print'
我该如何解决这个问题?我已经安装了boost。从https://github.com/rbgirshick/py-faster-rcnn
我已经跑了:
sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev
:
sudo apt-get install libboost-python-dev
从源代码安装Boost为我工作!从官方网站下载Boost源代码后:
sudo ./bootstrap.sh --prefix=/usr/local
./b2
sudo ./b2 install
相关文章:
- 相当于 pybind11 中的 boost::p ython py::scope().attr()
- 传递 boost::p ython::numpy::ndarray 作为 boost::p ython 函数的(默认或非
- boost::p ython:PyErr_Fetch始终返回 NULL 回溯
- 如何通过 boost::p ython 重命名构造函数的关键字参数
- 链接问题 boost::p ython::numpy.
- 在 boost::p ython 中的 python 对象中运行 python 代码
- 你如何在 boost::p ython 中"from __future__ import division"?
- 使用 boost::p ython 将数据缓冲区放入C++中
- 如何返回包含 PyObject* 的 boost::p ython::元组?
- 如何正确访问结构值并将其传递给函数 - boost::p ython
- Boost::P ython,将元组转换为Python有效,矢量<tuple>不
- 如何使用 boost::p ython 创建和使用 Python 对象的实例
- 使用 boost::p ython,如何将结构体向量作为字典列表返回给 Python
- 使用 boost::p ython 从C++创建 python collections.namedtuple
- 如何使用 boost::p ython 从 Python 类型中提取包装的C++类型
- Boost::p ython 静态方法返回类的实例
- boost::p ython 纯虚拟基类,具有静态工厂构造函数和 std::unique_ptr
- 在类中公开公共结构以 boost::p ython
- 如何使用Boost::P ython打印到Python终端
- 如何使用 boost::p ython::迭代器与return_internal_reference