BinderDemo icon indicating copy to clipboard operation
BinderDemo copied to clipboard

Linker errors

Open vishaljhala opened this issue 11 years ago • 4 comments

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.

vishaljhala avatar Feb 25 '14 09:02 vishaljhala

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!

asifgoldpk avatar Dec 12 '15 22:12 asifgoldpk

Thanks for the head-up. I updated the code to work with Android 6 (Marshmallow).

gburca avatar Jan 07 '16 03:01 gburca

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 ?

malzantot avatar Jun 10 '16 22:06 malzantot

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)

malzantot avatar Jun 10 '16 23:06 malzantot