Hi! I've been playing with the amazingly cool desktop/mobile toolchains and ended up looking at wiish but couldn't compile on android.
I filed an issue with wiish <https://github.com/iffy/wiish/issues/68>, but am writing here excluding the wiish-specific parts- this looks to me like some kind of compiler version or compile flag issue. I read that android is deprecating gcc so that might have something to do with it, but I was unable to find details, and nim should generate correct clang compilable code!
I already added --cc:clang to the nim command line, -std=c11 -Wno-implicit-function-declaration below but no dice. The command that errors out is this:
nim c --cc:clang --os:android -d:android --cpu:arm -d:appJavaPackageName=org.wiish.webviewexample --noMain -- gc:regions --header --threads:on --hints:off --compileOnly --nimcache:dist/android/project/org.wiish.webviewexample /app/jni/src/armeabi-v7a ./main_mobile.nim
/opt/android-sdk/ndk-bundle/ndk-build NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/home/carlo/mywiish/dist/android/project/org.wiish.webviewexample/app/jni/Android.mk NDK_APPLICATION_MK=/home/carlo/mywiish/dist/android/project/org.wiish.webviewexample/app/jni/Application.mk APP_ABI=x86_64 NDK_ALL_ABIS=x86_64 NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=/home/carlo/mywiish/dist/android/project/org.wiish.webviewexample/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/home/carlo/mywiish/dist/android/project/org.wiish.web^Cewexample/app/build/intermediates/ndkBuild/debug/lib NDK_APP_PLATFORM=android-14 APP_CFLAGS="-std=c11 -Wno-implicit-function-declaration" /home/carlo/mywiish/dist/android/project/org.wiish.webviewexample/app/build/intermediates/ndkBuild/debug/obj/local/x86_64/libmain.so
And the error: