Java – how do I get precompiled Linux binaries for the protocol buffer?

My build server is based on Linux I need protoc to integrate it into my ant - based build system

I'm building XML uses the following:

<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 the windows binary, but I couldn't find the Linux binary for protocol

Any help in finding or building a statically linked protocol binary would be great

Solution

Have you tried to download the main protobuf project and follow the installation instructions? I seem to remember that if you only need binaries, it's very simple:

$./autogen.sh
$./configure
$make

(in this case, you may not need to make install if you only need the protocol binary. Just find its build location and copy it.)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>