请教 交叉编译的问题 ??

发布于 2022-09-18 23:32:28 字数 166 浏览 12 评论 0

我交叉编译了以后在开发版上运行时出现如下问题,那位大牛能帮帮忙!谢谢!
./mplayer: error while loading shared libraries: libz.so.1: cannot load shared
object file: No such file or directory

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

镜花水月 2022-09-25 23:32:28

你的开发板上有 libz.so.1吗?

聆听风音 2022-09-25 23:32:28

find / -name libz.so.1 -print

痴骨ら 2022-09-25 23:32:28

我从网上下载了zlib库交叉编译了,移植之后就好了
但是出现新的问题./mplayer: 1: Syntax error: "(" unexpected
请问怎么解决啊

数理化全能战士 2022-09-25 23:32:28

/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x64): undefined reference to `_nss_files_getaliasent_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x6c): undefined reference to `_nss_files_endaliasent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x74): undefined reference to `_nss_files_setaliasent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x7c): undefined reference to `_nss_files_getaliasbyname_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x84): undefined reference to `_nss_files_getetherent_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x8c): undefined reference to `_nss_files_endetherent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x94): undefined reference to `_nss_files_setetherent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x9c): undefined reference to `_nss_files_getgrent_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0xa4): undefined reference to `_nss_files_endgrent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0xac): undefined reference to `_nss_files_setgrent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0xb4): undefined reference to `_nss_files_getgrgid_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0xbc): undefined reference to `_nss_files_getgrnam_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0xc4): undefined reference to `_nss_files_gethostent_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0xcc): undefined reference to `_nss_files_endhostent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0xd4): undefined reference to `_nss_files_sethostent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0xdc): undefined reference to `_nss_files_gethostbyaddr_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0xe4): undefined reference to `_nss_files_gethostbyname_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0xec): undefined reference to `_nss_files_gethostton_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0xf4): undefined reference to `_nss_files_getntohost_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0xfc): undefined reference to `_nss_dns_gethostbyaddr_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x104): undefined reference to `_nss_dns_gethostbyname_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x10c): undefined reference to `_nss_dns_gethostbyname2_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x114): undefined reference to `_nss_files_getnetgrent_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x11c): undefined reference to `_nss_files_endnetgrent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x124): undefined reference to `_nss_files_setnetgrent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x12c): undefined reference to `_nss_files_getnetent_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x134): undefined reference to `_nss_files_endnetent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x13c): undefined reference to `_nss_files_setnetent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x144): undefined reference to `_nss_files_getnetbyname_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x14c): undefined reference to `_nss_files_getnetbyaddr_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x154): undefined reference to `_nss_dns_getnetbyname_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x15c): undefined reference to `_nss_dns_getnetbyaddr_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x164): undefined reference to `_nss_files_getprotoent_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x16c): undefined reference to `_nss_files_endprotoent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x174): undefined reference to `_nss_files_setprotoent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x17c): undefined reference to `_nss_files_getprotobyname_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x184): undefined reference to `_nss_files_getprotobynumber_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x18c): undefined reference to `_nss_files_getpwent_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x194): undefined reference to `_nss_files_endpwent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x19c): undefined reference to `_nss_files_setpwent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x1a4): undefined reference to `_nss_files_getpwnam_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x1ac): undefined reference to `_nss_files_getpwuid_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x1b4): undefined reference to `_nss_files_getrpcent_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x1bc): undefined reference to `_nss_files_endrpcent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x1c4): undefined reference to `_nss_files_setrpcent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x1cc): undefined reference to `_nss_files_getrpcbyname_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x1d4): undefined reference to `_nss_files_getrpcbynumber_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x1dc): undefined reference to `_nss_files_getservent_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x1e4): undefined reference to `_nss_files_endservent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x1ec): undefined reference to `_nss_files_setservent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x1f4): undefined reference to `_nss_files_getservbyname_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x1fc): undefined reference to `_nss_files_getservbyport_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x204): undefined reference to `_nss_files_getspent_r'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x20c): undefined reference to `_nss_files_endspent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x214): undefined reference to `_nss_files_setspent'
/opt/host/armv4l/armv4l-unknown-linux/lib/libc.a(nsswitch.o)(.data+0x21c): undefined reference to `_nss_files_getspnam_r'
collect2: ld returned 1 exit status
make[1]: *** [] Error 1

[ 本帖最后由 dengdang2008 于 2008-5-22 22:28 编辑 ]

找回味觉 2022-09-25 23:32:28

你下的库和你的环境不兼容,这种问题太长见了

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文