Issue
I'm attempting to upgrade from ndk-r11c to ndk-r14. When I run r14, I get an error
Android NDK: Module myJNI depends on modules: png jpeg log
In my Android make: LOCAL_SHARED_LIBRARIES := png jpeg log
Solution
Assuming you didn't copy the full error message and it actually said "depends on undefined modules", check the release notes:
Module builds will now fail if they have any missing dependencies. To revert to the old behavior, set APP_ALLOW_MISSING_DEPS=true. See https://github.com/android-ndk/ndk/issues/208.
liblog
shouldn't be in LOCAL_SHARED_LIBRARIES
. You want LOCAL_LDLIBS := -llog
instead. Although, actually, if this warning is firing but your project was building you're not using it anyway.
libjpeg
and libpng
don't appear to be defined in your project. Just remove them since they can't have been used anyway.
Answered By - Dan Albert
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.