Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtPdf building issue
Forum Updated to NodeBB v4.3 + New Features

QtPdf building issue

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 1.4k Views 1 Watching
  • 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.
  • KutyusK Offline
    KutyusK Offline
    Kutyus
    wrote on last edited by
    #1

    Hello!

    I want to compile a QtPdf module with MSVC (Windows 10 64 bit), but qmake returns an error:

    WARNING: Python version 2 (2.7.5 or later) is required to build QtPdf.
    
    WARNING: QtPdf will not be built.
    

    However, python is installed on the machine:

    python --version
    Python 3.9.4
    

    Thank you, Kutyus

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      @Kutyus said in QtPdf building issue:

      Python version 2 (...) is required

      You've python 3.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      KutyusK 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        @Kutyus said in QtPdf building issue:

        Python version 2 (...) is required

        You've python 3.

        KutyusK Offline
        KutyusK Offline
        Kutyus
        wrote on last edited by
        #3

        @Christian-Ehrlicher I uninstalled python 3, changed the %PATH% variable so that python 2 works, but the error still remains::

        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 QtPdf.
        
        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 'C:\Qt\5.15.2\msvc2019_64'.
        
        Prior to reconfiguration, make sure you remove any leftovers from
        the previous build.
        
        
        C:\Qt\5.15.2\Src\qtwebengine>python --version
        Python 2.7.18
        
        C:\Qt\5.15.2\Src\qtwebengine>
        
        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then I don't know - look around from where the error comes to see if it picks up the correct python version.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          KutyusK 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            Then I don't know - look around from where the error comes to see if it picks up the correct python version.

            KutyusK Offline
            KutyusK Offline
            Kutyus
            wrote on last edited by
            #5

            @Christian-Ehrlicher I deleted all .stash, .config and .cache files from the directory, and now running :)

            1 Reply Last reply
            0

            • Login

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