cundong / SmartAppUpdates

Android应用增量更新

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
我需要帮助。
之前有过使用 so 的经验,但生成 dll 让我束手无策。
能指点一下吗。
default

@cundong
都是 eclipse 的介绍,我只用过 intellij 和 androidstudio。。。
我用 ndk 编译 ApkPatchLibrary 下 PatchUtils.c 是通过的,生成的 so 可以正常合并分差包。

但在编译 ApkPatchLibraryServer 中 PatchUtils.c 或 DiffUtils.c 时会出现和上面使用 cynwin gcc 一样的错误:
default
好像是因为两者都 #include bzlib.h 但却又找不到该头文件。
是需要配置什么环境变量吗。

请问我的是Mac上的编译的,也是报这个错误,该如何配置?