各位前辈:最近一直做qtopia4.3.3的交叉编译,可就是一直报错,我现有已经把qtopia4.3.3的生成路径/usr/local/Trolltech/QtopiaCore-4.3.3-arm mount 到了板子上的/mnt下。PATH路径设定为/mnt/bin:/usr/bin:/bin:/usr/sbin:/sbin 。可是现在关键是老是报庫相关的错误。我把LD_LBRARRY_PATH设定为/lib:/usr/lib:/mnt/lib 。运行/mnt/example/mainwidow/applicatiohn/下的./application
它提示:
./application: /lib/libc.so.6: version `GLIBC_2.1.3' not found (required by ./application)
./application: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /mnt/lib/libQtGui.so.4)
./application: /lib/libc.so.6: version `GLIBC_2.2' not found (required by /mnt/lib/libQtGui.so.4)
./application: /lib/libc.so.6: version `GLIBC_2.1.3' not found (required by /mnt/lib/libQtGui.so.4)
./application: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /mnt/lib/libQtNetwork.so.4)
./application: /lib/libc.so.6: version `GLIBC_2.1.3' not found (required by /mnt/lib/libQtNetwork.so.4)
./application: /lib/libm.so.6: version `GLIBC_2.2' not found (required by /mnt/lib/libQtCore.so.4)
./application: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /mnt/lib/libQtCore.so.4)
./application: /lib/libc.so.6: version `GLIBC_2.2' not found (required by /mnt/lib/libQtCore.so.4)
./application: /lib/libc.so.6: version `GLIBC_2.1.3' not found (required by /mnt/lib/libQtCore.so.4)
./application: /lib/libc.so.6: version `GLIBC_2.1.2' not found (required by /mnt/lib/libQtCore.so.4)
./application: /lib/libpthread.so.0: version `GLIBC_2.2' not found (required by /mnt/lib/libQtCore.so.4)
./application: /lib/libpthread.so.0: version `GLIBC_2.3.2' not found (required by /mnt/lib/libQtCore.so.4)
./application: /lib/libc.so.6: version `GLIBC_2.1.3' not found (required by /mnt/lib/libstdc++.so.6)
./application: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /mnt/lib/libstdc++.so.6)
./application: /lib/libc.so.6: version `GLIBC_2.2' not found (required by /mnt/lib/libstdc++.so.6)
./application: /lib/libc.so.6: version `GLIBC_2.2.4' not found (required by /mnt/lib/libgcc_s.so.1)
./application: /lib/libc.so.6: version `GLIBC_2.1.3' not found (required by /mnt/lib/libgcc_s.so.1)
我已经把libstdc++.so.6拷贝到了/mnt/lib下了,可它却去/lib下去找。
当我把D_LBRARRY_PATH设定为/mnt/lib:/lib:/usr/lib
它又提示:
./application: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not found (required by /mnt/lib/libdl.so.2)
./application: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not found (required by /mnt/lib/libpthread.so.0)
./application: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not found (required by /mnt/lib/libc.so.6)
我已经把ld-linux.so.2拷贝到了/mnt/lib下了
这时候运行任何命令都提示:
clear
clear: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not found (required by /mnt/lib/libc.so.6)
然后我就再改变LD_LIBRARY_PATH的庫顺序
unset LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/mnt/lib:/usr/lib:/lib
结果和第一次错误一样。
它老提示我/lib下缺少**文件,可是我/mnt/lib下已经有了相应文件。可我的板子上的文件系统除了/tmp其它都是不可写的,连链接也不可以呀!
改变其它的像:
export LD_LIBRARY_PATH=/mnt/lib
提示:
./application: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not found (required by /mnt/lib/libdl.so.2)
./application: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not found (required by /mnt/lib/libpthread.so.0)
./application: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not found (required by /mnt/lib/libc.so.6)
它现在就是提示/lib下没有**文件,可是在我的挂载的/mnt/lib下我已经 从arm-linux-gcc交叉编译器的/arm-linux/lib目录下拷贝过来了。你们说这该怎么办。
阅读(1625) | 评论(2) | 转发(0) |