android / ndk-samples

Android NDK samples with Android Studio
http://developer.android.com/ndk
Apache License 2.0
10.07k stars 4.18k forks source link

how quoted c++ source code in android studio in experimental - plugin- 0.7.2 #257

Closed agoodcoolman closed 8 years ago

agoodcoolman commented 8 years ago

I want to quote an open source library (transcode), but I can't find any stiatic library (.so) or dynamic library(.a) in the webside.

I had copied trancscode source code in ndk-dir/source files. my project site

I had saw hello-libs,but i couldn't understand it.

ggfan commented 8 years ago

in this repo, there are 3 branches targeting for 3 different native code build for android OS with android studio, scroll down this page, you see that is says 2 :-) https://github.com/googlesamples/android-ndk the hidden one is master-ndkbuild ( I only have limited time to support ndkbuild )

so if you do not care which build system it is, start with android studio's cmake support, which is in master-cmake branch, see if hello-libs demo could help you.

you probably will not find too many open source projects releasing binary for android due to the stl type, toolchain version, and ABIs. If I were doing it, I would:

In this way you could update the transcode source code independently, without any merging with your code at all.

ggfan commented 8 years ago

are you able to proceed now? thanks

agoodcoolman commented 8 years ago

use the ndkbuild brand ,it's work for me. thanks