ndk-build

Unable to run React-Native UIExplorer example project

人走茶凉 提交于 2020-01-02 04:06:09
问题 I've been trying to run UIExplorer project on Windows. I am getting the following error- ... ... make: *** [D:\react-native\ReactAndroid\build\tmp\buildReactNdkLib/local/ armeabi-v7a/objs/reactnativejni/JExecutorToken.o] Error 2 ... ... What went wrong: Execution failed for task ':ReactAndroid:buildReactNdkLib'. > Process 'command 'C:\android-ndk-r11b\ndk-build.cmd'' finished with non-zero exit value 2 ... ... Caused by: org.gradle.process.internal.ExecException: Process 'command 'C:\android

How to decrease the size of android native shared libaries (.so files)?

白昼怎懂夜的黑 提交于 2019-12-30 11:03:47
问题 I am trying to build opencv (version 3.4.2) for Android using ndk-18-beta1 and c++_static since this ndk does not support gnustl_static anymore. I created my ndk-config.py file with just armeabi-v7a architecture: ABIs = [ ABI("2", "armeabi-v7a", "arm-linux-androideabi-clang3.5", cmake_vars=dict(ANDROID_ABI='armeabi-v7a with NEON', ANDROID_STL="c++_static")), ] to use c++_static and clang toolchain. And build it just with: ../opencv-3.4.2/platforms/android/build_sdk.py --ndk_path [path_to_ndk

what is the magic of nativeLibsToJar

妖精的绣舞 提交于 2019-12-24 15:54:37
问题 The following code snippet seems to be the answer how to include native libraries with Android Studio: task nativeLibsToJar(type: Zip, description: 'create a jar archive of the native libs') { destinationDir file("$buildDir/native-libs") baseName 'native-libs' extension 'jar' from fileTree(dir: 'libs', include: '**/*.so') into 'lib/' } tasks.withType(Compile) { compileTask -> compileTask.dependsOn(nativeLibsToJar) } It seems to simply pack the *.so into *.jar. But I really don't understand it

Android NDK linker Error:error: undefined reference to std::basic_string

天大地大妈咪最大 提交于 2019-12-22 12:37:53
问题 I am currently trying to build a static library of some source c++ files requiring boost. I have been following the hello-libs example and have successfully linked the boost static file dependencies as is done in the sample example.Now said that, during while building the module I get these erros : Error:error: undefined reference to 'std::basic_string, std::allocator >::basic_string(char const*, std::allocator const&)' Error:error: undefined reference to 'std::runtime_error::runtime_error

difference between ndk-bundle and android-ndk-r15c

我与影子孤独终老i 提交于 2019-12-22 08:09:35
问题 are there any difference between ndk-bundle obtained donloading the ndk from SDK manager and android-ndk-r15c from android developers? I'm not able to compile a project cloned from git-hub, in the description is write that I need android-ndk-r8c... I'm using ndk-bundle, is the same?? 回答1: Yes, ndk-bundle directory contains exactly same NDK as what you can download from https://developer.android.com/ndk/downloads/index.html. But if the project is tuned for r8c , you may have some work to do to

difference between ndk-bundle and android-ndk-r15c

心不动则不痛 提交于 2019-12-22 08:09:05
问题 are there any difference between ndk-bundle obtained donloading the ndk from SDK manager and android-ndk-r15c from android developers? I'm not able to compile a project cloned from git-hub, in the description is write that I need android-ndk-r8c... I'm using ndk-bundle, is the same?? 回答1: Yes, ndk-bundle directory contains exactly same NDK as what you can download from https://developer.android.com/ndk/downloads/index.html. But if the project is tuned for r8c , you may have some work to do to

APP_ABI ignored

自古美人都是妖i 提交于 2019-12-18 09:03:13
问题 I used android-ndk-r13b, I downloaded it from Android website directly (not from SDK manager) and set the path from Project Structure in the Android Studio. It able to detect my Android.mk and Application.mk (both in my jni folder), I saw it from console log. In my Application.mk, I define this : APP_ABI:=armeabi-v7a But from the console log, I could see that everytime it execute ndk-build, there is always APP_ABI:=mips64 as the parameter. So, there is always an error. (I guess it is because

How to resolve Android ndk build command faild?

两盒软妹~` 提交于 2019-12-18 07:19:16
问题 I am developing simple ndk sample example using android ndk in android studio. While running my app studio shows below errors. Build command failed. Error while executing process D:\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build D:\Android Studio\Workspace\NDKSample\app\.externalNativeBuild\cmake\debug\arm64-v8a --target native-lib} [1/2] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.oFAILED: D:\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64

Gstreamer examples in Android Studio

独自空忆成欢 提交于 2019-12-17 07:49:24
问题 I have been trying to get Gstreamer working in Android studio, following their tutorials, see for example here: https://gstreamer.freedesktop.org/documentation/tutorials/android/link-against-gstreamer.html But in the latest Android studio there is no jni/Android.mk. Where do I put the code at the end of that web page? Should it go in the CMakeLists.txt? Or should something different go in there? Or do I just make an Android.mk file, and if so, where (as there is no jni folder, only a cpp

NDK build error: “fatal error: stdint.h: No such file or directory” on Mac Os X

旧巷老猫 提交于 2019-12-14 03:52:26
问题 I use the following build command to build OpenH264 project. make OS=android ARCH=arm64 NDKROOT=~/Library/Android/android-ndk-r10d/ TARGET=android-12 But i got the following error: /Users/jerikc/Library/Android/android-ndk-r10d/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/lib/gcc/aarch64-linux-android/4.9/include-fixed/limits.h:168:61: error: no include path in which to search for limits.h #include_next <limits.h> /* recurse down to the real one */ ^ In file included from .