作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 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
关于python - .build_release/lib/libcaffe.so : undefined reference to `boost::python::import(boost::python::str)' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39112578/
我正在尝试编写一个使用 caffe 的简单 C++ 应用程序。 这是我的 makefile 的一部分: FLAGS := -I/usr/local/cuda/include -I/home/guin
我在尝试使用 cmake 构建 caffe 时遇到了一个问题(尝试使用 cmake,因为 make 不断给我错误,但事实证明 cmake 没有什么更好的......)。以下是错误信息: [ 82%]
我在 Python2.7 和 Ubuntu15.10 上遇到这个错误: jalal@klein:~/computer_vision/py-faster-rcnn/caffe-fast-rcnn$ ma
我一直在尝试在我的 mac OSX 10.9.5 上安装 caffe。我一直在关注 http://caffe.berkeleyvision.org/installation.html#compilat
我是一名优秀的程序员,十分优秀!