Coder Social home page Coder Social logo

protobuf-c's Introduction

Build Status

Overview

This is protobuf-c, a C implementation of Google Protocol Buffers. It includes libprotobuf-c, a pure C library that implements protobuf encoding and decoding, and protoc-c, a code generator that converts Protocol Buffer .proto files to C descriptor code, based on the original protoc. protobuf-c formerly included an RPC implementation; that code has been split out into the protobuf-c-rpc project.

protobuf-c was originally maintained by Dave Benson through version 0.15 but is now being maintained by a new team. Thanks, Dave!

Building

protobuf-c requires a C compiler, a C++ compiler, Google Protocol Buffers, and pkg-config to be installed.

./configure && make && make install

If building from a git checkout, the autotools (autoconf, automake, libtool) must also be installed, and the build system must be generated by running the autogen.sh script.

./autogen.sh && ./configure && make && make install

Synopsis

Include the protobuf-c header file:

#include <protobuf-c/protobuf-c.h>

Link against the protobuf-c library.

-lprotobuf-c

libprotobuf-c includes a pkg-config file. It is recommended to use the pkg-config system in order to determine the complete set of compiler and linker flags for building applications that utilize libprotobuf-c. If using pkg-config with autoconf, the PKG_CHECK_MODULES macro can be used to detect the presence of libprotobuf-c:

PKG_CHECK_MODULES([PROTOBUF_C], [libprotobuf-c])

This will place compiler flags in the PROTOBUF_C_CFLAGS variable and linker flags in the PROTOBUF_C_LDFLAGS variable.

(Note that the protobuf-c header file used to be installed as google/protobuf-c/protobuf-c.h in previous versions.)

Contributing

Please send patches to the protobuf-c mailing list or by opening a GitHub pull request.

Copyright to all contributions are retained by the original author, but must be licensed under the terms of the BSD-2-Clause license. Please add a Signed-off-by header to your commit message (git commit -s) to indicate that you are licensing your contribution under these terms.

protobuf-c's People

Contributors

client9 avatar lipnitsk avatar lyda avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.