Aaudio doesn't build

classic Classic list List threaded Threaded
5 messages Options
u
Reply | Threaded
Open this post in threaded view
|

Aaudio doesn't build

u
Hello,

Although I added the directive #include <aaudio/AAudio.h> and added aaudio in CMakeLists.txt file in target_link_libraries section, my program doesn't compile for some reason.

What can I do to find source of the problem? I think I did everything right.

Some error messages:
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
error: undefined reference to 'AAudio_createStreamBuilder'
error: undefined reference to 'AAudioStreamBuilder_setPerformanceMode'
....

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/d366390e-b466-454c-adea-cf6aa0796743n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Aaudio doesn't build

Dan Albert
Probably using too low a minSdkVersion for those APIs?

On Fri, Jan 8, 2021, 12:18 u <[hidden email]> wrote:
Hello,

Although I added the directive #include <aaudio/AAudio.h> and added aaudio in CMakeLists.txt file in target_link_libraries section, my program doesn't compile for some reason.

What can I do to find source of the problem? I think I did everything right.

Some error messages:
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
error: undefined reference to 'AAudio_createStreamBuilder'
error: undefined reference to 'AAudioStreamBuilder_setPerformanceMode'
....

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/d366390e-b466-454c-adea-cf6aa0796743n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFVaGhsFCfm1JpurmhrRJONWO0_m-3Pvc4wLyBKUKGBqB2tjcg%40mail.gmail.com.
u
Reply | Threaded
Open this post in threaded view
|

Re: Aaudio doesn't build

u
MinSDKVersion is 22. Is it too low?

On Fri, Jan 8, 2021 at 11:21 PM 'Dan Albert' via android-ndk <[hidden email]> wrote:
Probably using too low a minSdkVersion for those APIs?

On Fri, Jan 8, 2021, 12:18 u <[hidden email]> wrote:
Hello,

Although I added the directive #include <aaudio/AAudio.h> and added aaudio in CMakeLists.txt file in target_link_libraries section, my program doesn't compile for some reason.

What can I do to find source of the problem? I think I did everything right.

Some error messages:
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
error: undefined reference to 'AAudio_createStreamBuilder'
error: undefined reference to 'AAudioStreamBuilder_setPerformanceMode'
....

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/d366390e-b466-454c-adea-cf6aa0796743n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFVaGhsFCfm1JpurmhrRJONWO0_m-3Pvc4wLyBKUKGBqB2tjcg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAJM%2BKQ10_3Hxe8zi6bx_JHKGNyqABu5zbEF78%3Droj3BNEnKPpA%40mail.gmail.com.
u
Reply | Threaded
Open this post in threaded view
|

Re: Aaudio doesn't build

u
Yes, that was the case, thank you.

On Fri, Jan 8, 2021 at 11:24 PM u <[hidden email]> wrote:
MinSDKVersion is 22. Is it too low?

On Fri, Jan 8, 2021 at 11:21 PM 'Dan Albert' via android-ndk <[hidden email]> wrote:
Probably using too low a minSdkVersion for those APIs?

On Fri, Jan 8, 2021, 12:18 u <[hidden email]> wrote:
Hello,

Although I added the directive #include <aaudio/AAudio.h> and added aaudio in CMakeLists.txt file in target_link_libraries section, my program doesn't compile for some reason.

What can I do to find source of the problem? I think I did everything right.

Some error messages:
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
error: undefined reference to 'AAudio_createStreamBuilder'
error: undefined reference to 'AAudioStreamBuilder_setPerformanceMode'
....

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/d366390e-b466-454c-adea-cf6aa0796743n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFVaGhsFCfm1JpurmhrRJONWO0_m-3Pvc4wLyBKUKGBqB2tjcg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAJM%2BKQ3yiesYh0_Ure8H2wAB%2BH9OeRj%2BYBgLt7J8vYt-4WpkqQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Aaudio doesn't build

Phil Burk
In reply to this post by Dan Albert
I agree with Dan. AAudio first appeared in Android O, API 26.

Instead of using AAudio directly, we strongly recommend using Oboe instead.
Oboe uses AAudio on API 27 and later, and uses OpenSL ES on earlier versions.
(AAudio on API 26 is not stable.)
Oboe also has multiple workarounds for problems on various devices and Android versions.
And it can help you get better latency.

https://github.com/google/oboe

Phil Burk

On Friday, January 8, 2021 at 12:21:56 PM UTC-8 Dan Albert wrote:
Probably using too low a minSdkVersion for those APIs?

On Fri, Jan 8, 2021, 12:18 u <[hidden email]> wrote:
Hello,

Although I added the directive #include <aaudio/AAudio.h> and added aaudio in CMakeLists.txt file in target_link_libraries section, my program doesn't compile for some reason.

What can I do to find source of the problem? I think I did everything right.

Some error messages:
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
error: undefined reference to 'AAudio_createStreamBuilder'
error: undefined reference to 'AAudioStreamBuilder_setPerformanceMode'
....

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/d366390e-b466-454c-adea-cf6aa0796743n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/f55a56d4-9b0c-4ccd-b5bc-27520f66816fn%40googlegroups.com.