Program doesn't compile as libglog.so not found, Glog compilation gives libglog.a What to do?

asked 2016-02-21 12:44:47 -0500

muglikar gravatar image

updated 2016-02-21 13:07:07 -0500

Program doesn't compile as lobglog.so not found, Glog compilation gives libglog.a What to do?

usr/bin/ld: warning: libglog.so.0, needed by /usr/local/lib/libopencv_sfm.so, not found (try using -rpath or -rpath-link) /usr/local/lib/libopencv_sfm.so: undefined reference to google::base::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*)' Makefile:156: recipe for target 'brightnessDetector' failed /usr/local/lib/libopencv_sfm.so: undefined reference togoogle::LogMessage::LogMessage(char const, int, int)' /usr/local/lib/libopencv_sfm.so: undefined reference to google::base::CheckOpMessageBuilder::~CheckOpMessageBuilder()' /usr/local/lib/libopencv_sfm.so: undefined reference togoogle::base::CheckOpMessageBuilder::ForVar2()' /usr/local/lib/libopencv_sfm.so: undefined reference to google::kLogSiteUninitialized' /usr/local/lib/libopencv_sfm.so: undefined reference togoogle::LogMessage::stream()' /usr/local/lib/libopencv_sfm.so: undefined reference to google::InitGoogleLogging(char const*)' /usr/local/lib/libopencv_sfm.so: undefined reference togoogle::LogMessageFatal::LogMessageFatal(char const, int, google::CheckOpString const&)' /usr/local/lib/libopencv_sfm.so: undefined reference to google::base::CheckOpMessageBuilder::NewString()' /usr/local/lib/libopencv_sfm.so: undefined reference togoogle::LogMessage::LogMessage(char const, int)' /usr/local/lib/libopencv_sfm.so: undefined reference to fLI::FLAGS_v' /usr/local/lib/libopencv_sfm.so: undefined reference togoogle::InitVLOG3__(int, int, char const, int)' /usr/local/lib/libopencv_sfm.so: undefined reference to google::LogMessageFatal::~LogMessageFatal()' /usr/local/lib/libopencv_sfm.so: undefined reference togoogle::LogMessage::~LogMessage()' /usr/local/lib/libopencv_sfm.so: undefined reference to `google::LogMessageFatal::LogMessageFatal(char const, int)' collect2: error: ld returned 1 exit status make: * [brightnessDetector] Error 1 20:12:17: The process "/usr/bin/make" exited with code 2.

edit retag flag offensive close merge delete