'glog/logging.h' file not found

jose920405 picture jose920405 · Apr 4, 2018 · Viewed 14.4k times · Source

some time ago, every time I start a new project of react-native or when I install the modules I present this error.

'glog/logging.h' file not found.

I found a way to solve it

cd node_modules/react-native/third-party/glog-0.3.4
../../scripts/ios-configure-glog.sh

but it is very tedious to be running this every time.

It seems to be some bad configuration of node or something like that

Answer

Justin picture Justin · May 26, 2018

Assuming you are starting at your projects root

cd node_modules/react-native/third-party/glog-0.3.4

sh ../../scripts/ios-configure-glog.sh

ios-configure-glog.sh uses a relative path to ./configure so you have to change this or cd first or else it will error.

All props to @jose920405!