Caffe build failed more than once

I am trying to compile OpenPose software on an Ubuntu 14 machine. Installing a script installs Caffe. When installing Caffe, the following error message appears:

CXX tools/upgrade_net_proto_text.cpp
CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin
.build_release/lib/libcaffe.so: undefined reference to `cv::imread(cv::String const&, int)'
.build_release/lib/libcaffe.so: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/upgrade_net_proto_text.bin] Error 1

From here , I tried to run ldconfig, I am using OpenCV 3.2.0, so I uncommented this in the makefile. I also tried to update OpenCV's path ~/.bashrc, but I'm not sure if I did it right. I did:

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

After each of these steps, I ran the script installation again, but with an error with the same error message (shown above) each time.

+4
source share
1 answer

, caffe openCV 3.2.0, , , OpenCV 3.1. , , - , open_contrib, opencv, id , OpenPose

+6

Source: https://habr.com/ru/post/1680164/


All Articles