Closed inferrna closed 4 years ago
This is one of a lot bindgen issues related to libclang and particularly cross compiler config.
You can try either of the following:
llvm-config
in your android ndk toolchain to PATH
env var and set HOST_CC=
with path to host clang.LIBCLANG_PATH=
with path to libclang.so in your android ndk toolchain.In any case I recommend use pre-generated bindings.
Add path to
llvm-config
in your android ndk toolchain toPATH
was helpful, thank you.
I can not solve this issue with above methods. I set BINDGEN_EXTRA_CLANG_ARGS=-I/path/to/folder/containing/cstdint to solve the issue.
@chengchangwu Thanks. Can we create PR to add this workaround to readme and docs?
OK, I will create a PR.
Config:
Output:
Clang version: