Build fail with error 'google/protobuf/stubs/common.h' file not found on MacOS
Created by: higis927
OS version: System Version: macOS 10.13.2 (17C88) Kernel Version: Darwin 17.3.0 Python version: 2.7.10 cmake version: 3.11.0 protoc version: 3.5.1 gcc version: Apple LLVM version 9.0.0 (clang-900.0.39.2) It failed with the error during running 'python setup.py build as following. It seemes it does not find google/protobuf/text_format.h. However, there is indeed google/protobuf/text_format.h in gcc system include library.
Errors: Building CXX object visualdl/storage/CMakeFiles/binary_record.dir/binary_record.cc.o In file included from /Users/amy.sy/code/VisualDL/visualdl/storage/binary_record.cc:15: In file included from /Users/amy.sy/code/VisualDL/visualdl/storage/binary_record.h:22: /Users/amy.sy/code/VisualDL/visualdl/utils/filesystem.h:18:10: fatal error: 'google/protobuf/text_format.h' file not found #include <google/protobuf/text_format.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make[2]: *** [visualdl/storage/CMakeFiles/binary_record.dir/binary_record.cc.o] Error 1 make[1]: *** [visualdl/storage/CMakeFiles/binary_record.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... ^Cinterrupted make[2]: *** [third_party/eigen3/src/extern_eigen3-stamp/extern_eigen3-download] Interrupt: 2 make[1]: *** [CMakeFiles/extern_eigen3.dir/all] Interrupt: 2 make: *** [all] Interrupt: 2
my gcc system library: ls -alt /usr/local/include/google/protobuf/text_format.h -rw-r--r--@ 1 root admin 24051 4 28 17:48 /usr/local/include/google/protobuf/text_format.h