Build Qt 6.11, "skip" ignored (not working)
-
Hi,
I tried to build Qt 6.11 like I did for all previous versions of Qt 6, and it seems that "skip" argument is ignored. I tried "-skip qtwebengine -skip qtdoc" or "-skip qtwebengine,qtdoc", but "config,summary" file confirms that these modules are not ignored and will be part of the build ("WebEngine .............................. yes"). I noticed that config.opt.in file doesn't inlcudes the "skip" argument whereas it did in previous versions.
Is anyone else having the same issue?
Best regards,
Jonathan -
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 -
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.
-
@hollow knight I’ve run into something similar with Qt 6.11—seems like the -skip option isn’t behaving the same way as in earlier versions. It might be related to changes in the build system or how modules are handled now. Have you tried using the new configure flags or checking the official docs for any updates on this?I’ve run into something similar with Qt 6.11—seems like the -skip option isn’t behaving the same way as in earlier versions. It might be related to changes in the build system or how modules are handled now. Have you tried using the new configure flags or checking the official docs for any updates on this?
-
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