0

When building protobuf from source code, I see some errors as is shown here: Error when compiling Protobuf for C++ in iOS: "Undefined symbols" and "ld: warning: ignoring file"

Since those errors seem to be related to protoc only, I am wondering whether I can skip building protoc, because indeed I never need it! (I use protoc from the official website)

I have searched through google and documentation but cannot find any clues. Any help is appreciated!

ch271828n
  • 15,854
  • 5
  • 53
  • 88
  • 1
    In protobuf's [CMakeLists.txt](https://github.com/protocolbuffers/protobuf/blob/master/cmake/CMakeLists.txt) I see option `protobuf_BUILD_PROTOC_BINARIES` which seems to be related to building `proto` binary. You may try to set this option to `OFF` when configure the project (`cmake -Dprotobuf_BUILD_PROTOC_BINARIES=OFF `). – Tsyvarev Sep 26 '21 at 14:45
  • @Tsyvarev Reasonable, thanks! – ch271828n Sep 27 '21 at 00:04

0 Answers0