Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'protobuf/text_format.h' file not found when building "Quickstart with CMake" #1192

Closed
d2weber opened this issue May 18, 2024 · 2 comments
Closed

Comments

@d2weber
Copy link

d2weber commented May 18, 2024

I followed the steps in Quickstart with CMake and ran into a compilation Error:

In file path/to/first_fuzz_project/fuzztest/./fuzztest/internal/table_of_recent_compares.h:31:
path/to/first_fuzz_project/fuzztest/./fuzztest/internal/type_support.h:42:10: fatal error: 'google/protobuf/text_format.h' file not found
#include "google/protobuf/text_format.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I ran git bisect to find a commit that compiles:

git bisect good 6a370aed314173f472b265c8196bd4810846c831
# first bad commit: [ed6f817771702bf7823b73498d0e1914475f2313] Properly convert proto to text

I use Ubuntu 22.04 with Clang 14.0.0

@pyu1538
Copy link

pyu1538 commented Jun 6, 2024

I met the same error. It depends on the system protobuf library, I resolved it by the following command:
sudo apt install -y protobuf-compiler libprotobuf-dev

@fniksic
Copy link
Collaborator

fniksic commented Jun 21, 2024

Should be fixed by #1219.

@fniksic fniksic closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants