phhusson / Superuser

Keeping koush's Superuser fresh
GNU General Public License v3.0
423 stars 50 forks source link

Is this project build-able on nougat with jdk 8? #64

Closed cj360 closed 7 years ago

cj360 commented 7 years ago

jni/su/daemon.c:506:69: error: function definition is not allowed here auto void cb(void *arg, int uid, const char *src, const char *dst) { ^ jni/su/daemon.c:545:15: error: use of undeclared identifier 'cb' bind_foreach(cb, NULL); ^ jni/su/daemon.c:549:53: error: function definition is not allowed here auto void cb(void *arg, int uid, const char *path) { ^ jni/su/daemon.c:566:15: error: use of undeclared identifier 'cb' init_foreach(cb, NULL); ^ 4 errors generated. make: *** [/opt/android-ndk/build/core/build-binary.mk:498: obj/local/x86/objs/su/su/daemon.o] Error 1

Is the error I get when trying to build su on nougat with the latest ndk, and jdk 8. Is it my setup that's causing additional issues?

craigacgomez commented 7 years ago

It's mentioned clearly in the README

Make sure the SDK Platform for API 19 is installed, through the Android SDK Manager. Install NDK Revision 9b from here or use the latest and set NDK_TOOLCHAIN_VERSION=4.9.