facebook / fbthrift

Facebook's branch of Apache Thrift, including a new C++ server.
Apache License 2.0
2.57k stars 608 forks source link

fatal error: thrift/lib/thrift/gen-cpp2/protocol_types.h: No such file or directory #565

Closed xiedeacc closed 1 year ago

xiedeacc commented 1 year ago

I want use bazel to build fbthrift, but it seems some file miss generated, how generate these files?

avalonalex commented 1 year ago

These files are generated using thrift compiler. Thrift compiler reads .thrift file and generates bunch of sources files for specified programming languages. You can check here https://github.com/facebook/fbthrift/blob/main/ThriftLibrary.cmake#L190