My goal is to build amixer from alsa-utils-1.0.29 using the Android NDK into an executable file that I can use on an Android device.
I cannot find a way to create it using ndk-build, and I cannot find documentation on how to do this.
Is there any way to do this?
Edit:
I tried cross-compiling alsa-lib and alsa-utils on Ubunto using this guide , but the amixer result does not start on Android (says there is no such file or directory).
When I use ndk-build, amixer does not compile (continues to complain about undefined links).
Edit 2: The
steps I took are not:
- Downloaded alsa-lib and alsa-utils from the alsa project site
- Compiled alsa-lib using Android.mk based on this Android.mk - succeeded
- Compiled alsa-utils, based on this SO question: alsa-utils + ndk-build does not work
- At first I constantly got errors saying that there is no rule for creating amixer.o. Only replacing $ (LOCAL_PATH) with a hard-coded path resolved it
- Now that the compilation - although Android.mk indicates all the necessary inclusions, I received many undefined help errors, such as: "undefined reference to" snd_ctl_card_info_sizeof ""
What is the way to create alsa-utils in a way that it can use on Android?
source
share