android-ndk

Android NDK. No implementation found for native Lcom

被刻印的时光 ゝ 提交于 2020-01-02 16:39:19
问题 After all I've managed to "prepare" my eclipse for NDK (atleast i think so), it doesnt argue at c code anymore, but now I'm getting "No implementation found for native Lcom" anytime i execute any native code.. It happens on NDK's samples too.. My .java ... private native float pi(); static { System.loadLibrary("shit"); } ... System.out.println(pi()); ... My .cpp #include <jni.h> jfloat Java_com_example_shit_MainActivity_pi(JNIEnv * env, jobject obj) { return 3.1415; } My .mk LOCAL_PATH := $

android cannot find corresponding jni function

本秂侑毒 提交于 2020-01-02 15:37:27
问题 I've followed here and I've added the .so files to my android project. Loaded the library and the project runs. Now I want to use a function of the library. I tried like this in my MainActivity : public final static native int crypto_aead_chacha20poly1305_encrypt(byte[] jarg1, int[] jarg2, byte[] jarg3, int jarg4, byte[] jarg5, int jarg6, byte[] jarg7, byte[] jarg8, byte[] jarg9); Android gives me that he cannot find the corresponding JNI function. The so files are in jniLibs in the right

How to build OpenCV for Android using libc++ STL library?

↘锁芯ラ 提交于 2020-01-02 11:29:52
问题 I would like to build a OpenCV from source using a libc++ STL library, instead of default GNU STL. LibC++ offers better C++11 and C++14 support. Is it possible to do that? 回答1: I've tested this with OpenCV 2.4.7 and Android NDK r10d. First, you need to download OpenCV source. Unpack the source and replace the platforms/android/android.toolchain.cmake with version that suppports libc++. Now, open modules/core/include/opencv2/core/operations.hpp and change line 69 from (defined __GNUC__ &&

Checking if directory (folder) exists in apk via native code only

我的梦境 提交于 2020-01-02 10:23:39
问题 I need to check wether a certain directory exists in apk. The android/asset_manager.h api seems to be inconsistent - it returns NULL when AAsset* AAssetManager_open(AAssetManager* mgr, const char* filename, int mode); fails to open a file, but for directories AAssetDir* AAssetManager_openDir(AAssetManager* mgr, const char* dirName); 's implementation always returns a new AAssetDir(...) , even if internally it failed to open/find the directory in apk. It is quite irritating that AAssetDir is

visual studio 2015 android is missing .mk files for NDK native development

安稳与你 提交于 2020-01-02 09:59:53
问题 I am using Visual Studio 2015 to compile and test Android native c++ code. I really need to use LOCAL_SHARED_LIBRARIES in android.mk file to use shared native library. But Visual Studio 2015 doesn't even have .mk files. Instead a bunch of XMLs is used. Please help me. 来源: https://stackoverflow.com/questions/36219677/visual-studio-2015-android-is-missing-mk-files-for-ndk-native-development

Android video remove chroma key background

99封情书 提交于 2020-01-02 08:56:17
问题 I have checked this question. It is very similar: I want to record a video with android camera. After that with a library remove the background, which is with chroma key. First I think I should use android NDK in order to escape from SDK memory limitation and use the whole memory. The length of the video is short, a few seconds so maybe is able to handle it. I would prefer to use an SDK implementation and set the android:largeHeap="true" , because of mismatching the .so files architecture.

Has anyone built ZBar using the Android NDK?

霸气de小男生 提交于 2020-01-02 08:43:32
问题 I am trying to integrate ZBar in my Android app but I cannot build the native library. I was wondering if anyone did this before and is willing to share it with me? 回答1: I was just looking for something similar and came across this: http://www.blackdogfoundry.com/blog/?p=139 I don't know if it will help but it looks like it's what you're trying to do. Hope it helps. 回答2: I know the question is old but the android SDK is available by ZBar: http://sourceforge.net/projects/zbar/files/ 来源: https:

Has anyone built ZBar using the Android NDK?

夙愿已清 提交于 2020-01-02 08:42:57
问题 I am trying to integrate ZBar in my Android app but I cannot build the native library. I was wondering if anyone did this before and is willing to share it with me? 回答1: I was just looking for something similar and came across this: http://www.blackdogfoundry.com/blog/?p=139 I don't know if it will help but it looks like it's what you're trying to do. Hope it helps. 回答2: I know the question is old but the android SDK is available by ZBar: http://sourceforge.net/projects/zbar/files/ 来源: https:

Google Play Game Services integration fails with “Play Games callback indicates connection failure.”

六月ゝ 毕业季﹏ 提交于 2020-01-02 06:23:51
问题 I have integrated Google Game Services with my NDK game using the minimalist code example. When starting the app, the authentication fails with this in the logs: V/GamesNativeSDK( 7212): Play Games callback indicates connection failure. I/GamesNativeSDK( 7212): UI interaction required to connect to Google Play. I/TeapotNativeActivity( 7212): Sign in finished with a result of -3 I/biplane ( 7212): OnAuthActionFinished I/biplane ( 7212): You are not logged in! I/TeapotNativeActivity( 7212):

Overriding commands for target Android Makefile

元气小坏坏 提交于 2020-01-02 05:09:05
问题 I am trying to compile one of the modules in my Android ndk project with g++ although the sources are all in C. My eyes are irritated by the make system warnings: `C:/NVPACK/android-ndk-r8d/build/core/build-binary.mk:348: warning: overriding commands for target 'obj/local/armeabi/objs/xxx/yyy.o'` `C:/NVPACK/android-ndk-r8d/build/core/build-binary.mk:345: warning: ignoring old commands for target 'obj/local/armeabi/objs/xxx/yyy.o'` And these warning pairs will be printed as much as there will