The following modules are not being compiled in this configuration
-
I'm trying to compile PyQTWebEngine for python but I need to include these modules, does anyone have any ideas on how to reconfigure to include these modules?
cd E:\QT\5.15.2\Src\qtwebengine E:\QT\5.15.2\Src\qtwebengine>E:\QT\5.15.2\msvc2019_64\bin\qmake WEBENGINE_CONFIG+=use_proprietary_codecs
Out:
Running configuration tests... Done running configuration tests. Configure summary: Qt WebEngine Build Tools: Use System Ninja ....................... yes Use System Gn .......................... no Jumbo Build Merge Limit ................ no Developer build ........................ no Sanitizer .............................. no Note: The following modules are not being compiled in this configuration: webenginecore webengine webenginewidgets pdf pdfwidgets WARNING: Python version 2 (2.7.5 or later) is required to build QtWebengine. WARNING: Python version 2 (2.7.5 or later) is required to build QtPdf. WARNING: QtWebEngine will not be built. WARNING: QtPdf will not be built. Qt is now configured for building. Just run 'nmake'. Once everything is built, you must run 'nmake install'. Qt will be installed into 'E:\QT\5.15.2\msvc2019_64'. Prior to reconfiguration, make sure you remove any leftovers from the previous build.
How do I change the build configuration to accept these modules?
-
@Suundumused It is not the order problem. The issue shows up likely because you ran configure by the first time without python2 and saw the warning message. Then you installed python2 and set it in the PATH. But the configure results are cached(bug in Qt). When you try to reconfigure in the same build dir, python2 not found result is not updated. That is what I did: simply removed the old build dir and created a new one to reconfigure. It is fine now.
remove only your build dir. Python2(not python3) is needed for the build of this module. Do not care about python3. If you look at the build test pri, only python2 is tested.
-
@Suundumused have you installed Python version 2? Did you see the warning:
WARNING: Python version 2 (2.7.5 or later) is required to build QtWebengine. -
@JoeCFD Yes, I installed version 2.7.5 and set an environment, but it didn't change anything.
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
-
@Suundumused said in The following modules are not being compiled in this configuration:
and set an environment
Assuming whatever you did here was suitable but did not resolve. Maybe you need to put Python 2.7 on the PATH, and if you have any other Python (like 3.x) take it off the PATH? Have a look at https://stackoverflow.com/questions/59203750/qt5-qmake-a-suitable-version-of-python-2-could-not-be-found for ideas?
-
@Suundumused You might have installed python2 later(cache thing). Delete the build dir completely. Create a new one and rerun the configure.
I just tested on Linux and could repeat your issue. After I installed python2, I cleared the build dir. The problem is gone.
-
@Suundumused It is not the order problem. The issue shows up likely because you ran configure by the first time without python2 and saw the warning message. Then you installed python2 and set it in the PATH. But the configure results are cached(bug in Qt). When you try to reconfigure in the same build dir, python2 not found result is not updated. That is what I did: simply removed the old build dir and created a new one to reconfigure. It is fine now.
remove only your build dir. Python2(not python3) is needed for the build of this module. Do not care about python3. If you look at the build test pri, only python2 is tested.
-