awong-dev / ndk Goto Github PK
View Code? Open in Web Editor NEWandroid ndk
android ndk
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.