以下是我在MSYS中编译libjpeg-9的方法:
然后我编译了一个用python编写的演示,需要libjpeg的支持。正如“intall.txt”指示的那样,我检查了“include”目录中的“jpeglib.h jerror.h jconfig.h jmorecfg.h”和“lib”目录中的“libjpeg.a”。但是我得到了“致命错误:jpeglib.h:没有这样的文件或目录”。相关的环境变量如下:
有人可以帮我解决吗?
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'