ApkPatchLibrary使用ndk-build构建时报错
heyanyanchina123 opened this issue · comments
环境android-ndk-r10e,jni/com_cundong_utils_PatchUtils.c:60: error: undefined reference to 'errx'
这个问题是因为你的编译环境标准库IO中没有errx()函数,如果你是在Window环境,建议你使用cygwin
@cundong
都是 eclipse 的介绍,我只用过 intellij 和 androidstudio。。。
我用 ndk 编译 ApkPatchLibrary 下 PatchUtils.c 是通过的,生成的 so 可以正常合并分差包。
但在编译 ApkPatchLibraryServer 中 PatchUtils.c 或 DiffUtils.c 时会出现和上面使用 cynwin gcc 一样的错误:
好像是因为两者都 #include bzlib.h 但却又找不到该头文件。
是需要配置什么环境变量吗。
请问我的是Mac上的编译的,也是报这个错误,该如何配置?