简体   繁体   English

MXE 编译,openjpeg.h not found 错误

[英]MXE compilation, openjpeg.h not found error

I am compiling MXE for the cross-compilation of FFmpeg.我正在为 FFmpeg 的交叉编译编译 MXE。 I am following the instructions here and after running the make command, the following error occurred:我按照此处的说明操作,运行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

It seems that it was unable to find openjpeg.h and searched in folder openjpeg-2.0 to openjpeg-2.3.似乎找不到 openjpeg.h 并在文件夹 openjpeg-2.0 中搜索到 openjpeg-2.3。 However, when I checked /mxe/usr/i686-w64-mingw32.static/include/, it contains openjpeg-2.4.但是,当我检查 /mxe/usr/i686-w64-mingw32.static/include/ 时,它包含 openjpeg-2.4。

The log for /mxe/log/gdal_i686-w64-mingw32.static is present here . /mxe/log/gdal_i686-w64-mingw32.static 的日志在此处

Please help fix this.请帮助解决这个问题。 Thanks.谢谢。

gdal is installing 2.4 which is an issue. gdal 正在安装 2.4,这是一个问题。 Run this make command make gdal_CONFIGURE_OPTS=--with-openjpeg=no... to turn it off.运行这个 make 命令make gdal_CONFIGURE_OPTS=--with-openjpeg=no...将其关闭。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM