安装libjpeg后“jpeglib.h:没有这样的文件或目录”?

时间:2013-12-09 11:19:13

标签: c++ libjpeg

以下是我在MSYS中编译libjpeg-9的方法:

  1. 装载D:/Qt/Qt5.1.1/Tools/mingw48_32/ / mingw
  2. ./ configure --prefix = / mingw
  3. 在jconfig.h中更改“#define HAVE_PROTOTYPES 1”
  4. 使
  5. make install
  6. 然后我编译了一个用python编写的演示,需要libjpeg的支持。正如“intall.txt”指示的那样,我检查了“include”目录中的“jpeglib.h jerror.h jconfig.h jmorecfg.h”和“lib”目录中的“libjpeg.a”。但是我得到了“致命错误:jpeglib.h:没有这样的文件或目录”。相关的环境变量如下:

    1. 路径 - D:\ Qt \ Qt5.1.1 \ Tools \ mingw48_32 \ bin
    2. lib - D:\ Qt \ Qt5.1.1 \ Tools \ mingw48_32 \ lib
    3. 包括 - D:\ Qt \ Qt5.1.1 \ Tools \ mingw48_32 \ include
    4. 有人可以帮我解决吗?


      make[1]: Entering directory `/c/jpeg-9'
       /bin/mkdir -p '/mingw/lib'
       /bin/sh ./libtool   --mode=install /bin/install -c   libjpeg.la '/mingw/lib'
      libtool: install: /bin/install -c .libs/libjpeg.dll.a /mingw/lib/libjpeg.dll.a
      libtool: install: base_file=`basename libjpeg.la`
      libtool: install:  dlpath=`/bin/sh 2>&1 -c '. .libs/'libjpeg.la'i; echo libjpeg-9.dll'`
      libtool: install:  dldir=/mingw/lib/`dirname ../bin/libjpeg-9.dll`
      libtool: install:  test -d /mingw/lib/../bin || mkdir -p /mingw/lib/../bin
      libtool: install:  /bin/install -c .libs/libjpeg-9.dll /mingw/lib/../bin/libjpeg-9.dll
      libtool: install:  chmod a+x /mingw/lib/../bin/libjpeg-9.dll
      libtool: install:  if test -n '' && test -n 'strip --strip-unneeded'; then eval 'strip --strip-unnee
      ded /mingw/lib/../bin/libjpeg-9.dll' || exit 0; fi
      libtool: install: /bin/install -c .libs/libjpeg.lai /mingw/lib/libjpeg.la
      libtool: install: /bin/install -c .libs/libjpeg.a /mingw/lib/libjpeg.a
      libtool: install: chmod 644 /mingw/lib/libjpeg.a
      libtool: install: ranlib /mingw/lib/libjpeg.a
       /bin/mkdir -p '/mingw/bin'
        /bin/sh ./libtool   --mode=install /bin/install -c cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe w
      rjpgcom.exe '/mingw/bin'
      libtool: install: /bin/install -c .libs/cjpeg.exe /mingw/bin/cjpeg.exe
      libtool: install: /bin/install -c .libs/djpeg.exe /mingw/bin/djpeg.exe
      libtool: install: /bin/install -c .libs/jpegtran.exe /mingw/bin/jpegtran.exe
      libtool: install: /bin/install -c .libs/rdjpgcom.exe /mingw/bin/rdjpgcom.exe
      libtool: install: /bin/install -c .libs/wrjpgcom.exe /mingw/bin/wrjpgcom.exe
      /bin/sh /c/jpeg-9/install-sh -d /mingw/include
      /bin/install -c -m 644 jconfig.h /mingw/include/jconfig.h
       /bin/mkdir -p '/mingw/include'
       /bin/install -c -m 644 jerror.h jmorecfg.h jpeglib.h '/mingw/include'
       /bin/mkdir -p '/mingw/share/man/man1'
       /bin/install -c -m 644 cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 '/mingw/share/man/man1'
      make[1]: Leaving directory `/c/jpeg-9'
      

0 个答案:

没有答案