当前位置: 技术问答>linux和unix
【继续100分求助】移植miniGUI,编译zlib库出错。
来源: 互联网 发布时间:2017-02-17
本文导语: [root@localhost zlib-1.2.3]# make install cp zlib.h zconf.h /usr/local/arm/2.95.3/arm-linux/include chmod 644 /usr/local/arm/2.95.3/arm-linux/include/zlib.h /usr/local/arm/2.95.3/arm-linux/include/zconf.h cp libz.so.1.2.3 /usr/local/arm/2.95.3/arm-linux/lib cd /usr/local/a...
[root@localhost zlib-1.2.3]# make install
cp zlib.h zconf.h /usr/local/arm/2.95.3/arm-linux/include
chmod 644 /usr/local/arm/2.95.3/arm-linux/include/zlib.h /usr/local/arm/2.95.3/arm-linux/include/zconf.h
cp libz.so.1.2.3 /usr/local/arm/2.95.3/arm-linux/lib
cd /usr/local/arm/2.95.3/arm-linux/lib; chmod 755 libz.so.1.2.3
chmod: error while loading shared libraries: libc.so.6: ELF file OS ABI invalid
make: *** [install] Error 127
cp zlib.h zconf.h /usr/local/arm/2.95.3/arm-linux/include
chmod 644 /usr/local/arm/2.95.3/arm-linux/include/zlib.h /usr/local/arm/2.95.3/arm-linux/include/zconf.h
cp libz.so.1.2.3 /usr/local/arm/2.95.3/arm-linux/lib
cd /usr/local/arm/2.95.3/arm-linux/lib; chmod 755 libz.so.1.2.3
chmod: error while loading shared libraries: libc.so.6: ELF file OS ABI invalid
make: *** [install] Error 127
|
|
那就是路径设置问题,如楼上两位所说,环境变量设置不正确.
|
libc.so.6: ELF file OS ABI invalid
---------------
确保你的zlib和以前的libc.so.6 都是同一个工具链编出来的
这里怀疑是你的工具链不支持eabi
---------------
确保你的zlib和以前的libc.so.6 都是同一个工具链编出来的
这里怀疑是你的工具链不支持eabi