webenginecore added by VS build to qtvars.pro file
-
My system:
Visual Studio 2022
Qt 6.9.0
- Built from source using MSVC 2022
- "configure.bat -modules qtbase -skip webenginecore,network -debug"My project build error:
Project ERROR: Unknown module(s) in QT: webenginecore.My project does not need webenginecore, or network modules. Also, I excluded both of these modules from the QT build. When I go to my project properties files, under "Qt Project Settings" then "Qt Modules" item, I see "core;gui;widgets" which is correct. However, when I use the dropdown on this item to "<Select Modules>" I see that both QtWebEngine and QtNetwork are both checked. (The .props file when opened in plain text does not include these modules). When I build the project, webenginecore and network are added to the qtvars.pro file, and I get this error again. This happens even after I edit the qtvars.pro file to delete the webenginecore and network items. Why is webenginecore being added to my .pro file when I don't want or need this module?
-
My system:
Visual Studio 2022
Qt 6.9.0
- Built from source using MSVC 2022
- "configure.bat -modules qtbase -skip webenginecore,network -debug"My project build error:
Project ERROR: Unknown module(s) in QT: webenginecore.My project does not need webenginecore, or network modules. Also, I excluded both of these modules from the QT build. When I go to my project properties files, under "Qt Project Settings" then "Qt Modules" item, I see "core;gui;widgets" which is correct. However, when I use the dropdown on this item to "<Select Modules>" I see that both QtWebEngine and QtNetwork are both checked. (The .props file when opened in plain text does not include these modules). When I build the project, webenginecore and network are added to the qtvars.pro file, and I get this error again. This happens even after I edit the qtvars.pro file to delete the webenginecore and network items. Why is webenginecore being added to my .pro file when I don't want or need this module?
@lynnv said in webenginecore added by VS build to qtvars.pro file:
-skip webenginecore,network
This is not how it works
-skip webenginecore -skip network
-
Thanks for your response. I rebuilt QT with the corrected config line "configure.bat -modules qtbase -skip webenginecore -skip network -debug" but I am still having the same issue as originally reported.
@lynnv said in webenginecore added by VS build to qtvars.pro file:
I rebuilt QT with the corrected config line
Did you do a clean rebuild (new build folder)?
-
I wonder if it is really webenginecore or rather webengine.
-
@lynnv said in webenginecore added by VS build to qtvars.pro file:
I rebuilt QT with the corrected config line
Did you do a clean rebuild (new build folder)?
-
I found the issue. When I migrated to the new QT Visual Studio tools upon being prompted by VS (I'm upgrading from Qt 5.15.0), this section was added to a higher level .props file where it was not previously.
<PropertyGroup Label="QtSettings">
<QtInstall>Qt_Qt-6.9.0</QtInstall>
<QtModules>core;gui;network;widgets;webenginecore</QtModules>
</PropertyGroup>Deleting the "network" and "webenginecore" items got the webenginecore error to disappear.