Qt-6.5.1: Enabling/Disabling unknown feature 'webp'
-
Hello!
cd /tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1 && /tmp/firmware/staging_sml7105/qt6_sti7105/bin/qt-configure-module . -feature-webp -no-feature-tiff -- -DCMAKE_STAGING_PREFIX=/tmp/firmware/staging_sml7105/qt6_sti7105 CMake Error at /tmp/firmware/staging_sml7105/qt6_sti7105/lib/cmake/Qt6/QtProcessConfigureArgs.cmake:300 (message): Enabling/Disabling unknown feature 'webp' in . Call Stack (most recent call first): /tmp/firmware/staging_sml7105/qt6_sti7105/lib/cmake/Qt6/QtProcessConfigureArgs.cmake:679 (qtConfAddError) make: *** [mk/external_qt6_imageformats.mk:9: /tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1/build.ninja] Error 1
this is strange because
user@37f324a80f53:/tmp/firmware$ staging_sml7105/qt6_sti7105/bin/qt-configure-module build-sh-sti7105/qtimageformats-everywhere-src-6.5.1/ -help Options: -help, -h ............ Display this help screen -feature-<feature> ... Enable <feature> -no-feature-<feature> Disable <feature> [none] -list-features ....... List available features. Note that some features have dedicated command line options as well. 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]
but feature will be found, I'm not sure, if I change directory
user@37f324a80f53:/tmp/firmware$ cd /tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1 user@37f324a80f53:/tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1$ /tmp/firmware/staging_sml7105/qt6_sti7105/bin/qt-configure-module src/imageformats/ -feature-webp -no-feature-tiff Overriding option 'webp' with 'yes' (was: 'undefined') Overriding option 'tiff' with 'no' (was: 'undefined') '/tmp/firmware/staging_sml7105/qt6_sti7105/bin/../libexec/qt-cmake-private' '-DINPUT_webp=yes' '-DINPUT_tiff=no' '/tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1/src/imageformats' CMake Warning (dev) in CMakeLists.txt: No project() command is present. The top-level CMakeLists.txt file must contain a literal, direct call to the project() command. Add a line of code such as project(ProjectName) near the top of the file, but after cmake_minimum_required(). CMake is pretending there is a "project(Project)" command on the first line. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /tmp/firmware/staging_sml7105/qt6_sti7105/lib/cmake/Qt6/qt.toolchain.cmake:18 (if): if given arguments: "ON" An argument named "ON" appears in a conditional statement. Policy CMP0012 is not set: if() recognizes numbers and boolean constants. Run "cmake --help-policy CMP0012" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1/CMakeFiles/3.23.2/CMakeSystem.cmake:6 (include) CMakeLists.txt This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /tmp/firmware/staging_sml7105/qt6_sti7105/lib/cmake/Qt6/qt.toolchain.cmake:165 (if): if given arguments: "NOT" "ON" An argument named "ON" appears in a conditional statement. Policy CMP0012 is not set: if() recognizes numbers and boolean constants. Run "cmake --help-policy CMP0012" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1/CMakeFiles/3.23.2/CMakeSystem.cmake:6 (include) CMakeLists.txt This warning is for project developers. Use -Wno-dev to suppress it. -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /tmp/firmware/toolchain/sh4-rtk-linux-uclibc/bin/sh4-rtk-linux-uclibc-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /tmp/firmware/toolchain/sh4-rtk-linux-uclibc/bin/sh4-rtk-linux-uclibc-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:5 (qt_internal_add_docs): Unknown CMake command "qt_internal_add_docs". CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.23) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring incomplete, errors occurred! See also "/tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1/CMakeFiles/CMakeOutput.log". CMake Error at /tmp/firmware/staging_sml7105/qt6_sti7105/lib/cmake/Qt6/QtProcessConfigureArgs.cmake:995 (message): CMake exited with code 1.
Early I was use Qt-6.2.4 and configure work fine, how should I change my scripts for fix configure error at Qt-6.5.1?
Thank you. -
Ok, I was found workaround
user@37f324a80f53:/tmp/firmware$ mkdir /tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1_build user@37f324a80f53:/tmp/firmware$ cd /tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1 user@37f324a80f53:/tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1$ /tmp/firmware/staging_sml7105/qt6_sti7105/bin/qt-configure-module ../qtimageformats-everywhere-src-6.5.1 -feature-webp -no-feature-tiff -- -DCMAKE_STAGING_PREFIX=/tmp/firmware/staging_sml7105/qt6_sti7105 Overriding option 'webp' with 'yes' (was: 'undefined') Overriding option 'tiff' with 'no' (was: 'undefined') '/tmp/firmware/staging_sml7105/qt6_sti7105/bin/../libexec/qt-cmake-private' '-DCMAKE_STAGING_PREFIX=/tmp/firmware/staging_sml7105/qt6_sti7105' '-DINPUT_webp=yes' '-DINPUT_tiff=no' '/tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1' -- The CXX compiler identification is GNU 11.2.0 -- The C compiler identification is GNU 11.2.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /tmp/firmware/toolchain/sh4-rtk-linux-uclibc/bin/sh4-rtk-linux-uclibc-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /tmp/firmware/toolchain/sh4-rtk-linux-uclibc/bin/sh4-rtk-linux-uclibc-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Performing Test HAVE_STDATOMIC -- Performing Test HAVE_STDATOMIC - Failed -- Performing Test HAVE_STDATOMIC_WITH_LIB -- Performing Test HAVE_STDATOMIC_WITH_LIB - Success -- Found WrapAtomic: TRUE -- Configuration summary shown below. It has also been written to /tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1/config.summary -- Configure with --log-level=STATUS or higher to increase CMake's message verbosity. The log level does not persist across reconfigurations. -- Configure summary: Further Image Formats: JasPer ................................. no MNG .................................... no TIFF ................................... no Using system libtiff ................. no WEBP ................................... yes Using system libwebp ................. no Note: Due to CMAKE_STAGING_PREFIX usage and an unfixed CMake bug, to ensure correct build time rpaths, directory-level install rules like ninja src/gui/install will not work. Check QTBUG-102592 for further details. -- Configuring done -- Generating done -- Build files have been written to: /tmp/firmware/build-sh-sti7105/qtimageformats-everywhere-src-6.5.1
out-off-tree is a mandatory?