opencv configure using cmake::error [closed]
when i am compiling cmake to my ubuntu i face this issue
/usr/bin/ld: warning: libprotobuf.so.15, needed by ../../lib/libopencv_dnn.so.3.1.0, not found (try using -rpath or -rpath-link)
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::RegisterAllTypes(google::protobuf::Metadata const*, int)'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::io::CodedInputStream::Refresh()'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::WriteUInt32(int, unsigned int, google::protobuf::io::CodedOutputStream*)'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*)'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::Arena::OnArenaAllocation(std::type_info const*, unsigned long) const'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::WriteEnum(int, int, google::protobuf::io::CodedOutputStream*)'
../../lib/libopencv_dnn.so.3.1.0: 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/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::io::CodedInputStream::ReadVarintSizeAsIntFallback()'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `vtable for google::protobuf::io::IstreamInputStream'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::InitProtobufDefaults()'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::WriteInt32(int, int, google::protobuf::io::CodedOutputStream*)'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::Message::CheckTypeAndMergeFrom(google::protobuf::MessageLite const&)'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::io::CodedInputStream::ReadVarint64Fallback()'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::GoogleOnceInitImpl(long*, google::protobuf::Closure*)'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::io::CodedInputStream::ReadTagFallback(unsigned int)'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::UInt32Size(google::protobuf::RepeatedField<unsigned int> const&)'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `typeinfo for google::protobuf::Closure'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::RepeatedField<long> const& google::protobuf::Reflection::GetRepeatedField<long>(google::protobuf::Message const&, google::protobuf::FieldDescriptor const*) const'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::fixed_address_empty_string[abi:cxx11]'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::Message::GetTypeName[abi:cxx11]() const'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::io::CodedOutputStream::WriteVarint32SlowPath(unsigned int)'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::io::CodedOutputStream::WriteVarint64SlowPath(unsigned long)'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::ArenaImpl::AllocateAlignedAndAddCleanup(unsigned long, void (*)(void*))'
../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::Message::InitializationErrorString ...
please do not try with outdated 3.1.0, but checkout latest master branch from https://github.com/opencv/opencv
thank u so much .....pblm solved....
one more think....after configure this i run my python profram using spyder again it shows error like follows
: /opt/conda/conda-bld/opencv_1491943704081/work/opencv-3.1.0/modules/highgui/src/window.cpp:545: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvShowImage
any solution for this?
you either did not install gtk before running cmake, or it did not find it
i already have that ....but dono y its shows this type of error... when iam running my code my camera turned on....but there is no window to display that live feed....that means problem of imshow ....
did you understand the errormsg ? you don't have any gui support builtin, that was a failure, when running cmake already.
if you need proof, --
print(cv2.getBuildInformation())
, look at the GUI section.hi...thanks for ur quick reply.....i compile that cmake successfully...and also solve the issue issue too .....i got output in my window.....thanks a lotttt