Unsolved Image cannot be decoded depending on build mode
-
The Image can't decode with some build mode.
Only build mode "Debug" can decode correctly.
It is very strange.
Does anyone know how can I resolve this issue ?[Build mode result]
- Debug: OK
- Minimum size release: NG
- Release: NG
- Release with Debug Information: NG
[Error message]
QML Image: Error decoding: qrc:/Resources/image/sample_image.jpg: Unsupported image format[Environment]
Qtcreator- Qt Creator 4.12.2
- Based on Qt 5.14.2 (MSVC 2017, 32 bit)
- Built on Jun 2 2020 01:31:56
- From revision 33c5ff216a
System
- Qt 5.14.2 (i386-little_endian-ilp32 shared (dynamic) release build; by MSVC 2017) on "windows"
- OS: Windows 10 Version 2004 [winnt version 10.0.19041]
- Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2
- Environment:
- Features: QT_NO_EXCEPTIONS
-
@dmhk_4ss said in Image cannot be decoded depending on build mode:
Unsupported image format
Sounds like the jpeg plug-in is only available as debug version.
Does your Qt installation have qjpeg.dll file?
Do you start your app from QtCreator or do you deploy it? -
@jsulm said in Image cannot be decoded depending on build mode:
qjpeg.dll
Thank you for your reply.
I found "qjpeg.dll" in the "C:\Qt\Tools\QtCreator\bin\plugins\imageformats" and "C:\Qt\5.13.0\msvc2017\plugins\imageformats"Do you start your app from QtCreator or do you deploy it?
I started my app from QtCreator.
Thanks.