一.解压lib下的两个压缩包 tar xzf libjpeg-turbo-1.2.1.tar.gz tar xzf libpng-1.6.37.tar.gz
cd libjpeg-turbo-1.2.1 ./configure --prefix=/work/projects/libjpeg-turbo-1.2.1/tmp/ --host=arm-linux make make install
cd libpng-1.6.37/ ./configure --prefix=/work/projects/libpng-1.6.37/tmp/ --host=arm-linux make make install
4.1把编译出来的头文件应该放入: /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/usr/include
cd /work/projects/libjpeg-turbo-1.2.1/tmp/include cp * /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/usr/include cd /work/projects/libpng-1.6.37/tmp/include cp * /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/usr/include
4.2把编译出来的库文件应该放入: /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib
cd /work/projects/libjpeg-turbo-1.2.1/tmp/lib cp so -d /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib cd /work/projects/libpng-1.6.37/tmp/lib cp so -d /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib
cd /work/projects/libjpeg-turbo-1.2.1/tmp/lib cp .so /work/nfs_root/fs_mini_mdev_new/lib/ -d cd /work/projects/libpng-1.6.37/tmp/lib cp .so /work/nfs_root/fs_mini_mdev_new/lib/ -d
到顶层目录下执行make,将生成的PicPrc拿到开发板上运行
运行方法:
转化格式 图像文件 缩放比例 旋转角度
PicPrc <format> <file> <size 0-10 of zoom> <angle 0-360 of rotate>
例:./PicPrc png2rgb test.png 2.2 222.2