一、zlib-1.2.6 gcp@gcp-virtual-machine:~/cross_compile/zlib-1.2.6$ export CC=arm-fsl-linux-gnueabi-gcc gcp@gcp-virtual-machine:~/cross_compile/zlib-1.2.6$ ./configure –prefix=$PWD/imx6_install make make install 二、libpng-1.5.6 gcp@gcp-virtual-machine:~/cross_compile/libpng-1.5.6$ ./configure –host=arm-linux CC=arm-fsl-linux-gnueabi-gcc –prefix=$PWD/imx6_install LDFLAGS=-L/home/gcp/cross_compile/zlib-1.2.6/ CPPFLAGS=-I/home/gcp/cross_compile/zlib-1.2.6/ make make install 三、jpeg-8d gcp@gcp-virtual-machine:~/cross_compile/jpeg-8d$ ./configure CC=arm-fsl-linux-gnueabi-gcc –host=arm-linux –prefix=$PWD/imx6_install make make install 四、gsnap Makefile: CC = arm-fsl-linux-gnueabi-gcc CFLAGS = -I/home/gcp/cross_compile/jpeg-8d/imx6_install/include -I/home/gcp/cross_compile/zlib-1.2.6/imx6_install/include -I/home/gcp/cross_compile/libpng-1.5.6/imx6_install/include LDFLAGS = -L/home/gcp/cross_compile/zlib-1.2.6/imx6_install/lib -L/home/gcp/cross_compile/libpng-1.5.6/imx6_install/lib -L/home/gcp/cross_compile/jpeg-8d/imx6_install/lib -lpng -ljpeg -lz targets = gsnap objs = gsnap.o all: $(targets) $(targets): $(objs) @echo “[ Building] $@” $(CC) $^ -o $@ $(LDFLAGS) %.o: %.c @echo “[GCC Compiling] $^” $(CC) $(CFLAGS) -c $^ -o $@ clean: -rm $(targets) $(objs)
<
免责声明:文章内容来自互联网,本站不对其真实性负责,也不承担任何法律责任,如有侵权等情况,请与本站联系删除。
转载请注明出处:嵌入式linux 截图,arm截图,gsnap https://www.yhzz.com.cn/a/21625.html