1、下载地址:
http://valgrind.org/downloads/current.html#current
2、配置:
./configure CC=arm-none-linux-gnueabi-gcc
--host=arm-unknown-linux-gnueabi
--prefix=/home/xtank/project/linux_compress_file/valgrind/source_build_valgrind
如果报错:
checking dependency style of arm-none-linux-gnueabi-gcc... gcc3
checking for diff -u... yes
checking for a supported version of gcc... ok (4.6.1)
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnueabi
checking for a supported CPU... no (arm)
configure: error: Unsupported host architecture. Sorry
修改configure文件, 查找armv7处,
5393 armv7*)
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5395 $as_echo "ok (${host_cpu})" >&6; }
5396 ARCH_MAX="arm"
5397 ;;
修改为:
5393 armv7*|arm*)
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5395 $as_echo "ok (${host_cpu})" >&6; }
5396 ARCH_MAX="arm"
5397 ;;
3、编译:
make && make install;
阅读(3928) | 评论(0) | 转发(0) |