c++ - .build_release/lib/libcaffe.so: undefined reference to `boost::python::import(boost::python::str)' -
i error 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 .build_release/lib/libcaffe.so, may conflict libboost_system.so.1.61.0 /usr/bin/ld: warning: libboost_thread.so.1.58.0, needed .build_release/lib/libcaffe.so, may conflict libboost_thread.so.1.61.0 .build_release/lib/libcaffe.so: undefined reference `boost::python::throw_error_already_set()' .build_release/lib/libcaffe.so: undefined reference `boost::python::import(boost::python::str)' .build_release/lib/libcaffe.so: undefined reference `pyeval_callfunction' .build_release/lib/libcaffe.so: undefined reference `typeinfo boost::python::error_already_set' .build_release/lib/libcaffe.so: undefined reference `pyerr_print'
how can fix this? have boost installed. https://github.com/rbgirshick/py-faster-rcnn
i have run:
sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev
and:
sudo apt-get install libboost-python-dev
installing boost source worked me! after downloading boost source code official website:
sudo ./bootstrap.sh --prefix=/usr/local ./b2 sudo ./b2 install
Comments
Post a Comment