android-ndk

ERROR: '__NDK_FPABI__' does not name a type

僤鯓⒐⒋嵵緔 提交于 2020-01-11 09:35:48
问题 While compiling native code-base, I'm getting the following error - <NDK-HOME>/platforms/android-17/arch-arm/usr/include/jni.h:235:68: error: expected ';' at end of member declaration <NDK-HOME>/platforms/android-17/arch-arm/usr/include/jni.h:235:70: error: '\__NDK_FPABI__' does not name a type ... With tons of repetitions. Platform related details are as below - Native OS: Windows 7 (64 bit) with Cygwin64 NDK Version: r9c A similar problem has been reported here. However, even after

Integrating the Spotify Android library

好久不见. 提交于 2020-01-11 09:12:32
问题 So I wanted to integrate the spotify library into an android app. I went to https://developer.spotify.com/technologies/libspotify/ and downloaded their lib libspotify-12.1.51-Android-arm-release.tar.gz Problem is that the "Android" samples bundled with the lib aren't actually android projects, they are C code, the lib is a .so file. I have basic knowledge of android ndk and jni but the documentation out there about integrating the library with android is non-existent. Can anyone provide a

How to use custom Android.mk with new gradle build system

断了今生、忘了曾经 提交于 2020-01-11 07:11:07
问题 I know how use custom Android.mk with old gradle: sourceSets.main { jniLibs.srcDir 'src/main/jni' jni.srcDirs = [] //disable automatic ndk-build call } // call regular ndk-build(.cmd) script from app directory task ndkBuild(type: Exec) { commandLine '/.../android-ndk-r10e/ndk-build', '-C', file('src/main').absolutePath } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn ndkBuild } It's not working with new gradle: com.android.tools.build:gradle-experimental:0.2.0 : Error

Tesseract OCR Android in Windows

你离开我真会死。 提交于 2020-01-11 06:28:49
问题 I've read all of questions forums and blogs about it but i still have a problem. Firstly, i ticked tess-two as a library also my project's using tess-two as a library. I downloaded Android-NDK and from my project's properties i clicked Builders and then new -> Program then i choose ndk's ndk-build file. By the way my project is Gautam Gupta's project. He'd given project. Link: https://github.com/GautamGupta/Simple-Android-OCR. When i run that project in my phone, application starts and

How to change built-in C/C++ paths pointing to a deleted android-ndk-r9 installation?

余生长醉 提交于 2020-01-11 06:15:32
问题 I recently upgraded my NDK from android-ndk-r9 to android-ndk-r10 (r10d to be exact). Eclipse is 4.4 Luna (Luna Service Release 1 (4.4.1); Build id: 20140925-1800). Eclipse is fully patched for its release. I updated all the Eclipse plugins (including ADT) so they are fully patched. And I also changed my ANDROID_NDK_ROOT in .bash_profile to point to the new NDK directory. Under the Eclipse Preferences → Android → NDK, Eclipse is showing the new android-ndk-r10 path (I had to set it manually).

Execution failed for ':app:ndkBuild'. Process 'command ndk-build.cmd' finished with non-zero exit value 2

旧街凉风 提交于 2020-01-11 05:44:26
问题 I have been stuck on this problem for 2 days and have tried out all possible solutions given on stackoverflow. Below is my build.gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "25.0.3" sourceSets.main.jni.srcDirs = [] sourceSets.main.jniLibs.srcDir 'src/main/libs' defaultConfig { applicationId "com.example.anannyauberoi.testingcam" minSdkVersion 15 targetSdkVersion 25 versionCode 1 versionName "1.0" ndk { moduleName "app" cFlags "-std=c+

Android Studio C++ NDK library example

依然范特西╮ 提交于 2020-01-11 04:05:09
问题 I would like to download some working example of Android Studio NDK project with C or C++ which will be compiled to .so library (or APK from which I can extract .so). I have tried ndkbuild with Android.mk build and also CMake with CMakeLists.txt, official and unofficial tutorials on Windows... If I try them on android from same app (java), it is working but I want to use NDK in Unity3D on android and I keep getting DllNotFoundException. I uploaded my Android and Unity projects to github. 回答1:

Is it possible to set affinity with sched_setaffinity in Android?

允我心安 提交于 2020-01-10 10:19:10
问题 Is it possible to set CPU affinity in native C code compiled with the Android NDK? Since the system is using a Linux kernel, it should be possible to use the sched_setaffinity/sched_getaffinity functions, but when I compile with the NDK, I get errors complaining that the cpu_set_t type is unknown (which is used as an argument to the functions). Is there any other way to accomplish this? When I compile with CodeSourcerys ARM compiler (arm-none-linux-gnueabi-gcc) this does not seem to be a

How to set NDK Build path in OSX for Android studio

时光总嘲笑我的痴心妄想 提交于 2020-01-10 08:48:29
问题 I had set the ANDROID_NDK_HOME as /Users/Shajilshocker/Documents/Android/NDK/android-ndk-r10b using a mac osx application called Environment Variables . I had confirmed that it set the path correctly in Terminal echo $ANDROID_NDK_HOME But when I run a shell file in a Android Studio project which invokes ndk-build I get the following error ndk-build: command not found How to make sure that ndk-build is in your build path ? How to set ndk-build in my build path ? Thanks for any help 回答1: Well,

Building OpenCV for Android and using it with the NDK

☆樱花仙子☆ 提交于 2020-01-10 08:06:58
问题 Context : I am currently developing an app on Android Studio for the Moverio BT 200 augmented reality glasses. I am using OpenCV, and specifically, the arUco module of the library. This module has to be used with the NDK. Also, it is not on the stable release, so I compiled the library myself (using this guide : https://zami0xzami.wordpress.com/2016/03/17/building-opencv-for-android-from-source/). The build of the library went well. After that, I made a android studio project (customOCVtest).