[AHardwareBuffer] Linker error while trying to use AHardwareBuffer_* APIs

408 views
Skip to first unread message

Abhishek Sharma

unread,
Sep 26, 2017, 1:51:56 PM9/26/17
to android-ndk
Hi,

I am trying to use the AHardwareBuffer APIs in my application but getting a linker error while building.

.cpp:116: undefined reference to `AHardwareBuffer_describe'

Could some one please help me on which library to use for linking ( I am using NDK 15+ with API 26 on my device ).

Regards,
Abhishek


Dan Albert

unread,
Sep 26, 2017, 6:21:36 PM9/26/17
to android-ndk
Did you link against libandroid?

--
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 android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/3c47a072-ba75-42a9-845c-a3e121dc3e81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Abhishek Sharma

unread,
Sep 27, 2017, 11:45:26 AM9/27/17
to android-ndk
Yeah Dan, you are right, I missed that. Thanks a lot !
Reply all
Reply to author
Forward
0 new messages