1. zlib-1.2.3 compilation
- cheney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$ ./configure
-
Checking for gcc...
-
Building static library libz.a version 1.2.3 with gcc.
-
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 errno.h... Yes.
-
Checking for mmap support... Yes.
- heney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$
cheney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$
cheney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$ make
gcc -O3 -DUSE_MMAP -c -o example.o example.c
gcc -O3 -DUSE_MMAP -c -o adler32.o adler32.c
gcc -O3 -DUSE_MMAP -c -o compress.o compress.c
gcc -O3 -DUSE_MMAP -c -o crc32.o crc32.c
gcc -O3 -DUSE_MMAP -c -o gzio.o gzio.c
gcc -O3 -DUSE_MMAP -c -o uncompr.o uncompr.c
gcc -O3 -DUSE_MMAP -c -o deflate.o deflate.c
gcc -O3 -DUSE_MMAP -c -o trees.o trees.c
gcc -O3 -DUSE_MMAP -c -o zutil.o zutil.c
gcc -O3 -DUSE_MMAP -c -o inflate.o inflate.c
gcc -O3 -DUSE_MMAP -c -o infback.o infback.c
gcc -O3 -DUSE_MMAP -c -o inftrees.o inftrees.c
gcc -O3 -DUSE_MMAP -c -o inffast.o inffast.c
ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
gcc -O3 -DUSE_MMAP -o example example.o -L. libz.a
gcc -O3 -DUSE_MMAP -c -o minigzip.o minigzip.c
gcc -O3 -DUSE_MMAP -o minigzip minigzip.o -L. libz.a
cheney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$ - cheney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$ sudo make install
[sudo] password for cheney:
cp zlib.h zconf.h /usr/local/include
chmod 644 /usr/local/include/zlib.h /usr/local/include/zconf.h
cp libz.a /usr/local/lib
cd /usr/local/lib; chmod 755 libz.a
cd /usr/local/lib; if test -f libz.so.1.2.3; then \
rm -f libz.so libz.so.1; \
ln -s libz.so.1.2.3 libz.so; \
ln -s libz.so.1.2.3 libz.so.1; \
(ldconfig || true) >/dev/null 2>&1; \
fi
cp zlib.3 /usr/local/share/man/man3
chmod 644 /usr/local/share/man/man3/zlib.3
cheney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$
2. lzo-2.05 compilation
- cheney@cheney-ubuntu:~/tar/mtd-utility/lzo-2.05$ ./configure
-
configure: Configuring LZO 2.05
-
checking build system type... i686-pc-linux-gnu
-
checking host system type... i686-pc-linux-gnu
-
checking target system type... i686-pc-linux-gnu
-
checking whether to enable maintainer-specific portions of Makefiles... no
-
checking for gcc... gcc
-
checking whether the C compiler works... yes
-
checking for C compiler default output file name... a.out
-
checking for suffix of executables...
-
checking whether we are cross compiling... no
-
checking for suffix of object files... o
-
checking whether we are using the GNU C compiler... yes
-
checking whether gcc accepts -g... yes
-
checking for gcc option to accept ISO C89... none needed
-
checking whether gcc and cc understand -c and -o together... yes
-
checking for style of include used by make... GNU
-
checking dependency style of gcc... gcc3
-
checking how to run the C preprocessor... gcc -E
-
checking whether the C preprocessor needs special flags... none needed
-
checking for an ANSI C-conforming const... yes
-
checking for grep that handles long lines and -e... /bin/grep
-
checking for egrep... /bin/grep -E
- ..........
- cheney@cheney-ubuntu:~/tar/mtd-utility/lzo-2.05$ make
- cheney@cheney-ubuntu:~/tar/mtd-utility/lzo-2.05$ make install
3. e2fsprogs-1.41.13 compilation
- cheney@cheney-ubuntu:~/tar/mtd-utility/e2fsprogs-1.41.13$ mkdir build
-
cheney@cheney-ubuntu:~/tar/mtd-utility/e2fsprogs-1.41.13$ cd build/
-
cheney@cheney-ubuntu:~/tar/mtd-utility/e2fsprogs-1.41.13/build$
-
cheney@cheney-ubuntu:~/tar/mtd-utility/e2fsprogs-1.41.13/build$ ../configure
- cheney@cheney-ubuntu:~/tar/mtd-utility/e2fsprogs-1.41.13/build$make
- cheney@cheney-ubuntu:~/tar/mtd-utility/e2fsprogs-1.41.13/build$make install-libs
阅读(1478) | 评论(0) | 转发(0) |