Libtorch glog doesn't print

I have build libtorch from source. Follow by

I also install glob. But when I use LOG(INFO) << "hello world!";, it print nothing. Set the minloglevel to 0 doesn’t work.

What should I do to deal with it? I just want use glog…

DLOG(INFO) will cause compile error.
LOG(ERROR) can work properly.
so How can I use a normal glog?

Any suggestion?
Appreciate for any help~

Maybe you can try it: add add_definitions(-DC10_USE_GLOG) in your project’s cmakelists.txt.

1 Like

it works!!! you are my god!!!