chen3feng / blade-build

Blade is a powerful build system from Tencent, supports many mainstream programming languages, such as C/C++, java, scala, python, protobuf...
Other
2.05k stars 500 forks source link

thirdparty protobuf compile fail #1015

Closed HenryQin closed 7 months ago

HenryQin commented 1 year ago

cd thirdparty blade build :protobuf then we get these error message

thirdparty/protobuf/BUILD:3: error: protobuf: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/protobuf/BUILD:8: error: protoc: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/protobuf-2.4.1/src/BUILD:42: error: protobuf: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/protobuf-2.4.1/src/BUILD:84: error: protoc: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/glog/BUILD:3: error: glog: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/glog-0.3.2/src/BUILD:19: error: glog: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/gflags/BUILD:3: error: gflags: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/gflags-2.0/src/BUILD:10: error: gflags: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = [])

noanswer commented 1 year ago

cd thirdparty blade build :protobuf then we get these error message

thirdparty/protobuf/BUILD:3: error: protobuf: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/protobuf/BUILD:8: error: protoc: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/protobuf-2.4.1/src/BUILD:42: error: protobuf: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/protobuf-2.4.1/src/BUILD:84: error: protoc: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/glog/BUILD:3: error: glog: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/glog-0.3.2/src/BUILD:19: error: glog: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/gflags/BUILD:3: error: gflags: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = []) thirdparty/gflags-2.0/src/BUILD:10: error: gflags: Missing "hdrs" declaration. The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = [])

The public header files should be declared explicitly, if no public header file, set "hdrs" to empty (hdrs = [])

Fix your BUILD as tips above.

chen3feng commented 7 months ago

Yes, it should works