android-ndk

How to build FFmpeg (ver 3.1.1) on Android Studio (ver 2.1.2)

不打扰是莪最后的温柔 提交于 2020-01-10 06:04:47
问题 I try to build and use FFmpeg Library on Android Studio. My Environments Windows 7 64bit, Cygwin64, Android Studtio 2.1.2, FFmpeg 3.1.1, Android NDK r12b Ref. Page http://www.roman10.net/2013/08/18/how-to-build-ffmpeg-with-ndk-r9/ I follow this page. I succeed FFmpeg library build using ./build_android.sh on Cygwin so I try to use FFmpeg Library's on Android Studio. Setting Android Studio for use FFmpeg my project_path/jni/Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL

How to build FFmpeg (ver 3.1.1) on Android Studio (ver 2.1.2)

大兔子大兔子 提交于 2020-01-10 06:04:08
问题 I try to build and use FFmpeg Library on Android Studio. My Environments Windows 7 64bit, Cygwin64, Android Studtio 2.1.2, FFmpeg 3.1.1, Android NDK r12b Ref. Page http://www.roman10.net/2013/08/18/how-to-build-ffmpeg-with-ndk-r9/ I follow this page. I succeed FFmpeg library build using ./build_android.sh on Cygwin so I try to use FFmpeg Library's on Android Studio. Setting Android Studio for use FFmpeg my project_path/jni/Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL

Android NDK build with ANT script

限于喜欢 提交于 2020-01-09 12:52:48
问题 Can we use the ANT script for Android NDK builds ? If Yes how? And if no, then why Not ? I don't have any idea about it 回答1: Call ndk-build from your -pre-build target, like this: <target name="-pre-build"> <exec executable="${ndk.dir}/ndk-build" failonerror="true"/> </target> <target name="clean" depends="android_rules.clean"> <exec executable="${ndk.dir}/ndk-build" failonerror="true"> <arg value="clean"/> </exec> </target> Then you can set ndk.dir to point at the NDK directory from your

Android NDK build with ANT script

左心房为你撑大大i 提交于 2020-01-09 12:52:03
问题 Can we use the ANT script for Android NDK builds ? If Yes how? And if no, then why Not ? I don't have any idea about it 回答1: Call ndk-build from your -pre-build target, like this: <target name="-pre-build"> <exec executable="${ndk.dir}/ndk-build" failonerror="true"/> </target> <target name="clean" depends="android_rules.clean"> <exec executable="${ndk.dir}/ndk-build" failonerror="true"> <arg value="clean"/> </exec> </target> Then you can set ndk.dir to point at the NDK directory from your

android - javah doesn't find my class

岁酱吖の 提交于 2020-01-09 07:15:07
问题 I am having troubles generating the C header file for JNI using javah . Here's the script I use while standing in the <project-dir>\bin directory: javah -classpath C:\PROGRA~2\Android\android-sdk\platforms\android-8\android.jar com.test.JniTest As return I get: ERROR: Could not find class file for 'com.test.JniTest'. Even though the class JniTest certainly is in \com\test . What am I doing wrong? 回答1: You specify the classpath to contain only android.jar . You also need to include the

Force CMake in verbose mode via Gradle and the Android NDK

ぃ、小莉子 提交于 2020-01-09 05:07:03
问题 I'm using Gradle and CMake to compile an Android NDK project from the command line. Previously, I was using Ant and ndk-build but I'm trying to migrate the project completely to Gradle and CMake. In my build.gradle I have the following lines to invoke CMake: externalNativeBuild { cmake { path "src/main/cpp/CMakeLists.txt" } } Now how can I force CMake to print all compiler calls to the console before it makes them? Specifically, I want to see just how CMake runs the compiler and linker. I've

how to use 32bit native libraries on 64 bit Android-L platform

丶灬走出姿态 提交于 2020-01-09 03:19:23
问题 I have a Android application which i compiled with AOSP(Kitkat) as android system application and it was running fine. My application is dependent on native code compiled with Android-NDK as 32 bit libraries. I am copying native libraries inside my android applications libs/armeabi folder and then building my android application in AOSP(I have also modified device.mk to copy my libs in the /system/lib folder). Everything is working fine on Android Kitkat. When i ported my application on

Android: How to integrate a decoder to multimedia framework

☆樱花仙子☆ 提交于 2020-01-08 19:41:14
问题 Recently i have ported a video decoder to android successfully. Also dumped the output on a surfaceview and checked the output using native API's. Now the next task is to implement play, pause, streaming etc. i.e. the other features of the media player. Doing this will be a rework as all these functionalities are already defined in the android multimedia framework. I heard that we can make our decoder as a plug-in and integrate it into Android's multimedia framework. Although i googled

How does native android code written for ARM run on x86?

試著忘記壹切 提交于 2020-01-08 17:36:13
问题 Motorola just released an x86 based Android phone. I'm a little confused as to how native apps/libraries written for ARM(netflix for example) can run on this phone. I'd be grateful if someone could explain. 回答1: Yes, ARM native code runs on Intel x86 using an emulation feature named Houdini What this library does is reads ARM instructions on the fly and converts them to equivalent x86 instructions. This is the reason why many apps may work as is on x86 without actually having to build an

NDK build opencv error

荒凉一梦 提交于 2020-01-07 09:37:08
问题 I encountered an error using the NDK way to compile the source code, I will opencv source code copied to the jni directory, prepared Android.mk and Application.mk as well as the source file. Mk file, compiled the following error, please also Give some advice, thanks! ! ! Operating System: Ubuntu 17210 64bit opencv version: 3.3 android-ndk version: 14b log: [armeabi-v7a] Gdbserver : [arm-linux-androideabi] libs/armeabi-v7a/gdbserver [armeabi-v7a] Gdbsetup : libs/armeabi-v7a/gdb.setup [armeabi