gpt4 book ai didi

ffmpeg - MXE 编译,openjpeg.h not found 错误

转载 作者:行者123 更新时间:2023-12-04 23:01:38 24 4
gpt4 key购买 nike

我正在为 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 hub 问题:https://github.com/mxe/mxe/issues/2630

关于ffmpeg - MXE 编译,openjpeg.h not found 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66960848/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com