Issue 206 in google-glog: unknown command line flag 'logtostderr'

605 views
Skip to first unread message

codesite...@google.com

unread,
May 9, 2014, 6:03:46 AM5/9/14
to googl...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 206 by phongngu...@gmail.com: unknown command line
flag 'logtostderr'
http://code.google.com/p/google-glog/issues/detail?id=206

What steps will reproduce the problem?
1. I try to extract SIFT features to extract features from an image dataset
- Caltech from this site: https://github.com/sanchom/sjm
2. I use Macport to install all the dependencies: Python, bumpy, Boost,
Flann, VLFEAT, GTEST, Gflags, GLOG, Google Protobuf, Scons.
3. I follow exactly all the steps until i run 'scons' and 'scons install
BIN_PREFIX=[directory]'
4. I run my program with and without '$GLOG_logtostderr=1 ./my_application'
as suggested on this issues:
https://code.google.com/p/google-glog/issues/detail?id=17&q=glog%20gflagsBut

What is the expected output? What do you see instead?
I should get a directory containing all the features extracted with the
extension .SIFT. But It generated an empty directory and error: "ERROR:
unknown command line flag 'logtostderr'.


What version of the product are you using? On what operating system?
I am using Mac OS X Marverick, Gflags-2.1.1, Glog-0.3.3, Python2.7,
Protobuf-2.5.0, Scons-2.3.0...

Please provide any additional information below.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

codesite...@google.com

unread,
May 9, 2014, 11:57:43 PM5/9/14
to googl...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 206 by shinichi...@gmail.com: unknown command line
flag 'logtostderr'
http://code.google.com/p/google-glog/issues/detail?id=206

This isn't a glog's bug.

But I think now I understood your issue. IIRC macports' glog is not built
with gflags but the python script sets --logtostderr. There would be two
solutions:

1. remove --logtostderr from the python script.
2. build libglog by yourself with gflags.

You said you failed to do the latter, but you can ignore the failure in
logging_unittest. You should manually copy libglog.dylib or something.

codesite...@google.com

unread,
May 10, 2014, 12:05:34 AM5/10/14
to googl...@googlegroups.com

Comment #2 on issue 206 by shinichi...@gmail.com: unknown command line
flag 'logtostderr'
http://code.google.com/p/google-glog/issues/detail?id=206

If you want to do 1, the following script would work:

find . -name '*.py' -exec perl -i -p -e 's/--logtostderr//' {} \;

codesite...@google.com

unread,
May 10, 2014, 12:12:25 AM5/10/14
to googl...@googlegroups.com

Comment #3 on issue 206 by phongngu...@gmail.com: unknown command line
flag 'logtostderr'
http://code.google.com/p/google-glog/issues/detail?id=206

Shinichi, I did it, thanks! It works now

codesite...@google.com

unread,
May 10, 2014, 12:20:16 AM5/10/14
to googl...@googlegroups.com

Comment #4 on issue 206 by phongngu...@gmail.com: unknown command line
flag 'logtostderr'
http://code.google.com/p/google-glog/issues/detail?id=206

Shinichi, it works now after running this script: find . -name '*.py' -exec
perl -i -p -e 's/--logtostderr//' {} \; Thanks
Reply all
Reply to author
Forward
0 new messages