Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

生成so包得时候怎么老是报这个错误 #8

Open
jayronlou opened this issue Jan 7, 2016 · 9 comments
Open

生成so包得时候怎么老是报这个错误 #8

jayronlou opened this issue Jan 7, 2016 · 9 comments

Comments

@jayronlou
Copy link

/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:264: error: undefined reference to 'errx'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:272: error: undefined reference to 'err'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:275: error: undefined reference to 'err'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:287: error: undefined reference to 'err'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:290: error: undefined reference to 'err'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:316: error: undefined reference to 'BZ2_bzWriteOpen'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:317: error: undefined reference to 'errx'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:401: error: undefined reference to 'BZ2_bzWrite'
/Users/intelligentdroid/Desktop/pengpeng/code/apkUpdate/apkpatchlibraryserver/jni/com_cundong_utils_DiffUtils.c:403: error: undefined reference to 'errx'

@lanpy233
Copy link

这个问题解决了吗?我也遇到了

@lixiansky
Copy link

这个生成so文件不得自己写编译文件吗?

@lanpy233
Copy link

恩恩,是啊
我编译的时候出现这个问题
应该是这个cpp文件中的err函数无法引用。
但是err函数好像是系统就有的,不知道为什么编译不过去

@lixiansky
Copy link

不太清楚 我编译的时候没有遇到

@lixiansky
Copy link

我在AndroidStudio里编译的

@lixiansky
Copy link

你这个是要生成差量包?

@ralphgult
Copy link

我也遇到了上面的问题,这个问题有大神知道怎么解决么?

@JohnnysHub
Copy link

此问题我也遇到了,解决方案是在Android.mk中加入如下配置:
LOCAL_ALLOW_UNDEFINED_SYMBOLS := true

@hsiuqnav
Copy link

因为没指定platform版本,默认是3,对应的err.h是个空文件,当然找不到了

在Application.mk中指定一下正确的platform版本就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants