for android build, CMAKE_C_COMPILER must manually set FILEPATH for c compiler. otherwise we get error “incompatible with elf_x86_64”. i think that cmake can’t choose correct c compiler for android build.
i set those:
ANDROID_PLATFORM=android-26
ANDROID_ABI=x86_64
Sorry, but more details will need to be given for me (or, I suspect, anyone else) to actually be able to assist you. I don’t know what your setup is or what you’ve attempted. Specifics go much longer than paraphrasing error messages and being vague about what you actually did.