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

编译media-server的test时提示undefined reference to `network_getip' #336

Open
lxowalle opened this issue May 13, 2024 · 1 comment
Open

Comments

@lxowalle
Copy link
Contributor

参考media-server/compile_cn.md文档,在编译test时报错找不到network_getip符号,是否是编译工具配置的问题,或者是编译方法的问题?

我的编译方法是:

cd sdk 
make clean && make
cd avcodec
make clean && make
cd media-server
make clean && make
cd media-server/test
make clean && make   # 此时报错

报错信息:
/usr/bin/ld: debug.ubuntu22.04-linux64/objs/../../sdk/libice/test/ice-transport.o: in function ice_transport_bind': /home/aaaireader/media-server/test/../../sdk/libice/test/ice-transport.c:465: undefined reference to network_getip'
collect2: error: ld returned 1 exit status

@ireader
Copy link
Owner

ireader commented May 14, 2024

编译时缺少了一个文件, 麻烦修改下test/Makefile,增加如下一行:
SOURCE_FILES += $(ROOT)/source/port/sysnetconfig.c

image

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

2 participants