caffe compile error

Created on 5 Jan 2016  路  3Comments  路  Source: BVLC/caffe

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 tocv::imencode(cv::String const&, cv::_InputArray const&, std::vector >&, std::vector > 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_binary.bin] Error 1

my opecv version is 3.0.0 ,and i have a try to Added LIBRARIES += glog gflags protobuf leveldb snappy lmdb boost_system hdf5_hl hdf5 m opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs to Makefile.config

rm -rf ./build

but it have no use

so help !

Most helpful comment

i hava solved it ,make clean,not rm -rf ./build ,and add opencv_imgcodecs to opencv_core opencv_highgui opencv_imgproc in Makefile not Makefile.config ,that worked.

All 3 comments

i hava solved it ,make clean,not rm -rf ./build ,and add opencv_imgcodecs to opencv_core opencv_highgui opencv_imgproc in Makefile not Makefile.config ,that worked.

Glad you solved it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

greatgao picture greatgao  路  3Comments

weather319 picture weather319  路  3Comments

OpenHero picture OpenHero  路  3Comments

inferrna picture inferrna  路  3Comments

lixin7895123 picture lixin7895123  路  3Comments