系统是UBUNTU 11.10
做毕设,要移植wvdial到开发板上
装好arm-linux-gcc 3.4.6了
需要安装zlib,用arm-linux-gcc编译
修改Makefile
CC = arm-linux-gcc
CPP=arm-linux-gcc -E
AR=arm-linux-ar rc
RANLIB=arm-linux-ranlib
进行make时出错
[email protected]:/home/dzg100011/Desktop/arm-linux-software/zlib-1.2.5# ./configure --prefix=/home/install
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.5 with gcc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
[email protected]:/home/dzg100011/Desktop/arm-linux-software/zlib-1.2.5# vi Makefile
[email protected]:/home/dzg100011/Desktop/arm-linux-software/zlib-1.2.5# vi Makefile
[email protected]:/home/dzg100011/Desktop/arm-linux-software/zlib-1.2.5# make
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o example.o example.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o adler32.o adler32.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o compress.o compress.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o crc32.o crc32.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o deflate.o deflate.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o gzclose.o gzclose.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o gzlib.o gzlib.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o gzread.o gzread.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o gzwrite.o gzwrite.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o infback.o infback.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o inffast.o inffast.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o inflate.o inflate.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o inftrees.o inftrees.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o trees.o trees.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o uncompr.o uncompr.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o zutil.o zutil.c
arm-linux-ar rc libz.a adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -o example example.o -L. libz.a
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -c -o minigzip.o minigzip.c
arm-linux-gcc -O3 -D_LARGEFILE64_SOURCE=1 -o minigzip minigzip.o -L. libz.a
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/adler32.o adler32.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/compress.o compress.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/crc32.o crc32.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/deflate.o deflate.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/gzclose.o gzclose.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/gzlib.o gzlib.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/gzread.o gzread.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/gzwrite.o gzwrite.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/infback.o infback.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/inffast.o inffast.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/inflate.o inflate.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/inftrees.o inftrees.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/trees.o trees.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/uncompr.o uncompr.c
arm-linux-gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/zutil.o zutil.c