BinderDemo
BinderDemo copied to clipboard
Linker errors
Hi - Thanks a lot for putting it up together.
Initially I ran into multiple compilation issues. But I have the android source code so I Imported lot of files(folders full of headers) and got through it.
In linker error, it gave multiple errors. I was able to find libutil and libcutil from NDK and get through it. However my whole machine does not have libbinder. So cannot get through it. I have api 19. Do you know how to resolve this liner error?
Regards, Vishal.
February 12th, 2014 at 10:52 | #8 Reply | Quote There are couple minor modifications required to make it work on latest KitKat: – LOGD macro is now ALOGD – text output is now under #include , not in utils – frameworks/native/include has to be added to LOCAL_C_INCLUDES Thank you for the great example!
Thanks for the head-up. I updated the code to work with Android 6 (Marshmallow).
are the libbinder
and the corresponding header files frameworks/native/include
part of the NDK, or I have to copy them from the AOSP in order to build ?
No worries, Issue solved.
I did what is explained in the README.md
file by placing the source inside the AOSP repo/external
directory.
I built using mm
but I had to modify the include of TextOutput.h
to become
#include <utils/TextOutput.h>
instead of
#include <binder/TextOutput.h>
My build target is KitKat (Android-19)