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

Fix scriptable application to build on macOS with Qt framework builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 5.9, 6.3.0, 6.2.5
    • 5.9
    • PySide
    • None
    • macOS 10.12
      Qt 5.9
    • 471b05f35a9c57d7fa910cf9f11c7f5fdfbf2a93, 5c540f92e510082d0eaef97487420880503dbbfb

    Description

      Both the CMake and qmake project fail to pass framework include parameters to shiboken, and thus it fails with:

      Users/alex/.virtualenvs/py2_deb_clang/lib/python2.7/site-packages/PySide2/shiboken2 --generator-set=shiboken --enable-parent-ctor-heuristic --enable-pyside-extensions --enable-return-value-heuristic --use-isnull-as-nb_nonzero -I/Volumes/T3/Dev/qt/official_qt590/5.9/clang_64/include -I/Volumes/T3/Dev/qt/official_qt590/5.9/clang_64/include/QtCore -I/Volumes/T3/Dev/qt/official_qt590/5.9/clang_64/include/QtGui -I/Volumes/T3/Dev/qt/official_qt590/5.9/clang_64/include/QtWidgets -I/Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication -T/Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication -T/Users/alex/.virtualenvs/py2_deb_clang/lib/python2.7/site-packages/PySide2/typesystems --output-directory=/Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication/qmake3 /Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication/wrappedclasses.h ../scriptableapplication.xml
      (scriptableapplication) clang_parseTranslationUnit2(0x0, cmd[19]=-nostdinc -isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1 -isystem/usr/local/include -isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/include -isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -isystem/usr/include -iframework/System/Library/Frameworks -iframework/Library/Frameworks -std=c++14 -fPIC -fno-exceptions -Wno-expansion-to-defined -Wno-constant-logical-operand -I/Volumes/T3/Dev/qt/official_qt590/5.9/clang_64/include -I/Volumes/T3/Dev/qt/official_qt590/5.9/clang_64/include/QtCore -I/Volumes/T3/Dev/qt/official_qt590/5.9/clang_64/include/QtGui -I/Volumes/T3/Dev/qt/official_qt590/5.9/clang_64/include/QtWidgets -I/Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication /var/folders/_x/l798cjd52ql19nfxydb17_c80000gn/T/wrappedclasses_L60136.hpp)
      /Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication/mainwindow.h:54:10: fatal error: 'QtWidgets/QMainWindow' file not found
      (scriptableapplication) Errors in /var/folders/_x/l798cjd52ql19nfxydb17_c80000gn/T/wrappedclasses_L60136.hpp:
      /Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication/mainwindow.h:54:10: fatal: 'QtWidgets/QMainWindow' file not found
         /var/folders/_x/l798cjd52ql19nfxydb17_c80000gn/T/wrappedclasses_L60136.hpp:1:10: note: in file included from /var/folders/_x/l798cjd52ql19nfxydb17_c80000gn/T/wrappedclasses_L60136.hpp:1:
         /Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication/wrappedclasses.h:54:10: note: in file included from /Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication/wrappedclasses.h:54:
      
      :0: error: Unable to retrieve code snippet. [other]
      
      (scriptableapplication) Clang: 2 diagnostic messages:
        /Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication/mainwindow.h:54:10: fatal: 'QtWidgets/QMainWindow' file not found
         /var/folders/_x/l798cjd52ql19nfxydb17_c80000gn/T/wrappedclasses_L60136.hpp:1:10: note: in file included from /var/folders/_x/l798cjd52ql19nfxydb17_c80000gn/T/wrappedclasses_L60136.hpp:1:
         /Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication/wrappedclasses.h:54:10: note: in file included from /Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication/wrappedclasses.h:54:
      
        :0: error: Unable to retrieve code snippet. [other]
      
      Keeping temporary file: /var/folders/_x/l798cjd52ql19nfxydb17_c80000gn/T/wrappedclasses_L60136.hpp
      shiboken: Error running ApiExtractor.
      Command line: --generator-set=shiboken --enable-parent-ctor-heuristic --enable-pyside-extensions --enable-return-value-heuristic --use-isnull-as-nb_nonzero -I/Volumes/T3/Dev/qt/official_qt590/5.9/clang_64/include -I/Volumes/T3/Dev/qt/official_qt590/5.9/clang_64/include/QtCore -I/Volumes/T3/Dev/qt/official_qt590/5.9/clang_64/include/QtGui -I/Volumes/T3/Dev/qt/official_qt590/5.9/clang_64/include/QtWidgets -I/Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication -T/Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication -T/Users/alex/.virtualenvs/py2_deb_clang/lib/python2.7/site-packages/PySide2/typesystems --output-directory=/Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication/qmake3 /Volumes/T3/Dev/pyside/super_pyside_clang/examples/scriptableapplication/wrappedclasses.h ../scriptableapplication.xml
      

      Attachments

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

        Activity

          People

            alexandru.croitor Alexandru Croitor
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes