Re: missing protoc-gen-c
Broken links fixed on master https://github.com/daos-stack/daos/pull/2654
From: daos@daos.groups.io <daos@daos.groups.io> On Behalf Of
Nabarro, Tom
Sent: Thursday, May 7, 2020 4:31 PM To: daos@daos.groups.io Subject: Re: [daos] missing protoc-gen-c
That’s the one . thanks
From: daos@daos.groups.io <daos@daos.groups.io>
On Behalf Of Colin Ngam
This one? doc/dev/development.md
From: <daos@daos.groups.io> on behalf of "Nabarro, Tom" <tom.nabarro@...>
So apologies but that link is dead, anyone know where the contents got moved to? I can’t find any references to relevant content in the docs.
The protobuf-c package is installed during build (I’m using master) and gets pulled in from <daos>/utils/sl/components/__init__.py but we don’t build the protoc* binaries/full compiler to avoid overhead for something that is only required very occasionally for developer purposes (we supply the –disable-protoc configure option in the build).
For the moment you will need to build the compiler and plug-in yourself but we plan on providing a build flag for developers that’s need it.
Tom
From: daos@daos.groups.io <daos@daos.groups.io>
On Behalf Of Nabarro, Tom
This is a development tool so maybe it’s not pulled in by the default build.
I installed as follows:
git clone https://github.com/protobuf-c/protobuf-c cd protobuf-c/ ./autogen.sh ./configure --prefix=/home/tanabarr/protobuf/install PKG_CONFIG_PATH=/home/tanabarr/protobuf/install/lib/pkgconfig make && make install
it is not a plug-in that ships with the stock protobuf compiler package (which ships instead with C++ plugin).
See the <daos>/src/proto/Makefile for some details and this will point you to the following doc if compiler is missing.
https://github.com/daos-stack/daos/blob/master/doc/development.md#protobuf-compiler
Regards, Tom Nabarro – DCG/ESAD M: +44 (0)7786 260986 Skype: tom.nabarro
From: daos@daos.groups.io <daos@daos.groups.io>
On Behalf Of Zhang, Jiafu
Hi Guys,
In https://github.com/daos-stack/daos/tree/master/src/proto/README.md, it uses “protoc -I mgmt --c_out=../mgmt mgmt/srv.proto --plugin=/opt/potobuf/install/bin/protoc-gen-c” to generate C code. In recent DAOS, I cannot find “protoc-gen-c”.
Do you know why?
Thanks. --------------------------------------------------------------------- This e-mail and any attachments may contain confidential material for --------------------------------------------------------------------- This e-mail and any attachments may contain confidential material for --------------------------------------------------------------------- This e-mail and any attachments may contain confidential material for --------------------------------------------------------------------- This e-mail and any attachments may contain confidential material for |
|