Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QtPdf building issue
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
@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>
Then I don't know - look around from where the error comes to see if it picks up the correct python version.
@Christian-Ehrlicher I deleted all .stash, .config and .cache files from the directory, and now running :)