1.下载库 http://www.ijg.org/ 下载 jpegsrc.v9e.tar.gz
2.准备好空文件夹位置
opt/libdecode opt/libdecode/lib opt/libdecode /include
3.解压好下载的文件,在主文件夹下,命令行设置config文件 ./configure –prefix=/opt/libdecode –exec-prefix=/opt/libdecode –enable-shared –enable-static -build=i386 -host=arm
4.此时生成了Makefile文件,设置Makefile文件
CC=gcc 改为 CC=arm-linux-gcc
AR=ar 改为 AR=arm-linux-ar
RANLIB =ranlib 改为 RANLIB = arm-linux-ranlib
5. make make install
原创文章,作者:6024010,如若转载,请注明出处:https://blog.ytso.com/245442.html