NDK 编译静态库
fatal error: xx.h: No such file or directory
或者
fatal error: ‘xx.h’ file not found #include “xx.h”
Google了很久才知道,网上的说法不是很明确。
在进行ndk-build的时候,先要进入到工程目录下Jni所在目录,在执行ndk-build操作。报如上错误 表示 你进入的工程目录过深了。
图解:
初始如下图:
打开Terminal 输入cd TMessagesProj
第一次的时候在网上找的 说要进入到jni目录下 再执行ndk-build操作,于是乎
然后就报错了
fatal error: xx.h: No such file or directory /( fatal error: ‘xx.h’ file not found #include “xx.h”)
最终返回到TMessagesProj 执行ndk-build 成功了。
fatal error: xx.h: No such file or directory和
fatal error: ‘xx.h’ file not found #include “xx.h”
是一种错误信息,只是ndk版本不同报的不同,前者是较早版本报错的文案,后者是最新的报错文案
希望能帮助到和我一样的ndk的初学者