Giter Site home page Giter Site logo

ndk's Introduction

            Android Native Development Kit (NDK)


Welcome, this NDK is designed to allow Android application developers
to include native code in their Android application packages, compiled
as JNI shared libraries.

See docs/CHANGES.html for a list of changes since the previous release.

A high-level overview of the NDK's features and limitations can be found
in docs/OVERVIEW.html. Please read this document as it contains crucial
information for correct usage.

See docs/STABLE-APIS.html for the list of frozen binary APIs exposed by
this NDK, as well as the corresponding system image versions that support
them.

Before using the NDK, you will need to follow the steps described by
docs/INSTALL.html which lists the NDK prerequisites and the steps needed
to set it up properly on your machine.

We recommend developers to make themselves familiar with JNI concepts. Also
note that the NDK is *not* a good way to write non-JNI native code for the
Android platform.

See docs/HOWTO.html for a few useful tips and tricks when using the NDK.

See docs/SYSTEM-ISSUES.html for a list of important issues related to
the Android system images that all NDK developers should be aware of.

Finally, discussions related to the Android NDK happen on the public
"android-ndk" forum located at the following address:

    http://groups.google.com/group/android-ndk

ndk's People

Contributors

awong-chromium avatar awong-dev avatar billnapier avatar brettchabot avatar capachino avatar danakj avatar ddougherty avatar digit-android avatar dmitriplotnikov avatar drwulf avatar egnor avatar fadden avatar fredquintana avatar gkasten avatar jackpal avatar jroelofs avatar loganchien avatar marcone avatar mdhorn avatar mingwandroid avatar mritter-g avatar mstorsjo avatar nico avatar pimanttr avatar pixelflinger avatar pliard-chromium avatar reed-at-google avatar scottamain avatar swarnagit2024 avatar tommynnguyen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ndk's Issues

Cleanups don't work

This aborts at runtime for me:

Nicos-MacBook-Pro:blah thakis$ cat test_1.pass.cpp 
struct A {
  A() {}
  ~A() {}
};

void f() {
  A a;
  throw 55;
}

int main() {
  try {
    f();
  }
  catch (int i) {
  }
}

Nicos-MacBook-Pro:blah thakis$  time /Users/thakis/src/insanity/scripts/run-tests.sh 
COMMAND: adb shell rm -rf /data/local/tmp/libcxx
COMMAND: adb shell mkdir -p /data/local/tmp/libcxx
COMMAND: adb push /Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/libc++_shared.so /data/local/tmp/libcxx
COMMAND: adb push /Users/thakis/src/insanity/insanity/ndk/sources/android/compiler-rt/libs/armeabi-v7a/libcompiler_rt_shared.so /data/local/tmp/libcxx
Running test:  test_1.pass.cpp
COMMAND: clang++ -std=c++11 -g -funwind-tables -mllvm -arm-enable-ehabi-descriptors -mllvm -arm-enable-ehabi -march=armv7-a -mthumb -mfpu=vfpv3-d16 -march=armv7-a -mthumb -Wl,--fix-cortex-a8 -I/Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libcxx/include -I/Users/thakis/src/insanity/insanity/ndk/sources/android/support/include -L/Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a -L/Users/thakis/src/insanity/insanity/ndk/sources/android/compiler-rt/libs/armeabi-v7a test_1.pass.cpp -nodefaultlibs -lc++_shared -lcompiler_rt_shared -latomic -ldl -lc -lm -o /tmp/testit_android-thakis-13219-a.out
COMMAND: adb push /tmp/testit_android-thakis-13219-a.out /data/local/tmp/libcxx/testit_android-thakis-13219-a.out
COMMAND: adb shell LD_LIBRARY_PATH=/data/local/tmp/libcxx; cd /data/local/tmp/libcxx; ./testit_android-thakis-13219-a.out
libunwind: _Unwind_Resume /Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/../llvm-libc++abi/libcxxabi/src/Unwind/UnwindLevel1.c:440 - _Unwind_Resume() can't return
Aborted /Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/blah/test_1.pass.cpp failed at run time
Compile line was: ( cd /Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/blah && clang++ -std=c++11 -g -funwind-tables -mllvm -arm-enable-ehabi-descriptors -mllvm -arm-enable-ehabi -march=armv7-a -mthumb -mfpu=vfpv3-d16 -march=armv7-a -mthumb -Wl,--fix-cortex-a8 -I/Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libcxx/include -I/Users/thakis/src/insanity/insanity/ndk/sources/android/support/include -L/Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a -L/Users/thakis/src/insanity/insanity/ndk/sources/android/compiler-rt/libs/armeabi-v7a test_1.pass.cpp -nodefaultlibs -lc++_shared -lcompiler_rt_shared -latomic -ldl -lc -lm ) # run-time
failed 1 tests in /Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/blah
****************************************************
Results for /Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/blah:
using clang version 3.3 
Target: armv5te-none-linux-androideabi
Thread model: posix
with -std=c++11 -g -funwind-tables -mllvm -arm-enable-ehabi-descriptors -mllvm -arm-enable-ehabi -march=armv7-a -mthumb -mfpu=vfpv3-d16 -march=armv7-a -mthumb -Wl,--fix-cortex-a8 -I/Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libcxx/include -I/Users/thakis/src/insanity/insanity/ndk/sources/android/support/include -L/Users/thakis/src/insanity/insanity/ndk/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a -L/Users/thakis/src/insanity/insanity/ndk/sources/android/compiler-rt/libs/armeabi-v7a
----------------------------------------------------
sections without tests   : 0
sections with failures   : 1
sections without failures: 0
                       +   ----
total number of sections : 1
----------------------------------------------------
number of tests failed   : 1
number of tests passed   : 0
                       +   ----
total number of tests    : 1
****************************************************

real    0m1.514s
user    0m0.125s
sys 0m0.097s

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.