Skip to content

Commit 10ad8a9

Browse files
committed
Merge pull request #484 from cbalint13:sfm
2 parents df56f27 + a5e7d8f commit 10ad8a9

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

modules/sfm/src/libmv_capi.h

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ using namespace cv;
6161
using namespace cv::sfm;
6262
using namespace libmv;
6363

64+
using namespace google;
65+
66+
namespace gflags {}
67+
using namespace gflags;
6468

6569
////////////////////////////////////////
6670
// Based on 'libmv_capi' (blender API)
@@ -84,26 +88,26 @@ void libmv_initLogging(const char* argv0) {
8488
// Make it so FATAL messages are always print into console.
8589
char severity_fatal[32];
8690
snprintf(severity_fatal, sizeof(severity_fatal), "%d",
87-
google::GLOG_FATAL);
91+
GLOG_FATAL);
8892

89-
google::InitGoogleLogging(argv0);
90-
google::SetCommandLineOption("logtostderr", "1");
91-
google::SetCommandLineOption("v", "0");
92-
google::SetCommandLineOption("stderrthreshold", severity_fatal);
93-
google::SetCommandLineOption("minloglevel", severity_fatal);
93+
InitGoogleLogging(argv0);
94+
SetCommandLineOption("logtostderr", "1");
95+
SetCommandLineOption("v", "0");
96+
SetCommandLineOption("stderrthreshold", severity_fatal);
97+
SetCommandLineOption("minloglevel", severity_fatal);
9498
}
9599

96100
void libmv_startDebugLogging(void) {
97-
google::SetCommandLineOption("logtostderr", "1");
98-
google::SetCommandLineOption("v", "2");
99-
google::SetCommandLineOption("stderrthreshold", "1");
100-
google::SetCommandLineOption("minloglevel", "0");
101+
SetCommandLineOption("logtostderr", "1");
102+
SetCommandLineOption("v", "2");
103+
SetCommandLineOption("stderrthreshold", "1");
104+
SetCommandLineOption("minloglevel", "0");
101105
}
102106

103107
void libmv_setLoggingVerbosity(int verbosity) {
104108
char val[10];
105109
snprintf(val, sizeof(val), "%d", verbosity);
106-
google::SetCommandLineOption("v", val);
110+
SetCommandLineOption("v", val);
107111
}
108112

109113

0 commit comments

Comments
 (0)