cnlohr / rawdrawandroid

Build android apps without any java, entirely in C and Make
MIT License
2.75k stars 197 forks source link

fatal error: 'os_generic.h' file not found #51

Closed wusspuss closed 1 year ago

wusspuss commented 1 year ago

I strictly followed the guide; Android Sdk is in ~/Android/Sdk make keystore works fine make push run produces the following:

mkdir -p makecapk/lib/arm64-v8a
/home/archie/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android30-clang -ffunction-sections -Os -fdata-sections -Wall -fvisibility=hidden -Os -DANDROID -DAPPNAME=\"cnfgtest\" -I./rawdraw -I/home/archie/Android/Sdk/ndk/23.1.7779620/sysroot/usr/include -I/home/archie/Android/Sdk/ndk/23.1.7779620/sysroot/usr/include/android -I/home/archie/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android -fPIC -I. -DANDROIDVERSION=30 -m64 -o makecapk/lib/arm64-v8a/libcnfgtest.so test.c android_native_app_glue.c -L/home/archie/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/30 -Wl,--gc-sections -s -lm -lGLESv3 -lEGL -landroid -llog -shared -uANativeActivity_onCreate
test.c:8:10: fatal error: 'os_generic.h' file not found
#include "os_generic.h"
         ^~~~~~~~~~~~~~
1 error generated.
make: *** [Makefile:122: makecapk/lib/arm64-v8a/libcnfgtest.so] Error 1
wusspuss commented 1 year ago

My bad. Forgot to recursively clone.