Mac osx 环境,当引入
#include <google/protobuf/io/zero_copy_stream.h>时,
显示'google/protobuf/io/zero_copy_stream.h' file not found错误,
解决方法:
macbook-pro:UseKQueue 192.168.0.11$ sudo port install protobuf-c
---> Computing dependencies for protobuf-c
The following dependencies will be installed: protobuf3-cpp
Continue? [Y/n]: Y
---> Fetching archive for protobuf3-cpp
---> Attempting to fetch protobuf3-cpp-3.17.3_0.darwin_18.x86_64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/protobuf3-cpp
---> Attempting to fetch protobuf3-cpp-3.17.3_0.darwin_18.x86_64.tbz2.rmd160 from https://pek.cn.packages.macports.org/macports/packages/protobuf3-cpp
---> Installing protobuf3-cpp @3.17.3_0
---> Activating protobuf3-cpp @3.17.3_0
---> Cleaning protobuf3-cpp
---> Fetching archive for protobuf-c
---> Attempting to fetch protobuf-c-1.4.0_0.darwin_18.x86_64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/protobuf-c
---> Attempting to fetch protobuf-c-1.4.0_0.darwin_18.x86_64.tbz2.rmd160 from https://pek.cn.packages.macports.org/macports/packages/protobuf-c
---> Installing protobuf-c @1.4.0_0
---> Activating protobuf-c @1.4.0_0
---> Cleaning protobuf-c
---> Scanning binaries for linking errors
---> No broken files found.
---> No broken ports found.