unable to build protbuf- 2.6.1 artifact on visual studio

67 views
Skip to first unread message

Somashekhar Rudrakshi

unread,
Jan 10, 2020, 2:55:13 PM1/10/20
to Protocol Buffers
while trying to build the protobuf - 2.6.1 artifacts on Visual studio.
I am seeing the following errors.
kindly help. 


Severity

Code

Description

Project

File

Line

Suppression State

Error (active)

E1696

cannot open source file "gtest/gtest.h"

tests

C:\protobuf-2.6.1-artifacts\src\google\protobuf\compiler\mock_code_generator.cc

44


Error (active)

E0020

identifier "EXPECT_EQ" is undefined

tests

C:\protobuf-2.6.1-artifacts\src\google\protobuf\compiler\mock_code_generator.cc

100


Error (active)

E0020

identifier "cerr" is undefined

tests

C:\protobuf-2.6.1-artifacts\src\google\protobuf\compiler\mock_code_generator.cc

133


Error (active)

E0020

identifier "cerr" is undefined

tests

C:\protobuf-2.6.1-artifacts\src\google\protobuf\compiler\mock_code_generator.cc

136


Error (active)

E0020

identifier "cerr" is undefined

tests

C:\protobuf-2.6.1-artifacts\src\google\protobuf\compiler\mock_code_generator.cc

144


Error

MSB6006

"cmd.exe" exited with code 9009.

tests

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets

231


Error

C1083

Cannot open include file: 'gtest/gtest.h': No such file or directory

test_plugin

C:\protobuf-2.6.1-artifacts\src\google\protobuf\compiler\mock_code_generator.cc

44



Fred Eisele

unread,
Apr 19, 2022, 11:07:42 AM4/19/22
to Protocol Buffers
Did you ever get this sorted out?
I am having similar issues even on linux.
```
$ make check
Making check in .
make[1]: Entering directory `/Packages/protobuf-2.6.1'
make  check-local
make[2]: Entering directory `/Packages/protobuf-2.6.1'
Making lib/libgtest.a lib/libgtest_main.a in gtest
/bin/sh: line 0: cd: gtest: No such file or directory
make[2]: *** [check-local] Error 1
make[2]: Leaving directory `/Packages/protobuf-2.6.1'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/Packages/protobuf-2.6.1'
make: *** [check-recursive] Error 1
```

Deanna Garcia

unread,
May 2, 2022, 1:43:44 PM5/2/22
to Protocol Buffers
Are you still seeing this error? What version of protobuf are you using?
Reply all
Reply to author
Forward
0 new messages