mtd-utils编译
交叉编译
编译安装zlib:
版本zlib-1.2.8.tar
CC=arm-none-linux-gnueabi-gcc ./configure --shared --prefix=/home/hayden/m3352/arm-2011.03/bin/
编译安装lzo:版本lzo-2.0.3
./configure --host=arm-none-linux-gnueabi --prefix=/home/hayden/m3352/arm-2011.03/bin/
编译安装e2fsprogs:
cd e2fsprogs-1.41.14/
make clean
./configure --host=arm-none-linux-gnueabi --prefix=/home/hayden/m3352/arm-2011.03/bin/
make
make install
mkdir /home/hayden/m3352/arm-2011.03/bin/include/uuid
cp lib/uuid/uuid.h /home/hayden/m3352/arm-2011.03/bin/include/uuid/
cp libuuid.a /home/hayden/m3352/arm-2011.03/bin/lib/
make install-libs
编译安装mtd: mtd-utils-1.4.8.tar
export WITHOUT_XATTR=1
export CROSS=arm-none-linux-gnueabi-
export CFLAGS="-static -O2 -g -I /home/hayden/m3352/arm-2011.03/bin/include -L /home/hayden/m3352/arm-2011.03/bin/lib"
//PC端编译需要用yum install 以上各版本的devel版的库
阅读(1944) | 评论(0) | 转发(0) |