Cannot open include file 'google/protobuf/port_def.inc'

442 views
Skip to first unread message

Nithya Murali

unread,
Aug 18, 2020, 7:20:29 PM8/18/20
to Protocol Buffers
I am on Windows 10 and trying to install the protoc compiler - I used the following to install it:

vcpkg install protobuf protobuf:x64-windows 

protoc --version returns "libprotoc 3.13.0" as expected

However, in the process of installing a python library (pycld3) which requires protoc, I'm getting the following error:

Cannot open include file: 'google/protobuf/port_dec.inc': No such file or directory
error: command "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\Hostx86\\x64\\cl.exe" failed with exit status 2

Do I need to set anything further in the path besides the protoc binary and CMake?

claire joseph

unread,
May 31, 2024, 10:44:09 AMMay 31
to Protocol Buffers
I am experiencing a similar issue. Any suggestions. I get file not found for port_def.inc. Installed protoc using vcpkg.
Reply all
Reply to author
Forward
0 new messages