Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building for Android architecture? armeabi-v7a #446

Closed
davidtian02 opened this issue Jun 1, 2015 · 1 comment
Closed

Building for Android architecture? armeabi-v7a #446

davidtian02 opened this issue Jun 1, 2015 · 1 comment

Comments

@davidtian02
Copy link

I can't seem to get Lib protobuffer to compile into a .so file to be used by another native library.

Even with the Android.mk file that is included, there's a bunch of errors, such as:

./src/google/protobuf/stubs/common.cc:39:20: fatal error: config.h: No such file or directory
or

In file included from ./src/google/protobuf/extension_set.cc:35:0:
./src/google/protobuf/stubs/hash.h:164:55: error: expected template-name before '<' token
 class hash_map : public HASH_NAMESPACE::HASH_MAP_CLASS<

people have claimed this has worked: http://stackoverflow.com/questions/7144008/how-to-build-protocol-buffer-by-android-ndk but i can't figure out what commit hash that android.mk works for.

Is there a commit along with a make file that is known to work?

fyi, i'm using
ndk-build V=1 NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk APP_STL=stlport_static APP_ABI=armeabi-v7a to compile

@davidtian02
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants