Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. The following modules are not being compiled in this configuration

The following modules are not being compiled in this configuration

Scheduled Pinned Locked Moved Solved QtWebEngine
buildcompileqtwebengineqt5.15.2webengineview
8 Posts 3 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Suundumused
    wrote on 24 Apr 2023, 17:40 last edited by
    #1

    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?

    J 1 Reply Last reply 24 Apr 2023, 17:48
    0
    • S Suundumused
      24 Apr 2023, 18:44

      @JonB
      @JoeCFD I put python 2 in the first position. Will I have to remove all other python 3 versions from PATH? I thought just changing the order putting python 2 as priority would help, or maybe PATH regedit key?

      J Offline
      J Offline
      JoeCFD
      wrote on 24 Apr 2023, 18:49 last edited by JoeCFD
      #7

      @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.

      S 1 Reply Last reply 24 Apr 2023, 18:57
      1
      • S Suundumused
        24 Apr 2023, 17:40

        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?

        J Offline
        J Offline
        JoeCFD
        wrote on 24 Apr 2023, 17:48 last edited by JoeCFD
        #2

        @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.

        S 1 Reply Last reply 24 Apr 2023, 17:54
        0
        • J JoeCFD
          24 Apr 2023, 17:48

          @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.

          S Offline
          S Offline
          Suundumused
          wrote on 24 Apr 2023, 17:54 last edited by Suundumused
          #3

          @JoeCFD Yes, I installed version 2.7.5 and set an environment, but it didn't change anything.
          373f91cb-c17f-4041-9740-105e639210f7-image.png

          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.
          
          J J 2 Replies Last reply 24 Apr 2023, 18:29
          0
          • S Suundumused
            24 Apr 2023, 17:54

            @JoeCFD Yes, I installed version 2.7.5 and set an environment, but it didn't change anything.
            373f91cb-c17f-4041-9740-105e639210f7-image.png

            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.
            
            J Online
            J Online
            JonB
            wrote on 24 Apr 2023, 18:29 last edited by
            #4

            @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?

            S 1 Reply Last reply 24 Apr 2023, 18:44
            1
            • S Suundumused
              24 Apr 2023, 17:54

              @JoeCFD Yes, I installed version 2.7.5 and set an environment, but it didn't change anything.
              373f91cb-c17f-4041-9740-105e639210f7-image.png

              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.
              
              J Offline
              J Offline
              JoeCFD
              wrote on 24 Apr 2023, 18:33 last edited by JoeCFD
              #5

              @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.

              1 Reply Last reply
              0
              • J JonB
                24 Apr 2023, 18:29

                @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?

                S Offline
                S Offline
                Suundumused
                wrote on 24 Apr 2023, 18:44 last edited by Suundumused
                #6

                @JonB
                @JoeCFD I put python 2 in the first position. Will I have to remove all other python 3 versions from PATH? I thought just changing the order putting python 2 as priority would help, or maybe PATH regedit key?

                J 1 Reply Last reply 24 Apr 2023, 18:49
                0
                • S Suundumused
                  24 Apr 2023, 18:44

                  @JonB
                  @JoeCFD I put python 2 in the first position. Will I have to remove all other python 3 versions from PATH? I thought just changing the order putting python 2 as priority would help, or maybe PATH regedit key?

                  J Offline
                  J Offline
                  JoeCFD
                  wrote on 24 Apr 2023, 18:49 last edited by JoeCFD
                  #7

                  @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.

                  S 1 Reply Last reply 24 Apr 2023, 18:57
                  1
                  • J JoeCFD
                    24 Apr 2023, 18:49

                    @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.

                    S Offline
                    S Offline
                    Suundumused
                    wrote on 24 Apr 2023, 18:57 last edited by
                    #8

                    @JoeCFD Where is it located in the relative /QT folder? /... like 5.12.5 , dist, Docs, Examples

                    1 Reply Last reply
                    0
                    • S Suundumused has marked this topic as solved on 29 Apr 2023, 00:17

                    1/8

                    24 Apr 2023, 17:40

                    • Login

                    • Login or register to search.
                    1 out of 8
                    • First post
                      1/8
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved