needed by /usr/local/lib/libcaffe-nv.so, not found

52 views
Skip to first unread message

WinJia Cheng

unread,
May 16, 2018, 2:47:23 AM5/16/18
to Caffe Users

I have a trouble for building caffe, and I have no idea to solve it...
my environment:
ubuntu 1604 + cuDNN 712 + CUDA 9.0 in docker
and using openCV3/ python3.5

Error message:
CXX/LD -o .build_release/tools/caffe.bin
/usr/bin/ld: warning: libboost_system.so.1.55.0, needed by /usr/local/lib/libcaffe-nv.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_thread.so.1.55.0, needed by /usr/local/lib/libcaffe-nv.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libhdf5_hl.so.7, needed by /usr/local/lib/libcaffe-nv.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libhdf5.so.7, needed by /usr/local/lib/libcaffe-nv.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcudart.so.8.0, needed by /usr/local/lib/libcaffe-nv.so, may conflict with libcudart.so.9.0
/usr/bin/ld: warning: libcurand.so.8.0, needed by /usr/local/lib/libcaffe-nv.so, may conflict with libcurand.so.9.0
/usr/bin/ld: warning: libcublas.so.8.0, needed by /usr/local/lib/libcaffe-nv.so, may conflict with libcublas.so.9.0
/usr/bin/ld: warning: libcudnn.so.5, needed by /usr/local/lib/libcaffe-nv.so, may conflict with libcudnn.so.7
/usr/bin/ld: warning: libopencv_core.so.2.4, needed by /usr/local/lib/libcaffe-nv.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_highgui.so.2.4, needed by /usr/local/lib/libcaffe-nv.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_imgproc.so.2.4, needed by /usr/local/lib/libcaffe-nv.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_python-py27.so.1.55.0, needed by /usr/local/lib/libcaffe-nv.so, not found (try using -rpath or -rpath-link)
.build_release/tools/caffe.o: In function `caffe::Caffe::set_mode(caffe::Caffe::Brew) [clone .part.59]':


...
...
...


.build_release/tools/caffe.o:caffe.cpp:(.text.startup+0x3f1): more undefined references to caffe::Caffe::props()' follow /usr/local/lib/libcaffe-nv.so: undefined reference tocv::_OutputArray::_OutputArray(cv::Mat&)'
/usr/local/lib/libcaffe-nv.so: undefined reference to google::base::CheckOpMessageBuilder::NewString()' /usr/local/lib/libcaffe-nv.so: undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)'
/usr/local/lib/libcaffe-nv.so: undefined reference to cv::merge(std::vector<cv::Mat, std::allocator<cv::Mat> > const&, cv::_OutputArray const&)' /usr/local/lib/libcaffe-nv.so: undefined reference tocv::imread(std::string const&, int)'
/usr/local/lib/libcaffe-nv.so: undefined reference to vtable for cv::_OutputArray' /usr/local/lib/libcaffe-nv.so: undefined reference tovtable for cv::_InputArray'
/usr/local/lib/libcaffe-nv.so: undefined reference to cv::split(cv::Mat const&, std::vector<cv::Mat, std::allocator<cv::Mat> >&)' /usr/local/lib/libcaffe-nv.so: undefined reference toleveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)'
/usr/local/lib/libcaffe-nv.so: undefined reference to cv::imencode(std::string const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)' /usr/local/lib/libcaffe-nv.so: undefined reference toleveldb::Status::ToString() const'
collect2: error: ld returned 1 exit status
Makefile:655: recipe for target '.build_release/tools/caffe.bin' failed
make: *** [.build_release/tools/caffe.bin] Error 1

Przemek D

unread,
Aug 20, 2018, 8:38:00 AM8/20/18
to Caffe Users
Looks like you have multiple versions of CUDA installed.
Reply all
Reply to author
Forward
0 new messages