caffe icon indicating copy to clipboard operation
caffe copied to clipboard

libopencv_highgui.so:undefined reference to `TIFFIsTiled@LIBTIFF_4.0'

Open luyifan opened this issue 11 years ago • 30 comments

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 !!!

luyifan avatar Dec 11 '14 08:12 luyifan

if you install libopencv using apt, install libtiff4 such as sudo apt-get install libtiff4-dev

rndmania avatar Jan 06 '15 05:01 rndmania

@rndmania thx, It solved my problem and I try another way by install opencv not by apt-get

luyifan avatar Jan 10 '15 11:01 luyifan

Can you explain the source of this problem? Opencv conflict with TIFF library or something else?

mrgloom avatar Apr 08 '16 15:04 mrgloom

how did you solve this problem?@luyifan , cause i just met this issue.

Lakung avatar Dec 24 '16 06:12 Lakung

@Lakung , here is the solution: http://www.voidcn.com/blog/cfyzcc/article/p-6253725.html

empty16 avatar Dec 27 '16 03:12 empty16

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 to google::protobuf::MessageLite::SerializeToString(std::_cxx11::basic_string<char, std::char_traits, std::allocator >) const' /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 to TIFFIsTiled@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 to google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' ../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 to TIFFGetField@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 to google::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 to google::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 to TIFFReadRGBATile@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 to TIFFRGBAImageOK@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 to google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const*, google::protobuf::internal::ArenaStringPtr)' ../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 to TIFFOpen@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 to TIFFReadEncodedStrip@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 to TIFFSetField@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 to google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::cxx11::basic_string<char, std::char_traits, std::allocator >)' /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 to TIFFSetErrorHandler@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 to google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' 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 to google::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 to google::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 to TIFFReadRGBAStrip@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 to TIFFWriteScanline@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 to google::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 to TIFFScanlineSize@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 to google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned char*)' /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 to TIFFReadRGBATile@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 to TIFFRGBAImageOK@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 to google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const*, google::protobuf::internal::ArenaStringPtr)' ../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 to TIFFOpen@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 to TIFFReadEncodedStrip@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 to TIFFSetField@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 to google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::_cxx11::basic_string<char, std::char_traits, std::allocator >)' /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 to TIFFSetErrorHandler@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 to google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' 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]: *** [examples/cifar10/convert_cifar_data] Error 1 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 to google::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 to TIFFReadRGBAStrip@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 to TIFFWriteScanline@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 to google::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 to TIFFScanlineSize@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 to google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned char*)' /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 to TIFFReadRGBATile@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 to TIFFRGBAImageOK@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 to google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const*, google::protobuf::internal::ArenaStringPtr)' ../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 to TIFFOpen@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 to TIFFReadEncodedStrip@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 to TIFFSetField@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 to google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)' /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 to TIFFSetErrorHandler@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 to google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' 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]: *** [examples/mnist/convert_mnist_data] Error 1 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 to TIFFIsTiled@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 to google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::_cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream*)' ../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 to TIFFGetField@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 to google::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 to google::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 to TIFFReadRGBATile@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 to TIFFRGBAImageOK@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 to google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const*, google::protobuf::internal::ArenaStringPtr)' ../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 to TIFFOpen@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 to TIFFReadEncodedStrip@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 to TIFFSetField@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 to google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)' /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 to TIFFSetErrorHandler@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 to google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' 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]: *** [tools/upgrade_net_proto_binary] Error 1 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 to TIFFIsTiled@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 function convert_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 to google::protobuf::MessageLite::SerializeToString(std::__cxx11::basic_string<char, std::char_traits, std::allocator >) const' /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 to TIFFIsTiled@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 to google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' ../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 to TIFFGetField@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 to google::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 to TIFFReadEncodedTile@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 to TIFFClose@LIBTIFF_4.0google': :/protobufusr:/:lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: internalundefined reference to TIFFRGBAImageOK@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 to google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const*, google::protobuf::internal::ArenaStringPtr)' .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 to TIFFOpen@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 to TIFFReadEncodedStrip@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 to TIFFSetField@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 to google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::_cxx11::basic_string<char, std::char_traits, std::allocator >)' /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 to TIFFSetErrorHandler@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 to google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream*)' ../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 to TIFFGetField@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 to google::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 to google::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 to TIFFReadRGBATile@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 to TIFFRGBAImageOK@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 to google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const*, google::protobuf::internal::ArenaStringPtr)' ../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 to TIFFOpen@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 to TIFFReadEncodedStrip@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 to TIFFSetField@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 to google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)' /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 to TIFFSetErrorHandler@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 to google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' 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]: *** [tools/upgrade_solver_proto_text] Error 1 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 to google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' 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 to TIFFReadRGBAStrip@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 to TIFFWriteScanline@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 to google::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 to TIFFScanlineSize@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 to google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned char*)' ../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 to TIFFReadEncodedTile@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 to TIFFClose@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 to google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream*)' ../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 to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const' /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 to google::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 to google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void ()(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&))' /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 to google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)' /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 to TIFFSetErrorHandler@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 to google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' 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]: *** [tools/compute_image_mean] Error 1 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 to TIFFIsTiled@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 to google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::_cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream*)' ../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 to TIFFGetField@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 to google::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 to google::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 to TIFFReadRGBATile@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 to TIFFRGBAImageOK@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 to google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const*, google::protobuf::internal::ArenaStringPtr)' ../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 to TIFFOpen@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 to TIFFReadEncodedStrip@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 to TIFFSetField@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 to google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::_cxx11::basic_string<char, std::char_traits, std::allocator >)' /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 to TIFFSetErrorHandler@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 to google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' 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]: *** [tools/upgrade_net_proto_text] Error 1 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 to google::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 to TIFFReadRGBAStrip@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 to TIFFWriteScanline@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 to google::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 to TIFFScanlineSize@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 to google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned char*)' /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 to TIFFReadRGBATile@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 to TIFFRGBAImageOK@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 to google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const*, google::protobuf::internal::ArenaStringPtr)' ../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 to TIFFOpen@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 to TIFFReadEncodedStrip@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 to TIFFSetField@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 to google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)' /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 to TIFFSetErrorHandler@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 to google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' collect2: error: ld returned 1 exit status tools/CMakeFiles/extract_features.dir/build.make:137: recipe for target 'tools/extract_features' failed make[2]: *** [tools/extract_features] Error 1 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 to TIFFIsTiled@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 to google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::_cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream*)' ../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 to TIFFGetField@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 to google::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 to google::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 to TIFFReadRGBATile@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 to TIFFRGBAImageOK@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 to google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const*, google::protobuf::internal::ArenaStringPtr)' ../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 to TIFFOpen@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 to TIFFReadEncodedStrip@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 to TIFFSetField@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 to google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)' /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 to TIFFSetErrorHandler@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 to google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' collect2: error: ld returned 1 exit status examples/CMakeFiles/classification.dir/build.make:137: recipe for target 'examples/cpp_classification/classification' failed make[2]: *** [examples/cpp_classification/classification] Error 1 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 to TIFFIsTiled@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 to google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::_cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream*)' ../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 to TIFFGetField@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 to google::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 to google::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 to TIFFReadRGBATile@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 to TIFFRGBAImageOK@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 to google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const*, google::protobuf::internal::ArenaStringPtr)' ../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 to TIFFOpen@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 to TIFFReadEncodedStrip@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 to TIFFSetField@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 to google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)' /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 to TIFFSetErrorHandler@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 to google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' collect2: error: ld returned 1 exit status 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

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<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream*)' ../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<char, std::char_traits, std::allocator > 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, std::allocator > const&, google::protobuf::io::CodedOutputStream*)' ../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const*, google::protobuf::internal::ArenaStringPtr)' ../lib/libcaffe.so.1.0.0-rc4: undefined reference to google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits, std::allocator > 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::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<char, std::char_traits, std::allocator > 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, std::allocator > const&)' ../lib/libcaffe.so.1.0.0-rc4: undefined reference togoogle::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)' /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<char, std::char_traits, std::allocator > const&, google::protobuf::io::CodedOutputStream)' collect2: error: ld returned 1 exit status 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

jmokoistinen avatar Mar 05 '17 18:03 jmokoistinen

conda uninstall libtiff worked for me

juiceboxjoe avatar Oct 03 '17 17:10 juiceboxjoe

conda uninstall libtiff worked for me too.

tonylt avatar Dec 15 '17 01:12 tonylt

@juiceboxjoe good idea! it works for me. But why it it the problem of conda?

smallflyingpig avatar Jan 05 '18 03:01 smallflyingpig

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

#export PATH="/home/user/anaconda3/bin:$PATH"

Then do a fresh build

at caffe directory

rm -r build mkdir build cd build cmake .. make all make install make runtest

abelguima avatar Feb 11 '18 18:02 abelguima

conda uninstall libtiff works!

shizukanaskytree avatar Mar 22 '18 01:03 shizukanaskytree

I solve this porblem by add sudo sudo su; make all -j16; make test -j16; make runtest -j16; make pycaffe;

suiwei avatar Apr 02 '18 14:04 suiwei

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:

#export PATH="/home/user/anaconda2/bin:$PATH"

LiangXu123 avatar Apr 03 '18 01:04 LiangXu123

@abelguima Thanks your solution worked for me...

YogeshShitole avatar Apr 23 '18 07:04 YogeshShitole

conda uninstall libtiff works!

TonTonTWMAN avatar Apr 25 '18 16:04 TonTonTWMAN

conda uninstall libtiff works for me, too!

shin1919 avatar Jun 04 '18 04:06 shin1919

conda uninstall libtiff works but it removes opencv, how to resolve this error. anybody can help me with this issue?

balajib363 avatar Jun 13 '18 14:06 balajib363

reinstall opencv can solve the problem in my side.

wangqiqi avatar Aug 08 '18 04:08 wangqiqi

@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.

derkbreeze avatar Aug 15 '18 20:08 derkbreeze

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

DNALuo avatar Nov 27 '18 02:11 DNALuo