When I compile a proto file, it came out this error.
I already place "protoc" in PATH and copy the contents of the 'include' directory into '/usr/local/include/'.
Does this work if you invoke protoc explicitly with that include path?
protoc -I/usr/local/include $ARGS
If that doesn't work, what are contents of /usr/local/include/google/protobuf?
Closing as stale. Reply on the issue if it doesn't fix the problem and we can discuss further.
Does this work if you invoke
protocexplicitly with that include path?protoc -I/usr/local/include $ARGSIf that doesn't work, what are contents of
/usr/local/include/google/protobuf?
It worked for me. However, it should work without explicitly providing "include" folder, right? am I missing some configuration. Thanks for your reply and time.
am I missing some configuration.
Possibly? I'm not sure where protoc checks to know where to derive the default list of include paths. That's a question better asked on https://github.com/protocolbuffers/protobuf
IIRC, protoc looks for includes relative to the protoc binary. So if protoc is in /usr/local/bin, then it will look in /usr/local/include.
Most helpful comment
IIRC, protoc looks for includes relative to the protoc binary. So if protoc is in /usr/local/bin, then it will look in /usr/local/include.