Many of the libprotoc related headers not exist in the /installprefix/include directory
What version of protobuf and what language are you using? Version: tested releases of v3.8.0 and v21.2 Language: C++
What operating system (Linux, Windows, ...) and version?
Linux 5.4.19.bsk.2-amd64 #5.4.19.bsk.2 SMP Debian
What runtime / compiler are you using (e.g., python version or gcc version) llvm-clang11
What did you do? Steps to reproduce the behavior:
- Install protobuf and libprotoc
- Write a cc file that #include <google/protobuf/compiler/cpp/helpers.h>
- Implement my CodeGenerator
- Compile and link against libprotoc
What did you expect to see Produces my protoc plugin
What did you see instead?
cpp3rdlib/protobuf/include/google/protobuf/compiler/cpp/helpers.h:44:10: fatal error: 'google/protobuf/compiler/scc.h' file not found
#include <google/protobuf/compiler/scc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommands failed.
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment
When I checked files in my install prefix /usr/include/google/protobuf/compiler/cpp, I only had:
cpp_generator.h file.h generator.h helpers.h names.h
, which is fairly not enough.
Seems like you are using Ninja to build? Can you provide more details on what your implementation looks like and how you are building?
I suspect that upcoming build system work will interact with this and may even fix it
I think this seems very specific to your use case. I'm going to close for now, if you still see this problem please provide a simple reproduction case.