MXE 编译,openjpeg.h 未找到错误

MXE compilation, openjpeg.h not found error

我正在为FFmpeg的交叉编译编译MXE。 我按照 here 的说明进行操作,在 运行 make 命令之后,发生了以下错误:

[build]       proj                   i686-w64-mingw32.static
[done]        proj                   i686-w64-mingw32.static                                  27156 KiB      0m10.026s
[build]       libgeotiff             i686-w64-mingw32.static
[done]        libgeotiff             i686-w64-mingw32.static                                  41492 KiB      0m19.380s
[build]       netcdf                 i686-w64-mingw32.static
[done]        netcdf                 i686-w64-mingw32.static                                  114152 KiB     0m22.519s
[build]       openjpeg               i686-w64-mingw32.static
[done]        openjpeg               i686-w64-mingw32.static                                  38572 KiB      0m9.627s
[build]       spatialite             i686-w64-mingw32.static
[done]        spatialite             i686-w64-mingw32.static                                  380204 KiB     0m58.171s
[build]       gdal                   i686-w64-mingw32.static

Failed to build package gdal for target i686-w64-mingw32.static!
------------------------------------------------------------
checking for nc_open in -lnetcdf... no
configure: JasPer (JPEG2000) support disabled.
configure: error: openjpeg.h not found in /home/hiqbal/mxe/usr/i686-w64-mingw32.static/include/openjpeg-2.0 or /home/hiqbal/mxe/usr/i686-w64-mingw32.static/include/openjpeg-2.1 or /home/hiqbal/mxe/usr/i686-w64-mingw32.static/include/openjpeg-2.2 or /home/hiqbal/mxe/usr/i686-w64-mingw32.static/include/openjpeg-2.3
Makefile:851: recipe for target 'build-only-gdal_i686-w64-mingw32.static' failed
make[1]: *** [build-only-gdal_i686-w64-mingw32.static] Error 1
make[1]: Leaving directory '/home/hiqbal/mxe'
real    0m17.644s
user    0m13.999s
sys 0m1.669s
------------------------------------------------------------
[log]      /home/hiqbal/mxe/log/gdal_i686-w64-mingw32.static

Makefile:851: recipe for target '/home/hiqbal/mxe/usr/i686-w64-mingw32.static/installed/gdal' failed
make: *** [/home/hiqbal/mxe/usr/i686-w64-mingw32.static/installed/gdal] Error 1

好像找不到openjpeg.h,在文件夹openjpeg-2.0里搜索到openjpeg-2.3。但是,当我检查 /mxe/usr/i686-w64-mingw32.static/include/ 时,它包含 openjpeg-2.4.

存在 /mxe/log/gdal_i686-w64-mingw32.static 的日志 here.

请帮忙解决这个问题。谢谢。

gdal 正在安装 2.4,这是一个问题。 运行 此 make 命令 make gdal_CONFIGURE_OPTS=--with-openjpeg=no ... 将其关闭。

git 集线器问题:https://github.com/mxe/mxe/issues/2630