android-ndk

Playing audio with FFMPEG

孤街浪徒 提交于 2020-02-03 10:42:31
问题 I have been trying to port FFMPEG (for playing audio) into Android using NDK. I have had some success I could build FFMPEG and link it via NDK. I could call avcodec_decode_audio3() and decode a given audio file. So here I have a audio buffer output from the function. How do I play this now? Any ffmpeg guys can tell me the exact steps to decode and play audio. I am really clueless of what to do with the audio buffers created I got from avcodec_decode_audio3() . thanks a lot. 回答1: I have

Undefined reference error, can not create shared library

▼魔方 西西 提交于 2020-02-03 08:47:47
问题 Tried so many ways to solve problem but no luck. Here is my Android.mk: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := avcodec LOCAL_SRC_FILES :=libavcodec.a include $(PREBUILT_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := avutil LOCAL_SRC_FILES :=libavutil.a include $(PREBUILT_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := swscale LOCAL_SRC_FILES :=libswscale.a include $(PREBUILT_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := avformat LOCAL_SRC_FILES

how to build / compile ndk application?

大城市里の小女人 提交于 2020-02-01 18:31:08
问题 hi now i am download ndk but i dont know how to build and compile actually i am new for android application....now i am using linux...and i am not well in command line.... embdes@embdes-laptop:~$ cd /home/embdes/projects/android/android-sdk-linux_86 /platform-tools/ embdes@embdes-laptop:~/projects/android/android-sdk-linux_86/platform-tools$ ./adb shell # ls config cache sdcard acct mnt d etc system sys sbin proc init.rc init.goldfish.rc init default.prop data root dev # cd /sdcard # ls LOST

Error computing CMake server result in Android Studio

血红的双手。 提交于 2020-02-01 08:25:06
问题 In Android Studio I'm getting the following error when attempting to build my project: Error computing CMake server result. Check for working C compiler: /Users/donturner/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang Check for working C compiler: /Users/donturner/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -- works Detecting C compiler ABI info Detecting C compiler ABI info - done Detecting C compile features Detecting C

Android NDK - Undefined reference to Android::Mutex, Android::AudioTrack

好久不见. 提交于 2020-01-30 10:04:21
问题 I'm getting strange undefined references at link time for Android::Mutex and Android::AudioTrack used by a project I have taken over. Does anyone have any ideas? There is no Android static library to include is there? SharedLibrary : * *jni.so /Users/kevin/Desktop/player2/videoplayer/videoplayer/obj/local/armeabi-v7a/libamadec.a(android_out.o): In function `__static_initialization_and_destruction_0': /Users/kevin/Desktop/player2/videoplayer/LibPlayer/amadec/audio_out/android_out.cpp:29:

Android NDK - Undefined reference to Android::Mutex, Android::AudioTrack

試著忘記壹切 提交于 2020-01-30 10:04:05
问题 I'm getting strange undefined references at link time for Android::Mutex and Android::AudioTrack used by a project I have taken over. Does anyone have any ideas? There is no Android static library to include is there? SharedLibrary : * *jni.so /Users/kevin/Desktop/player2/videoplayer/videoplayer/obj/local/armeabi-v7a/libamadec.a(android_out.o): In function `__static_initialization_and_destruction_0': /Users/kevin/Desktop/player2/videoplayer/LibPlayer/amadec/audio_out/android_out.cpp:29:

Gradle project sync fail, no toolchains

ぃ、小莉子 提交于 2020-01-30 05:05:54
问题 Hello I'm getting this error in android studio : Gradle project sync failed. Basic functionality (editing, debugging) will not work properly And in messages I get this : Gradle sync failed: No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi I've searched for a solution, but I haven't found one. Hopefully someone from here can help me. 回答1: As MustafaKemal, I canceled an NDK update, and after that I got the Gradle sync error message. What solved my

Android Camera2 executable failed to get frames

纵然是瞬间 提交于 2020-01-25 09:25:14
问题 I have one Camera2 NDK code to open the camera and get images. The code work fine via Android Application/Service, but if I compile and run it as executable the camera opened but I don't get any frames. Any idea? someone succeeded to do it? NOTE I create my own AImageReader via "AImageReader_new" I create my own ANativeWindow via "AImageReader_getWindow" NOTE2 (ADDED) The calls is a little different For Android Application/Service the calls like: public void onCreate() { JNIBridge

Unity 2017.4.34f1 Cant build APK using IL2CPP

别说谁变了你拦得住时间么 提交于 2020-01-25 08:18:27
问题 I try to build my project using Unity 2017.4.34f1 , because Google now need both 32 & 64 bit, so i choose IL2CPP . For Android NDK, I use r13b However, build failed and I get below error ( summary ) : Exception: /Applications/Unity/Hub/Editor/2017.4.34f1/Unity.app/Contents/il2cpp/build/il2cpp.exe did not run properly! Full Error Log: Exception: /Applications/Unity/Hub/Editor/2017.4.34f1/Unity.app/Contents/il2cpp/build/il2cpp.exe did not run properly! UnityEditorInternal.Runner.RunProgram

Unity 2017.4.34f1 Cant build APK using IL2CPP

和自甴很熟 提交于 2020-01-25 08:17:21
问题 I try to build my project using Unity 2017.4.34f1 , because Google now need both 32 & 64 bit, so i choose IL2CPP . For Android NDK, I use r13b However, build failed and I get below error ( summary ) : Exception: /Applications/Unity/Hub/Editor/2017.4.34f1/Unity.app/Contents/il2cpp/build/il2cpp.exe did not run properly! Full Error Log: Exception: /Applications/Unity/Hub/Editor/2017.4.34f1/Unity.app/Contents/il2cpp/build/il2cpp.exe did not run properly! UnityEditorInternal.Runner.RunProgram