dengdang2008 发表于 2008-05-21 21:15

请教 交叉编译的问题 ??

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

cjaizss 发表于 2008-05-21 22:12

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

system888net 发表于 2008-05-21 23:47

find / -name libz.so.1 -print

dengdang2008 发表于 2008-05-22 16:52

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

dengdang2008 发表于 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: *** [] Error 1

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

alucard_yk 发表于 2008-05-23 16:25

你下的库和你的环境不兼容,这种问题太长见了
页: [1]
查看完整版本: 请教 交叉编译的问题 ??