The recently released Qt 6.0.0 has changed the distribution of the qtimageformats. Thay are no longer prebuilt and have to be built locally.
I checked out the QT git sources as described here.
git clone git://code.qt.io/qt/qt5.git
cd qt5
git checkout v6.0.0
Then, I edited the .gitmodules file and changed the qtimageformats' ignore flag to the 'addon'. I found out that the configure script is based on the .gitmodules and these flags.
[submodule "qtimageformats"]
depends = qtbase
path = qtimageformats
url = ../qtimageformats.git
branch = dev
status = addon
I setup the required build environment per the Qt doc.
REM Set up Microsoft Visual Studio 2019, where <arch> is amd64, x86, etc.
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64
SET _ROOT=C:\Qt6\Qt5
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
REM Uncomment the below line when using a git checkout of the source repository
REM SET PATH=%_ROOT%\qtrepotools\bin;%PATH%
SET _ROOT=
Then, I retrieved all git modules as described in Qt docs.
perl init-repository
Until now - all works as expected. The configure help really shows the qtimageformats options.
configure --help
...
...
Further image format options:
-jasper .............. Enable JPEG-2000 support using the JasPer library [no]
-mng ................. Enable MNG support [no]
-tiff ................ Enable TIFF support [system/qt/no]
-webp ................ Enable WEBP support [system/qt/no]
However, now I'm stuck on the following error. It seems that those options are not recognized by the configure?
c:\qt6\qt5>configure.bat -tiff qt
+ cd qtbase
+ c:\qt6\qt5\qtbase\configure.bat -top-level -tiff qt
CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:227 (message):
Unknown command line option '-tiff'.
Call Stack (most recent call first):
qtbase/cmake/QtProcessConfigureArgs.cmake:531 (qtConfAddError)
Qt 6 has no documentation regarding the qtimageformats - so I missed probably something but don't know what. Any idea is welcome!