jpeg环境配置

gec@ubuntu:/mnt/hgfs/share/20200519$ tar xzvf jpegsrc.v9c.tar.gz -C ~
jpeg-9c/
jpeg-9c/wrppm.c
jpeg-9c/wrrle.c
jpeg-9c/maket
gec@ubuntu:~$ cd jpeg-9c
gec@ubuntu:~/jpeg-9c$ l
total 4168
-rw-r--r-- 1 gec gec 376028 Oct 15  2017 aclocal.m4
-rwxr-xr-x 1 gec gec   5826 Oct 15  2017 ar-lib
-rw-r--r-- 1 gec gec   5442 Sep 15  2017 cderror.h
-rw-r--r-- 1 gec gec   4682 Sep  7  1997 cdjpeg.c
gec@ubuntu:~/jpeg-9c$ ./configure --host=arm-none-linux-gnueabi --prefix=/mnt/hgfs/share/20200519/showjpg
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-none-linux-gnueabi
checking target system type... arm-none-linux-gnueabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build e
gec@ubuntu:~/jpeg-9c$ make
make  all-am
make[1]: Entering directory '/home/gec/jpeg-9c'
  CC       jaricom.lo
  CC       jcapimin.lo
  CC       jcapistd.lo
  CC       jcarith.lo
  CC       jccoefct.lo
  CC       jccolor.lo
gec@ubuntu:~/jpeg-9c$ which qmake
/Qt-Embedded-5.7.0/bin/qmake
gec@ubuntu:~/jpeg-9c$ make install

gec@ubuntu:/mnt/hgfs/share/20200519/showjpg$ l
total 1306
drwxrwxrwx 1 root root      0 May 18 18:14  bin
drwxrwxrwx 1 root root      0 May 18 18:14  include
-rwxrwxrwx 1 root root   5288 May 18 18:14  jpg.c
-rwxrwxrwx 1 root root    916 May 18 18:14  jpg.h
-rwxrwxrwx 1 root root   3664 May 18 18:14  jpg.o
drwxrwxrwx 1 root root      0 May 18 18:14  lib
-rwxrwxrwx 1 root root    255 May 18 18:14  main.c
-rwxrwxrwx 1 root root   1240 May 18 18:14  main.o
-rwxrwxrwx 1 root root  25969 May 18 18:14  Makefile
-rwxrwxrwx 1 root root 666386 May 18 18:14  nature.jpeg
drwxrwxrwx 1 root root      0 May 18 18:14  share
-rwxrwxrwx 1 root root 582956 May 18 18:14  showjpg
-rwxrwxrwx 1 root root    184 May 18 18:14  showjpg.pro
-rwxrwxrwx 1 root root  23930 May 18 18:14 'showjpg.pro(1).user'
-rwxrwxrwx 1 root root  23587 May 18 18:14  showjpg.pro.user

gec@ubuntu:/mnt/hgfs/share/20200519/showjpg$ cd include
gec@ubuntu:/mnt/hgfs/share/20200519/showjpg/include$ l
total 80
-rwxrwxrwx 1 root root  1757 May 19 10:20 jconfig.h
-rwxrwxrwx 1 root root 14580 May 19 10:20 jerror.h
-rwxrwxrwx 1 root root 14925 May 19 10:20 jmorecfg.h
-rwxrwxrwx 1 root root 49281 May 19 10:20 jpeglib.h


//jpeglib.h就是所需要的头文件

gec@ubuntu:/mnt/hgfs/share/20200519/showjpg/include$ cd ../bin
gec@ubuntu:/mnt/hgfs/share/20200519/showjpg/bin$ l
total 363
-rwxrwxrwx 1 root root 116168 May 19 10:20 cjpeg
-rwxrwxrwx 1 root root 108396 May 19 10:20 djpeg
-rwxrwxrwx 1 root root 105124 May 19 10:20 jpegtran
-rwxrwxrwx 1 root root  19520 May 19 10:20 rdjpgcom
-rwxrwxrwx 1 root root  21480 May 19 10:20 wrjpgcom
gec@ubuntu:/mnt/hgfs/share/20200519/showjpg/bin$ cd ../lib
gec@ubuntu:/mnt/hgfs/share/20200519/showjpg/lib$ l
total 2558
-rwxrwxrwx 1 root root 1577364 May 19 10:20 libjpeg.a
-rwxrwxrwx 1 root root     939 May 19 10:20 libjpeg.la
-rwxrwxrwx 1 root root 1040132 May 19 10:20 libjpeg.so.9.3.0
drwxrwxrwx 1 root root       0 May 19 10:20 pkgconfig

//jpeg库 

此时编译可能还不行

gec@ubuntu:/Qt-Embedded-5.7.0/bin$ export PATH=`pwd`:$PATH
gec@ubuntu:/Qt-Embedded-5.7.0/bin$ which -a qmake
/Qt-Embedded-5.7.0/bin/qmake
/usr/bin/qmake


gec@ubuntu:/mnt/hgfs/share/20200519/showjpg$ qmake
gec@ubuntu:/mnt/hgfs/share/20200519/showjpg$ make
arm-linux-gcc -c -pipe -march=armv7-a -O2 -Wall -W -fPIC  -I. -Iinclude -I/usr/local/Qt-Embedded-5.7.0/mkspecs/linux-arm-gnueabi-g++ -o jpg.o jpg.c
arm-linux-g++ -Wl,-O1 -o showjpg main.o jpg.o   -L lib/ -ljpeg 
gec@ubuntu:/mnt/hgfs/share/20200519/showjpg$ which -a qmake
/Qt-Embedded-5.7.0/bin/qmake
/usr/bin/qmake

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值