From a5e7d8f0da2b770b8de59e342177a7caa11c970d Mon Sep 17 00:00:00 2001 From: Balint Cristian Date: Tue, 22 Dec 2015 13:49:57 +0200 Subject: [PATCH] CompileFix: SetCommandLineOption may be in gflags:: not google:: --- modules/sfm/src/libmv_capi.h | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/modules/sfm/src/libmv_capi.h b/modules/sfm/src/libmv_capi.h index 606bed1a22..499833d8ed 100644 --- a/modules/sfm/src/libmv_capi.h +++ b/modules/sfm/src/libmv_capi.h @@ -61,6 +61,10 @@ using namespace cv; using namespace cv::sfm; using namespace libmv; +using namespace google; + +namespace gflags {} +using namespace gflags; //////////////////////////////////////// // Based on 'libmv_capi' (blender API) @@ -84,26 +88,26 @@ void libmv_initLogging(const char* argv0) { // Make it so FATAL messages are always print into console. char severity_fatal[32]; snprintf(severity_fatal, sizeof(severity_fatal), "%d", - google::GLOG_FATAL); + GLOG_FATAL); - google::InitGoogleLogging(argv0); - google::SetCommandLineOption("logtostderr", "1"); - google::SetCommandLineOption("v", "0"); - google::SetCommandLineOption("stderrthreshold", severity_fatal); - google::SetCommandLineOption("minloglevel", severity_fatal); + InitGoogleLogging(argv0); + SetCommandLineOption("logtostderr", "1"); + SetCommandLineOption("v", "0"); + SetCommandLineOption("stderrthreshold", severity_fatal); + SetCommandLineOption("minloglevel", severity_fatal); } void libmv_startDebugLogging(void) { - google::SetCommandLineOption("logtostderr", "1"); - google::SetCommandLineOption("v", "2"); - google::SetCommandLineOption("stderrthreshold", "1"); - google::SetCommandLineOption("minloglevel", "0"); + SetCommandLineOption("logtostderr", "1"); + SetCommandLineOption("v", "2"); + SetCommandLineOption("stderrthreshold", "1"); + SetCommandLineOption("minloglevel", "0"); } void libmv_setLoggingVerbosity(int verbosity) { char val[10]; snprintf(val, sizeof(val), "%d", verbosity); - google::SetCommandLineOption("v", val); + SetCommandLineOption("v", val); }