Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-739

Windows build fails during QtGui bindings generation running shiboken2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P4: Low
    • 5.11.1
    • 5.11.0
    • Shiboken
    • Windows 10, Microsoft Visual Studio 2017, Prebuilt python 3.6.5, Qt 5.11.1 installed from Qt installer, clang Release_60 built from sources, cmake version 3.12.0-rc1.
    • Windows

    Description

      When following the instructions at https://wiki.qt.io/Qt_for_Python/GettingStarted - but with Microsoft Visual Studio 2017 (I have not yet tested Visual Studio 2015), I receive the following errors when shiboken2 is invoked to create the bindings for the QtGui module:

       

      [ 14%] Running generator for QtGui...
      qt.shiboken: (gui) Unknown attribute for 'add-function': 'allow-thread'
      (gui) clang_parseTranslationUnit2(0x0, cmd[8]=-fms-compatibility-version=19 -Wno-microsoft-enum-value -fno-exceptions -Wno-constant-logical-operand -std=c++14 -IC:/Users/kekyziva/Build/Gamry/pyside-setup/sources/pyside2/PySide2 -IC:/Qt/Qt5.11.1/5.11.1/msvc2017_64/include/ C:/Users/kekyziva/AppData/Local/Temp/QtGui_global_iZZaPW.hpp)
      NMAKE : fatal error U1077: 'C:\Users\kekyziva\Build\Gamry\pyside-setup\pyside3_install\py3.6-qt5.11.1-64bit-release\bin\shiboken2.EXE' : return code '0xc00000fd'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\nmake.exe"' : return code '0x2'
      Stop.
      error: Error compiling pyside2
      

       

       

      I have a Python that was built with Visual Studio 2017 64-bit, Qt 5.11.1 64-bit from the Qt installer that supports Visual Studio 2017 (with Visual Studio 2017 kit installed), llvm and clang built for 64-bit from sources (Release_60, git@github.com:llvm-mirror/clang.git ), SSL not built.

      Windows also throws up a Dialog indicating "shiboken2.EXE has stopped working".

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kleint Friedemann Kleint
              kkyzivat Keith Kyzivat
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes