Unable to find header files - Android NDK

后端 未结 4 708
南笙
南笙 2020-12-28 19:17

i\'m wrapping a native API to Android by NDK.

But when building it don\'t find the header files.

I have the following structure.

project/jni

4条回答
  •  无人及你
    2020-12-28 20:06

    I solve it, getting all the headers in a folder and including the following line in the Android.mk

    LOCAL_C_INCLUDES := $(LOCAL_PATH)/include-all
    

    This works, but not looks like the best approach.

提交回复
热议问题