如何在Xcode中编译使用protobuf的项目?

时间:2018-12-18 06:20:08

标签: objective-c protocol-buffers

我想编译一个使用protobuf的项目。

  

xcode版本:9.3.1
macOS版本:10.13.6

编译错误:

  找不到

'google / protobuf / stubs / common.h'文件

我在某些网站上读到我必须安装protobuf

$ brew install protobuf
// installed version: protobuf 3.6.1.3

项目中有一个名为makefile的目录,其中包含以下文件:

Makefile_ios            compile_ios_protobuf_ssd.sh
build_all_ios_ssd.sh        compile_ios_tensorflow_s.sh
build_tflib_ssd.sh      compile_nsync_ssd.sh

当我运行这些脚本时,它们有错误。喜欢

$ ./compile_ios_protobuf_ssd.sh
// ./compile_ios_protobuf_ssd.sh: line 25: ./build_helper.subr: No such file or directory

./build_all_ios_ssd.sh
make: tensorflow/contrib/makefile/Makefile_ios: No such file or directory
make: *** No rule to make target `tensorflow/contrib/makefile/Makefile_ios'.  Stop.

我是否必须安装某些东西,或者该项目有问题?

0 个答案:

没有答案