grpc vs2015 build errors.. How to resolve them?

394 views
Skip to first unread message

karthik....@gmail.com

unread,
Jun 6, 2017, 8:25:06 AM6/6/17
to grpc.io
Working on the master branch.

Getting following errors

1>c:\tools\grpc\third_party\cares\cares\ares_setup.h(83): fatal error C1083: Cannot open include file: 'ares_build.h': No such file or directory
Adding the include directory throws up other issues.


2>c:\tools\grpc\src\cpp\util\error_details.cc(36): fatal error C1083: Cannot open include file: 'src/proto/grpc/status/status.pb.h': No such file or directory

While trying to generate status.pb.h
Downloaded 32 bit protoc
works fine, but not able to generate grpc.pb.cc
Note: self built the grpc_cpp_plugin

While using the self built protoc

C:\tools\grpc\src\proto\grpc\status>protoc --grpc_out=. status.proto
google/protobuf/any.proto: File not found.
status.proto: Import "google/protobuf/any.proto" was not found or had errors.
status.proto:91:12: "google.protobuf.Any" is not defined.


3>c:\tools\grpc\include\grpc++\impl\codegen\async_stream.h(419): error C2220: warning treated as error - no 'object' file generated


4>grpc.def : error LNK2001: unresolved external symbol census_set_trace_mask

4>grpc.def : error LNK2001: unresolved external symbol census_trace_mask

4>grpc.def : error LNK2001: unresolved external symbol census_trace_print

4>grpc.def : error LNK2001: unresolved external symbol grpc_slice_buf_cmp

4>C:\tools\grpc\vsprojects\Debug\grpc_dll.lib : fatal error LNK1120: 4 unresolved externals


Is there any place I can get the latest built grpc tools, so I could straight away start on my service.


Appreciate help.





chen cheng

unread,
Jul 21, 2017, 2:56:07 AM7/21/17
to grpc.io, karthik....@gmail.com
i also met the same issue. Anyone could help us on it?
thanks.

Jan Tattermusch

unread,
Jul 24, 2017, 8:00:59 AM7/24/17
to chen cheng, grpc.io, karthik....@gmail.com
Please include a complete list of command you ran. Like this we can't really help. Did you build using cmake? Building using pre-generated VS2015 project (without using cmake) is not deprecated. Please see https://github.com/grpc/grpc/pull/11598 

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/3e91612d-3e01-404a-8c54-f37c6208daad%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages