android-ndk

Unsatisfied Link Error: dlopen failed: cannot locate symbol “atof”? [duplicate]

柔情痞子 提交于 2020-01-07 07:43:21
问题 This question already has an answer here : Android mupdf java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “atof” (1 answer) Closed 3 years ago . I am trying to implement the mupdf library to render pdf documents in my app.My app crashes with the following error log:- java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "atof" referenced by "libmupdf_java.so"... at java.lang.Runtime.loadLibrary(Runtime.java:364) at java.lang.System.loadLibrary(System.java:526)

Cannot load library: reloc_library[1285]: cannot locate 'rand'

落花浮王杯 提交于 2020-01-07 05:53:40
问题 I'm trying to use PJSIP library for my Android application. I built pjsua sample application according to this manual: https://trac.pjsip.org/repos/wiki/Getting-Started/Android But when sample application is launching, exception triggers: 12-06 15:03:58.043: D/dalvikvm(628): Trying to load lib /data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so 0x4129d980 12-06 15:03:58.064: W/dalvikvm(628): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/pjsip/pjsua2/app/MyApp; 12-06

Android NDK w/ ffmpeg library - error running project

孤街浪徒 提交于 2020-01-07 05:47:12
问题 Using this guide, http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/, I successfully compiled ffmpeg-2.4.2 with Android NDK 10, but now I'm having issues using it in my eclipse project. The error I'm getting: *** Android NDK: Aborting . Stop. which points to this in prebuilt-library.mk: ifndef prebuilt $(call __ndk_info,ERROR:$(LOCAL_MAKEFILE):$(LOCAL_MODULE): LOCAL_SRC_FILES points to a missing file) $(call __ndk_info,Check that $(prebuilt_path) exists, or that its path is correct) $

error: undefined reference to 'av_free_packet(AVPacket*)' when use NDK to compile ffmpeg

馋奶兔 提交于 2020-01-07 05:03:13
问题 I compiled my cpps to use ffmpeg liberary with ANDROID NDK by my android MK as follow : LOCAL_PATH := $(call my-dir) DEFINES += -DTARGET_POSIX \ -DTARGET_LINUX \ -D_LINUX \ -DTARGET_ANDROID \ -D__STDC_CONSTANT_MACROS include $(CLEAR_VARS) LOCAL_MODULE := libavcodec LOCAL_SRC_FILES := lib/lib/libavcodec.so include $(PREBUILT_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := libavfilter LOCAL_SRC_FILES := lib/lib/libavfilter.so include $(PREBUILT_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL

SurfaceTexture/Surface mapping with ANativeWindow

Deadly 提交于 2020-01-07 04:57:05
问题 Given a GraphicBufferProducer I create a Surface and then retrieve ANativeWindow. Using ANativeWindow_lock I get a pointer to the buffer. Using the buffer, I do a memcpy into the buffer. The problem is that whatever I draw on this buffer is restricted to less than 25% of the screen. Keep in mind that the dimensions of buffer.width and buffer.height are very close to the resolution of the screen itself. My question is, why does the buffer only cover a small portion of the screen? And how do I

Android Studio, NDK - Cannot Run Application

强颜欢笑 提交于 2020-01-07 04:44:13
问题 I have managed to (finally) build a test SDL2 app with Android Studio & NDK using the Gradle experimental plugin. When I try to run the project, it won't run. I get the following error: :app:compileDebugSources :app:transformClassesAndResourcesWithExtractJarsForDebug UP-TO-DATE :app:transformClassesWithDexForDebug UP-TO-DATE :app:processDebugJavaRes UP-TO-DATE :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE :app:validateDebugSigning :app:packageDebug FAILED FAILURE: Build failed

Which version of NDK should I use with a Titanium Android module?

心不动则不痛 提交于 2020-01-07 04:40:27
问题 According to the source and wiki, Titanium requires r9 of the Android NDK. But in the Android archives, the oldest version available is r10e (May 2015). The current version is r14b. With r14b (and r13b) I get compilation failures from ndk-build involving a C++ type mismatch. [ERROR] /Users/jdee/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/native/include/AndroidUtil.h:57:49: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] I can compile a

How to add a single file to paths in Android studio 1.3+ with experimental gradle plugin (NDK)?

蓝咒 提交于 2020-01-07 03:05:45
问题 There are a lot of examples with adding a whole source folder to paths like a cppFlags += "-I${file("src/main/jni/native_app_glue")}".toString() in new experimental gradle plugin for AS 1.3+ Is there a way to add single source file to it? 回答1: The snippet you're showing is adding an include directory, not sources. It will add headers, not .c/.cpp files. I haven't found a way to add a single source. The plugin will look for all the sources inside jni folders. You can add a jni folder using jni

Debug native Android application

送分小仙女□ 提交于 2020-01-07 03:00:33
问题 I'm trying to learn the debug module 'Debug as Android Native Application'. I use the demo 'hello-jni'. I set a breakpoint in the cpp file. Anyway, when I excute the 'Debug as Android Native Application', there comes errors. The console says: [2013-08-09 16:51:12 - HelloJni] Unknown Application ABI: [2013-08-09 16:51:12 - HelloJni] Android [2013-08-09 16:51:12 - HelloJni] Unknown Application ABI: [2013-08-09 16:51:12 - HelloJni] NDK: [2013-08-09 16:51:12 - HelloJni] Unknown Application ABI:

Android, import external library to NDK

醉酒当歌 提交于 2020-01-07 02:59:08
问题 i am making an Android Shapefile reader app on Android with the use of NDK. I want to use C++ to parse shape files. I found library "Shapefile C Library". Github: https://github.com/sw897/shapelib. I am using Android studio and have no idea how to import it to my Android project so i could use functions described in: http://shapelib.maptools.org/shp_api.html Any tips? 回答1: First, start hacking away at the Hello-JNI example from Google: https://github.com/googlesamples/android-ndk/tree/master