Issue
This question exists, but it was unable to fix my problem. I'm getting an undefined reference to __android_log_print but I have the include header
#include <android/log.h>
and my Android.mk file has
LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog
LOCAL_LDLIBS := -landroid
I've also tried with just the -llog, to no avail.
Solution
In your code, the second line overrides the first. If you really need -landroid, use
LOCAL_LDLIB +=-landroid
Most likely, the -L$(SYSROOT)/usr/lib
part should be omitted.
Answered By - Alex Cohn
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.