Today I use caffe and use the command make all
And then It have some errors.
The errors are as follow:g++ .build_debug/tools/compute_image_mean.o .build_debug/lib/libcaffe.a -o .build_debug/tools/compute_image_mean.bin -fPIC -DDEBUG -g -O0 -I/root/anaconda/include -I/root/anaconda/include/python2.7 -I/root/anaconda/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I.build_debug/src -I./src -I./include -I/usr/local/cuda/include -Wall -Wno-sign-compare -L/root/anaconda/lib -L/usr/local/lib -L/usr/lib -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib -lcudart -lcublas -lcurand -lglog -lgflags -lprotobuf -lleveldb -lsnappy -llmdb -lboost_system -lhdf5_hl -lhdf5 -lopencv_core -lopencv_highgui -lopencv_imgproc -lpthread -lboost_thread -lcblas -latlas
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to TIFFIsTiled@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference toTIFFOpen@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to TIFFReadEncodedStrip@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference toTIFFSetField@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to TIFFWriteScanline@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference toTIFFGetField@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to TIFFScanlineSize@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference toTIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to TIFFSetErrorHandler@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference toTIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to TIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference toTIFFClose@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to TIFFRGBAImageOK@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference toTIFFReadRGBAStrip@LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
make: *** [.build_debug/tools/compute_image_mean.bin] Error 1
I use the ubuntu 14.04 LTS Desktop
and nvidia qudaro K4000
And I don't know how to solve this problem,
Could someone help me? Thanks a lot !!!
if you install libopencv using apt, install libtiff4 such as
sudo apt-get install libtiff4-dev
@rndmania thx, It solved my problem and I try another way by install opencv not by apt-get
Can you explain the source of this problem? Opencv conflict with TIFF library or something else?
how did you solve this problem?@luyifan , cause i just met this issue.
@Lakung , here is the solution: http://www.voidcn.com/blog/cfyzcc/article/p-6253725.html
rndmania: there is no libtiff4 available in current ubuntu 16.04 only libtiff5, I have 4.07 compiled from source but don't know where to set it so the compiler knows where it is (http://stackoverflow.com/questions/29272497/linking-error-with-libopencv-highgui-so-under-ubuntu-14-04-strange-result-wit) so where to put the -L/directoryof file -ltiff
empty16: make all -j16 did not solve the problem for me: It goes bit further though?
Below also the details for cmake and make all without any other parameters.
By the way I have ubuntu 16.04 OS,
Or any other possibilities?
make all -j16
[ 1%] Built target proto
[ 81%] Built target caffe
[ 83%] Linking CXX executable compute_image_mean
[ 83%] Built target device_query
[ 83%] Linking CXX executable mnist/convert_mnist_data
[ 84%] Linking CXX executable siamese/convert_mnist_siamese_data
[ 84%] Linking CXX executable cifar10/convert_cifar_data
[ 84%] Linking CXX executable convert_imageset
[ 86%] Linking CXX executable upgrade_net_proto_text
[ 86%] Linking CXX executable extract_features
[ 86%] Linking CXX executable upgrade_net_proto_binary
[ 87%] Linking CXX executable upgrade_solver_proto_text
[ 88%] Built target test_net
[ 90%] Built target net_speed_benchmark
[ 90%] Linking CXX executable cpp_classification/classification
[ 90%] Built target train_net
[ 90%] Linking CXX executable caffe
[ 91%] Built target finetune_net
[ 93%] Built target pycaffe
CMakeFiles/convert_imageset.dir/convert_imageset.cpp.o: In function main':
convert_imageset.cpp:(.text.startup+0x1365): undefined reference togoogle::protobuf::MessageLite::SerializeToString(std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFWriteScanline@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::GetTypeName[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFScanlineSize@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::InitializationErrorStringabi:cxx11 const'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::empty_string_[abi:cxx11]'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::DebugString[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetField@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetErrorHandler@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::NameOfEnum[abi:cxx11](google::protobuf::EnumDescriptor const*, int)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string
collect2: error: ld returned 1 exit status
tools/CMakeFiles/convert_imageset.dir/build.make:137: recipe for target 'tools/convert_imageset' failed
make[2]: * [tools/convert_imageset] Error 1
CMakeFiles/Makefile2:739: recipe for target 'tools/CMakeFiles/convert_imageset.dir/all' failed
make[1]: [tools/CMakeFiles/convert_imageset.dir/all] Error 2
make[1]: Waiting for unfinished jobs....
CMakeFiles/convert_cifar_data.dir/cifar10/convert_cifar_data.cpp.o: In function convert_dataset(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
convert_cifar_data.cpp:(.text+0xc0f): undefined reference togoogle::protobuf::internal::empty_string_[abi:cxx11]'
convert_cifar_data.cpp:(.text+0xc6e): undefined reference to google::protobuf::MessageLite::SerializeToString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const'
convert_cifar_data.cpp:(.text+0x1aa7): undefined reference togoogle::protobuf::internal::empty_string_[abi:cxx11]'
convert_cifar_data.cpp:(.text+0x1b03): undefined reference to google::protobuf::MessageLite::SerializeToString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFWriteScanline@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::GetTypeNameabi:cxx11 const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFScanlineSize@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::InitializationErrorString[abi:cxx11]() const'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::DebugString[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetField@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetErrorHandler@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::NameOfEnum[abi:cxx11](google::protobuf::EnumDescriptor const*, int)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string
collect2: error: ld returned 1 exit status
examples/CMakeFiles/convert_cifar_data.dir/build.make:137: recipe for target 'examples/cifar10/convert_cifar_data' failed
make[2]: *
CMakeFiles/Makefile2:915: recipe for target 'examples/CMakeFiles/convert_cifar_data.dir/all' failed
make[1]: [examples/CMakeFiles/convert_cifar_data.dir/all] Error 2
CMakeFiles/convert_mnist_data.dir/mnist/convert_mnist_data.cpp.o: In function convert_dataset(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
convert_mnist_data.cpp:(.text+0x761): undefined reference togoogle::protobuf::internal::empty_string_[abi:cxx11]'
convert_mnist_data.cpp:(.text+0xb0b): undefined reference to google::protobuf::MessageLite::SerializeToString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFWriteScanline@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::GetTypeNameabi:cxx11 const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFScanlineSize@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::InitializationErrorString[abi:cxx11]() const'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::DebugString[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetField@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetErrorHandler@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::NameOfEnum[abi:cxx11](google::protobuf::EnumDescriptor const*, int)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string
collect2: error: ld returned 1 exit status
examples/CMakeFiles/convert_mnist_data.dir/build.make:137: recipe for target 'examples/mnist/convert_mnist_data' failed
make[2]: *
CMakeFiles/Makefile2:1029: recipe for target 'examples/CMakeFiles/convert_mnist_data.dir/all' failed
make[1]: [examples/CMakeFiles/convert_mnist_data.dir/all] Error 2
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFWriteScanline@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::GetTypeName[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFScanlineSize@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::InitializationErrorStringabi:cxx11 const'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::empty_string_[abi:cxx11]'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::DebugString[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetField@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetErrorHandler@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::NameOfEnum[abi:cxx11](google::protobuf::EnumDescriptor const*, int)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string
collect2: error: ld returned 1 exit status
tools/CMakeFiles/upgrade_net_proto_binary.dir/build.make:137: recipe for target 'tools/upgrade_net_proto_binary' failed
make[2]: *
CMakeFiles/Makefile2:777: recipe for target 'tools/CMakeFiles/upgrade_net_proto_binary.dir/all' failed
make[1]: [tools/CMakeFiles/upgrade_net_proto_binary.dir/all] Error 2
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFWriteScanline@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefinedCMakeFiles/convert_mnist_siamese_data.dir/siamese/convert_mnist_siamese_data.cpp.o: In functionconvert_dataset(char const, char const, char const)':
convert_mnist_siamese_data.cpp:(.text+0x7cf): undefined reference to google::protobuf::internal::empty_string_[abi:cxx11]'
convert_mnist_siamese_data.cpp:(.text+0x844): undefined reference togoogle::protobuf::MessageLite::SerializeToString(std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFWriteScanline@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::GetTypeName[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFScanlineSize@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::InitializationErrorStringreferenceabi:cxx11 const'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*)'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0google':
:/protobufusr:/:lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: internalundefined reference toTIFFRGBAImageOK@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to: google:::protobuf::internal::WireFormatLiteWireFormatLite::::WriteBytesMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string
.WriteStringMaybeAliased(./lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::intchar_traits<char>,, std::allocator<char> > const&) const'
/usr/lib /x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::DebugString[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(charstd const*, void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetField@LIBTIFF_4.0:'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/x86_64-:linux-gnu/__cxx11libopencv_highgui.so.2.4.9:: undefined reference toTIFFSetErrorHandler@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::NameOfEnum[abi:cxx11]:(google::protobuf::EnumDescriptor const*, int)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string
basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::GetTypeName[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/collect2: error: ld returned 1 exit status
libopencv_highgui.so.2.4.9: undefined reference toTIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFScanlineSize@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::InitializationErrorStringabi:cxx11 const'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<charexamples/CMakeFiles/convert_mnist_siamese_data.dir/build.make:137: recipe for target 'examples/siamese/convert_mnist_siamese_data' failed
make[2]: *** [examples/siamese/convert_mnist_siamese_data] Error 1
CMakeFiles/Makefile2:953: recipe for target 'examples/CMakeFiles/convert_mnist_siamese_data.dir/all' failed
make[1]: *** [examples/CMakeFiles/convert_mnist_siamese_data.dir/all] Error 2
, std::char_traits<char>, std::allocator<char> > const&, unsigned char*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::empty_string_[abi:cxx11]'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::DebugString[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetField@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetErrorHandler@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::NameOfEnum[abi:cxx11](google::protobuf::EnumDescriptor const*, int)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string
collect2: error: ld returned 1 exit status
tools/CMakeFiles/upgrade_solver_proto_text.dir/build.make:137: recipe for target 'tools/upgrade_solver_proto_text' failed
make[2]:
CMakeFiles/Makefile2:663: recipe for target 'tools/CMakeFiles/upgrade_solver_proto_text.dir/all' failed
make[1]: [tools/CMakeFiles/upgrade_solver_proto_text.dir/all] Error 2
CMakeFiles/compute_image_mean.dir/compute_image_mean.cpp.o: In function main':
compute_image_mean.cpp:(.text.startup+0x309): undefined reference togoogle::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string
compute_image_mean.cpp:(.text.startup+0x49b): undefined reference to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFWriteScanline@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::GetTypeNameabi:cxx11 const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFScanlineSize@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::InitializationErrorString[abi:cxx11]() const'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::empty_string_[abi:cxx11]'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFRGBAImageOK@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const*, google::protobuf::internal::ArenaStringPtr)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::DebugStringabi:cxx11 const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedStrip@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const, void ()(std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetField@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetErrorHandler@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::NameOfEnum[abi:cxx11](google::protobuf::EnumDescriptor const*, int)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string
collect2: error: ld returned 1 exit status
tools/CMakeFiles/compute_image_mean.dir/build.make:137: recipe for target 'tools/compute_image_mean' failed
make[2]: *
CMakeFiles/Makefile2:701: recipe for target 'tools/CMakeFiles/compute_image_mean.dir/all' failed
make[1]: [tools/CMakeFiles/compute_image_mean.dir/all] Error 2
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFWriteScanline@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::GetTypeName[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFScanlineSize@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::InitializationErrorStringabi:cxx11 const'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::empty_string_[abi:cxx11]'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::DebugString[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetField@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetErrorHandler@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::NameOfEnum[abi:cxx11](google::protobuf::EnumDescriptor const*, int)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string
collect2: error: ld returned 1 exit status
tools/CMakeFiles/upgrade_net_proto_text.dir/build.make:137: recipe for target 'tools/upgrade_net_proto_text' failed
make[2]: *
CMakeFiles/Makefile2:815: recipe for target 'tools/CMakeFiles/upgrade_net_proto_text.dir/all' failed
make[1]: [tools/CMakeFiles/upgrade_net_proto_text.dir/all] Error 2
CMakeFiles/extract_features.dir/extract_features.cpp.o: In function int feature_extraction_pipeline<float>(int, char**)':
extract_features.cpp:(.text._Z27feature_extraction_pipelineIfEiiPPc[_Z27feature_extraction_pipelineIfEiiPPc]+0xc4e): undefined reference togoogle::protobuf::internal::empty_string_[abi:cxx11]'
extract_features.cpp:(.text._Z27feature_extraction_pipelineIfEiiPPc[_Z27feature_extraction_pipelineIfEiiPPc]+0x1474): undefined reference to google::protobuf::MessageLite::SerializeToString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFWriteScanline@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::GetTypeNameabi:cxx11 const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFScanlineSize@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::InitializationErrorString[abi:cxx11]() const'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::DebugString[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetField@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetErrorHandler@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::NameOfEnum[abi:cxx11](google::protobuf::EnumDescriptor const*, int)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string
collect2: error: ld returned 1 exit status
tools/CMakeFiles/extract_features.dir/build.make:137: recipe for target 'tools/extract_features' failed
make[2]: *
CMakeFiles/Makefile2:853: recipe for target 'tools/CMakeFiles/extract_features.dir/all' failed
make[1]: [tools/CMakeFiles/extract_features.dir/all] Error 2
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFWriteScanline@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::GetTypeName[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFScanlineSize@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::InitializationErrorStringabi:cxx11 const'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::empty_string_[abi:cxx11]'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::DebugString[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetField@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetErrorHandler@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::NameOfEnum[abi:cxx11](google::protobuf::EnumDescriptor const*, int)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string
collect2: error: ld returned 1 exit status
examples/CMakeFiles/classification.dir/build.make:137: recipe for target 'examples/cpp_classification/classification' failed
make[2]: *
CMakeFiles/Makefile2:991: recipe for target 'examples/CMakeFiles/classification.dir/all' failed
make[1]: [examples/CMakeFiles/classification.dir/all] Error 2
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBAStrip@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFWriteScanline@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::GetTypeName[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFScanlineSize@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::InitializationErrorStringabi:cxx11 const'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::empty_string_[abi:cxx11]'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFOpen@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::DebugString[abi:cxx11]() const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetField@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetErrorHandler@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::NameOfEnum[abi:cxx11](google::protobuf::EnumDescriptor const*, int)'
../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string
collect2: error: ld returned 1 exit status
tools/CMakeFiles/caffe.bin.dir/build.make:137: recipe for target 'tools/caffe' failed
make[2]: *
CMakeFiles/Makefile2:587: recipe for target 'tools/CMakeFiles/caffe.bin.dir/all' failed
make[1]: [tools/CMakeFiles/caffe.bin.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: * [all] Error 2
cmake ..
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- Found gflags (include: /home/machineo/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found glog (include: /home/machineo/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
-- Found PROTOBUF Compiler: /home/machineo/anaconda3/bin/protoc
-- Found lmdb (include: /home/machineo/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so)
-- Found LevelDB (include: /home/machineo/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)
-- Found Snappy (include: /home/machineo/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so)
-- CUDA detected: 8.0
-- Found cuDNN: ver. 5.1.5 found (include: /usr/local/cuda-8.0/include, library: /usr/local/cuda-8.0/lib64/libcudnn.so)
-- Automatic GPU detection failed. Building for all known architectures.
-- Added CUDA NVCC flags for: sm_20 sm_21 sm_30 sm_35 sm_50 sm_60 sm_61
-- OpenCV found (/usr/share/OpenCV)
-- Found Atlas (include: /home/machineo/include, library: /usr/lib/libatlas.so)
-- NumPy ver. 1.12.0 found (include: /usr/local/lib/python2.7/dist-packages/numpy/core/include)
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- python
-- Detected Doxygen OUTPUT_DIRECTORY: ./doxygen/
-- ***** Caffe Configuration Summary *****
-- General:
-- Version : 1.0.0-rc4
-- Git : rc4-12-g39f28e4-dirty
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- Release CXX flags : -O3 -DNDEBUG -D_FORCE_INLINES -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
-- Debug CXX flags : -g -D_FORCE_INLINES -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
-- Build type : Release
-- BUILD_SHARED_LIBS : ON
-- BUILD_python : ON
-- BUILD_matlab : OFF
-- BUILD_docs : ON
-- CPU_ONLY : OFF
-- USE_OPENCV : ON
-- USE_LEVELDB : ON
-- USE_LMDB : ON
-- USE_NCCL : OFF
-- ALLOW_LMDB_NOLOCK : OFF
-- Dependencies:
-- BLAS : Yes (Atlas)
-- Boost : Yes (ver. 1.58)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 3.0.0)
-- lmdb : Yes (ver. 0.9.17)
-- LevelDB : Yes (ver. 1.18)
-- Snappy : Yes (ver. 1.1.3)
-- OpenCV : Yes (ver. 2.4.9.1)
-- CUDA : Yes (ver. 8.0)
-- NVIDIA CUDA:
-- Target GPU(s) : Auto
-- GPU arch(s) : sm_20 sm_21 sm_30 sm_35 sm_50 sm_60 sm_61
-- cuDNN : Yes (ver. 5.1.5)
-- Python:
-- Interpreter : /usr/bin/python2.7 (ver. 2.7.12)
-- Libraries : /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.12)
-- NumPy : /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.12.0)
-- Documentaion:
-- Doxygen : /usr/bin/doxygen (1.8.11)
-- config_file : /home/machineo/progs/caffe/.Doxyfile
-- Install:
-- Install path : /home/machineo/progs/caffe/build/install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/machineo/progs/caffe/build
make all
[ 1%] Built target proto
[ 81%] Built target caffe
[ 81%] Built target train_net
[ 83%] Built target finetune_net
[ 84%] Built target net_speed_benchmark
[ 86%] Built target test_net
[ 86%] Linking CXX executable caffe
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBAStrip@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFIsTiled@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFWriteScanline@LIBTIFF_4.0' ../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::_cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::GetTypeNameabi:cxx11 const' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFGetField@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFScanlineSize@LIBTIFF_4.0' ../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::Message::InitializationErrorStringabi:cxx11 const'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedTile@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::Message::DebugStringabi:cxx11 const' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0'
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const, void ()(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string
../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::internal::NameOfEnumabi:cxx11' ../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string
tools/CMakeFiles/caffe.bin.dir/build.make:137: recipe for target 'tools/caffe' failed
make[2]: [tools/caffe] Error 1
CMakeFiles/Makefile2:587: recipe for target 'tools/CMakeFiles/caffe.bin.dir/all' failed
make[1]: [tools/CMakeFiles/caffe.bin.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: ** [all] Error 2
conda uninstall libtiff worked for me
conda uninstall libtiff worked for me too.
@juiceboxjoe good idea! it works for me. But why it it the problem of conda?
I have a solution from here: https://github.com/lagadic/visp/issues/109
These errors may appear after installation of anaconda.
If you follow the default anaconda installation, you can see that anaconda has a set of libraries in ~/anaconda3/lib like libtiff.so, libjpeg.so, libxml2.so ... that are also installed in /usr/lib but with other versions. The result is that the corresponding system libraries in /usr/lib/x86_64-linux-gnu may be hidden by files in ~/anaconda3/lib.
The solution I found to be able to build caffe with OpenCV is to remove anaconda3/bin folder from PATH.
< export PATH="/home/user/anaconda3/bin:$PATH"
editing ~/.bashrc and commenting
Then do a fresh build
at caffe directory
rm -r build
mkdir build
cd build
cmake ..
make all
make install
make runtest
conda uninstall libtiff works!
I solve this porblem by add sudo
sudo suï¼›
make all -j16ï¼›
make test -j16ï¼›
make runtest -j16ï¼›
make pycaffeï¼›
after you have install anaconda, in your .bashrc you should have added this line:
export PATH="/home/user/anaconda2/bin:$PATH"
before you make -j8 ,you should comment this line first:
@abelguima Thanks your solution worked for me...
conda uninstall libtiff works!
conda uninstall libtiff works for me, too!
conda uninstall libtiff works
but it removes opencv, how to resolve this error.
anybody can help me with this issue?
reinstall opencv can solve the problem in my side.
@BalajiB197
You can remove the
export PATH=/home/lishuai/anaconda3/bin:$PATH and
export LD_LIBRARY_PATH=/home/lishuai/anaconda3/lib:$LD_LIBRARY_PATH in your bashrc file and open another terminal to compile, it should work.
rndmania: there is no libtiff4 available in current ubuntu 16.04 only libtiff5.
conda uninstall libtiff does not work for me.
Because in my system Ubuntu16.04, libtiff5 is default. So I justsudo apt-get remove libtiff5-dev
And conda install -c menpo opencv3
I'm looking at a similar problem, and thought I'd chime in.
There is no libtiff5. libtiff.so.5 is the libtiff 4.X ABI. They had to jump an ABI number because of a mistake in an earlier version.
I'm seeing this exact same problem; Cmake is building against the system libtiff.so.5, but is linking against anaconda's libtiff.so.5. The ABI versions aren't that different, but the symbols in the system version include a suffix of @@LIBTIFF_4.0, and the anaconda version doesn't.
Bump?
@rndmania thx, It solved my problem and I try another way by install opencv not by apt-get
by what?
I solved the problem by manually compiling libtiff and setting CMAKE_PREFIX_PATH, which makes caffe and opencv link to the same libtiff. I think this is a better way without side effects.
The error of undefined reference to TIFFxxxxxx comes from the following fact:
Opencv links to the libtiff found by cmake. By default, cmake only searches on the standard library path, e.g., /usr/local/lib/, by find_package() in /usr/local/share/cmake-xx/Modules/FindTIFF.cmake. If libtiff was not found there, opencv will compile it on the fly from its distribution /path/to/opencv_source_code/3rdparty/libtiff/.
While, caffe links to the libtiff pre-compiled by anaconda, located in $HOME/anaconda3/lib/
So, caffe and opencv link to different versions of libtiff.
The way is to make opencv and caffe link to the same libtiff.
Step 1: manually compile the libtiff
wget http://download.osgeo.org/libtiff/tiff-4.0.10.tar.gz
tar -zxvf tiff-4.0.10.tar.gz && cd tiff-4.0.10
./configure --prefix=/path/to/libtiff/
make
make install (**Note**: no `sudo` since most people have no `root` privilege)
This will install libtiff into /path/to/libtiff/ in your home directory.
Step 2: recompile opencv with the newly installed libtiff
cd /path/to/opencv_source_code/
mkdir release && cd release
cmake -DCMAKE_PREFIX_PATH=/path/to/libtiff/ -DBUILD_LIST=core,highgui,improc,python3 -DCMAKE_INSTALL_PREFIX=$(python -c "import sys; print(sys.prefix)") -DPYTHON3_EXECUTABLE=$(which python) -DPYTHON3_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -DPYTHON3_PACKAGES_PATH=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") ..
(you can choose other modules)
make
make install (**Note**: no `sudo`)
The critical in step 2 is that set CMAKE_PREFIX_PATH to force cmake to follow the newly installed libtiff.
PYTHON3_EXECUTABLE, PYTHON3_INCLUDE_DIR, and PYTHON3_PACKAGES_PATH point to the anaconda python.
I only choose four modules of opencv, core,highgui,improc,python3, by setting BUILD_LIST, which is enough for caffe.
Step 3: recompile caffe with the newly installed libtiff
cd /path/to/caffe
vim Makefile.config
In Makefile.config, modify:
INCLUDE_DIRS := /path/to/libtiff/include $(PYTHON_INCLUDE) /usr/local/include
LIBRARY_DIRS := /path/to/libtiff/lib $(PYTHON_LIB) /usr/local/lib /usr/lib
This will force caffe to use the newly installed libtiff. Then,
make all
conda install --channel https://conda.anaconda.org/menpo opencv3
works for me
@DNALuo
sudo apt-get remove libtiff5-dev (This step is very important)
conda install -c menpo opencv3
````
works for me
For ubuntu 16.04 users, libtiff4 is unavailable and libtiff5 is the default.
You can use the following commands to validate
sudo updatedb
locate libtiff
```
conda uninstall libtiff worked for me too.
wow,the line solve my many questions!!!
rndmania: there is no libtiff4 available in current ubuntu 16.04 only libtiff5.
conda uninstall libtiffdoes not work for me.Because in my system Ubuntu16.04, libtiff5 is default. So I just
sudo apt-get remove libtiff5-dev
Andconda install -c menpo opencv3
I noticed that there are some conflict with conda
so
sudo apt-get remove libtiff5-dev
works for me
Most helpful comment
conda uninstall libtiff worked for me