Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
a5e7d8f0
Commit
a5e7d8f0
authored
Dec 22, 2015
by
Balint Cristian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CompileFix: SetCommandLineOption may be in gflags:: not google::
parent
e8937cc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
libmv_capi.h
modules/sfm/src/libmv_capi.h
+15
-11
No files found.
modules/sfm/src/libmv_capi.h
View file @
a5e7d8f0
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment