Hi small_leek, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Application, and any of the maintainers: @朱春意 , @Alex_Chao , @small_leek , @jimmy_hero , @caodongxia
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
问题现象:
[ 150s] coders/jpeg.c: In function 'ReadJPEGImage':
[ 150s] coders/jpeg.c:1466:15: error: 'struct jpeg_decompress_struct' has no member named 'process'; did you mean 'progress'?
[ 150s] 1466 | jpeg_info.process == JPROC_PROGRESSIVE ? LineInterlace : NoInterlace;
[ 150s] | ^~~~~~~
[ 150s] | progress
[ 150s] coders/jpeg.c:1466:26: error: 'JPROC_PROGRESSIVE' undeclared (first use in this function)
[ 150s] 1466 | jpeg_info.process == JPROC_PROGRESSIVE ? LineInterlace : NoInterlace;
[ 150s] | ^~~~~~~~~~~~~~~~~
[ 150s] coders/jpeg.c:1466:26: note: each undeclared identifier is reported only once for each function it appears in
[ 150s] coders/jpeg.c:1467:32: error: 'struct jpeg_decompress_struct' has no member named 'process'; did you mean 'progress'?
[ 150s] 1467 | image->compression=jpeg_info.process == JPROC_LOSSLESS ?
[ 150s] | ^~~~~~~
[ 150s] | progress
[ 150s] coders/jpeg.c:1467:43: error: 'JPROC_LOSSLESS' undeclared (first use in this function)
[ 150s] 1467 | image->compression=jpeg_info.process == JPROC_LOSSLESS ?
[ 150s] | ^~~~~~~~~~~~~~
[ 150s] coders/jpeg.c: In function 'WriteJPEGImage':
[ 150s] coders/jpeg.c:2911:11: warning: implicit declaration of function 'jpeg_simple_lossless'; did you mean 'jpeg_enable_lossless'? [-Wimplicit-function-declaration]
[ 150s] 2911 | jpeg_simple_lossless(&jpeg_info,predictor,point_transform);
[ 150s] | ^~~~~~~~~~~~~~~~~~~~
[ 150s] | jpeg_enable_lossless
[ 150s] make[1]: *** [Makefile:7088: coders/jpeg_la-jpeg.lo] Error 1
问题原因: libjpeg-turbo 升级后将D_LOSSLESS_SUPPORTED这个宏控打开支持了LOSSLESS模式,但是他们最新的代码是会导致编译报错,引入问题pr:https://gitee.com/src-openeuler/libjpeg-turbo/pulls/35
解决办法:先disable这段代码
参考上游:ImageMagick最新的上游修复https://github.com/ImageMagick/ImageMagick/commit/1175c9c3197cfcd21970772a62b1a6135c8d68f0
登录 后才可以发表评论