caffe-segnet icon indicating copy to clipboard operation
caffe-segnet copied to clipboard

opencv v3.1.0

Open AlexTS1980 opened this issue 8 years ago • 1 comments

you have the same issue as CRF-RNN: opencv v3 is not recognized. I solved the problem in the same way, by changing the Makefile:

https://github.com/torrvision/crfasrnn/issues/51

This should be useful

AlexTS1980 avatar Jun 25 '16 22:06 AlexTS1980

Hi, I am compling caffe-segnet on ubuntu 16.4. When i run make all command i get following error "(cv) yonatan@CECS4RMHRD2:~/Downloads/caffe-segnet-segnet-cleaned$ make all CXX/LD -o .build_release/tools/upgrade_net_proto_binary.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 >&, std::vector<int, std::allocator > const&)' .build_release/lib/libcaffe.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)' collect2: error: ld returned 1 exit status Makefile:570: recipe for target '.build_release/tools/upgrade_net_proto_binary.bin' failed make: *** [.build_release/tools/upgrade_net_proto_binary.bin] Error 1"

I am using caffe-segnet default Makefile.config file with following changes. addition:

Uncomment if you're using OpenCV 3

OPENCV_VERSION := 3

addition: LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5
opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs but still i get errors. I have removed these options but still same error. Any help?

sajjo79 avatar Mar 21 '17 19:03 sajjo79