trying to build release build of Qt from repository
Unsolved
Qt Contribution
-
wrote on 1 Dec 2024, 12:22 last edited by
I get:
1> [CMake] -- Configuring submodule 'qtbase' 1> [CMake] -- [QtBase] CMAKE_BUILD_TYPE was already explicitly set to: 'Release' 1> [CMake] CMake Error at qtbase/cmake/QtBuildInformation.cmake:554 (message): 1> [CMake] Feature "debug": Forcing to "ON" breaks its condition: 1> [CMake] 1> [CMake] CMAKE_BUILD_TYPE STREQUAL Debug OR Debug IN_LIST CMAKE_CONFIGURATION_TYPES 1> [CMake] 1> [CMake] Condition values dump: 1> [CMake] 1> [CMake] CMAKE_BUILD_TYPE = "Release" 1> [CMake] Debug = "" 1> [CMake] CMAKE_CONFIGURATION_TYPES = ""
What am I doing wrong?
-
Which configure arguments are you using? And which Qt version.
...qt5/configure -release
works for me with Qt 6.8.1
-
wrote on 1 Dec 2024, 16:01 last edited by
I'm using cmake not configure - I used git clone to pull the code from the dev branch of qt/qt5
-
Have you followed the steps described here?
At the end of the day it doesn't matter how the project is configured, as long as you pass the right arguments and the build path is clean.
I don't know which version of Qt you are building on which operating system, but it looks like the build tree has been configured before with some flags that force it into a debug build.
3/4