-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
56 lines (38 loc) · 1.48 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
用法:
一.解压lib下的两个压缩包
tar xzf libjpeg-turbo-1.2.1.tar.gz
tar xzf libpng-1.6.37.tar.gz
二.交叉编译libjpeg
cd libjpeg-turbo-1.2.1
./configure --prefix=/work/projects/libjpeg-turbo-1.2.1/tmp/ --host=arm-linux
make
make install
三.交叉编译libpng
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
五.拷贝.so文件到开发板上
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