My build server is linux based. I need protoc to integrate it to my ant based build system.
I use following in build.xml for same:
<exec executable="tools/protoc.exe" failonerror="true">
<arg value="--java_out=../protos/java/generated" />
<arg value="--proto_path=../protos/proto" />
<arg value="../protos/proto/*.proto" />
</exec>
I found windows binary , but didn't find linux binary for protoc.
Any help to find one or build statically linked protoc binary would be nice.
Have you tried just downloading the main protobuf project and following the installation instructions? I seem to remember it's pretty straightforward if you only need the binary:
$ ./autogen.sh
$ ./configure
$ make
(You probably don't need make install
in this case, if you only need the protoc
binary. Just find out where it's been built and copy it.)
Precompiled binaries for the latest release are on the official releases page on GitHub. Previous versions can be found on the Maven repository.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With