Build Qt 6.11, "skip" ignored (not working)
-
Hi,
Can you show the exact steps you are taking to build Qt ?
-
The exact configure call would be good so people can try and reproduce your issue in the same context.
-
This post is deleted!
-
Hi,
Thank you for your answer. I read the documentation multiple times and tried a lot of calls to configure with different options, but modules designed by "skip" are never ignored and are part of build (according to config.summary).Here is a sample of my call to configure:
-debug-and-release -opensource -confirm-license -opengl desktop -sql-mysql -no-dbus -no-icu -no-fontconfig -nomake examples -nomake tests -skip qt3d,qt5compat,qtcoap,qtconnectivity,qtdatavis3d,qtdeclarative,qtdoc,qtgrpc,qtlocation,qtlottie,qtmqtt,qtopcua,qtquick3d,qtquick3dphysics,qtquickeffectmaker,qtquicktimeline,qtremoteobjects,qtscxml,qtsensors,qtserialbus,qtserialport,qtshadertools,qtspeech,qtvirtualkeyboard,qtwayland,qtwebengine,qtwebview -optimize-size -shared ...Any suggestions are welcomed.
-
Hi,
Thank you for your answer. I read the documentation multiple times and tried a lot of calls to configure with different options, but modules designed by "skip" are never ignored and are part of build (according to config.summary).Here is a sample of my call to configure:
-debug-and-release -opensource -confirm-license -opengl desktop -sql-mysql -no-dbus -no-icu -no-fontconfig -nomake examples -nomake tests -skip qt3d,qt5compat,qtcoap,qtconnectivity,qtdatavis3d,qtdeclarative,qtdoc,qtgrpc,qtlocation,qtlottie,qtmqtt,qtopcua,qtquick3d,qtquick3dphysics,qtquickeffectmaker,qtquicktimeline,qtremoteobjects,qtscxml,qtsensors,qtserialbus,qtserialport,qtshadertools,qtspeech,qtvirtualkeyboard,qtwayland,qtwebengine,qtwebview -optimize-size -shared ...Any suggestions are welcomed.
@maisoui To get you going, you could try to ignore the
-skipthingy, and use CMake variables instead, like:configure -debug-and-release -opensource -confirm-license -opengl desktop -sql-mysql -no-dbus -no-icu -no-fontconfig -nomake examples -nomake tests -optimize-size -shared ... -- -DBUILD_qt3d=OFF -DBUILD_qt5compat=OFF -DBUILD_qtcoap=OFF -DBUILD_qtconnectivity=OFF -DBUILD_qtdatavis3d=OFF -DBUILD_qtdeclarative=OFF -DBUILD_qtdoc=OFF -DBUILD_qtgrpc=OFF -DBUILD_qtlocation=OFF -DBUILD_qtlottie=OFF -DBUILD_qtmqtt=OFF -DBUILD_qtopcua=OFF -DBUILD_qtquick3d=OFF -DBUILD_qtquick3dphysics=OFF -DBUILD_qtquickeffectmaker=OFF -DBUILD_qtquicktimeline=OFF -DBUILD_qtremoteobjects=OFF -DBUILD_qtscxml=OFF -DBUILD_qtsensors=OFF -DBUILD_qtserialbus=OFF -DBUILD_qtserialport=OFF -DBUILD_qtshadertools=OFF -DBUILD_qtspeech=OFF -DBUILD_qtvirtualkeyboard=OFF -DBUILD_qtwayland=OFF -DBUILD_qtwebengine=OFF -DBUILD_qtwebview=OFF -
@slope Instead of relying on -skip, explicitly disable modules using CMake flags, for example:
-DQT_BUILD_WEBENGINE=OFF
-DQT_BUILD_DOCS=OFF(module names can vary slightly, so it’s worth checking the specific option names in the module’s CMakeLists or documentation)
-
Thank you all for your help.
I've changed my approach and now use "-submodules" to include only the modules I need, without having to worry about excluding everything I don't need. I think this will also make it easier to maintain when new Qt releases.
Best regards
-
M maisoui has marked this topic as solved
-
To wrap things up, this is a bug which is fixed for Qt 6.11.1: https://qt-project.atlassian.net/browse/QTBUG-140359