gdal正在安装2.4,这是一个问题。运行此make命令
我正在为FFmpeg的交叉编译编译MXE。我按照这里的说明进行操作,在运行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的日志。
请帮忙解决这个问题。谢谢
make gdal_CONFIGURE_OPTS=--with-openjpeg=no ...
将其关闭。
github问题:https://github.com/mxe/mxe/issues/2630