google / bloaty

Bloaty: a size profiler for binaries
Apache License 2.0
4.66k stars 337 forks source link

port_def.inc not found #331

Open patrick-dojofive opened 1 year ago

patrick-dojofive commented 1 year ago

When using system protobuf (installed via brew, version 3.19.4), the compilation fails when trying to find google/protobuf/port_def.inc. This file exists on my system at:

/usr/local/Cellar/protobuf/21.9_1/include/google/protobuf/port_def.inc
/usr/local/Cellar/protobuf/21.12/include/google/protobuf/port_def.inc

Disabling trying to find the system package in CMakeLists.txt allows compilation to proceed. Also, a similar issue occurs with capstone and disabling searching for it on the sytem allows compilatin to proceed.