免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2490 | 回复: 5
打印 上一主题 下一主题

请教 交叉编译的问题 ?? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-21 21:15 |只看该作者 |倒序浏览
我交叉编译了以后在开发版上运行时出现如下问题,那位大牛能帮帮忙!谢谢!
./mplayer: error while loading shared libraries: libz.so.1: cannot load shared
object file: No such file or directory

论坛徽章:
3
2015年迎新春徽章
日期:2015-03-04 09:56:11数据库技术版块每日发帖之星
日期:2016-08-03 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
2 [报告]
发表于 2008-05-21 22:12 |只看该作者
你的开发板上有 libz.so.1吗?

论坛徽章:
0
3 [报告]
发表于 2008-05-21 23:47 |只看该作者
find / -name libz.so.1 -print

论坛徽章:
0
4 [报告]
发表于 2008-05-22 16:52 |只看该作者
我从网上下载了zlib库交叉编译了,移植之后就好了
但是出现新的问题./mplayer: 1: Syntax error: "(" unexpected
请问怎么解决啊

论坛徽章:
0
5 [报告]
发表于 2008-05-22 22:20 |只看该作者

还有错误出现了一大堆

/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 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2008-05-23 16:25 |只看该作者
你下的库和你的环境不兼容,这种问题太长见了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP