Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dimon4eg/protobuf-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

13 Commits

Repository files navigation

Google protobuf for Android NDK

This builds a static library to use protobuf with C++ on android.

This is based on protobuf-3.1.0.

Update protobuf

  • download needed protobuf version https://github.com/protocolbuffers/protobuf/releases

  • Copy the `protobuf-x.x.x\src\google` folder to `protobuf-android\src`

  • Open `protobuf-android\Android.mk` and update list of files to build according to

    • `protobuf-x.x.x\cmake\libprotobuf.cmake`
    • `protobuf-x.x.x\cmake\libprotobuf-lite.cmake`

Build

You can build on any platform which NDK supports.

Linux/Mac

cd build

./build.sh

Windows

cd build

build.bat

Static library is located in `build\obj\local\{platform}\libprotobuf.a`

About

Google protocol buffer build for android

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.7%
  • Other 0.3%

AltStyle によって変換されたページ (->オリジナル) /