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

Build error during compilation of pyside6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.5.5
    • 6.5.4
    • PySide
    • None
    • MacOS m1 / Sonoma with Python 3.10.11
    • macOS
    • 4ff60d8b1 (tqtc/lts-6.5)

    Description

      I downloaded qtforpython 6.5.4 from qt web site.

      I have built qt 6.5.4 on MacOs and Linux and now, I try to build the corresponding version of qtforpython on the same platforms.

      I applied a patch via this ticket (https://bugreports.qt.io/browse/PYSIDE-2589) and now I have a new build error.

      During compilation, I met the following error:

      [328/2205] Building CXX object sources/pyside6/libpyside/CMakeFiles/pyside6.dir/pysidesignal.cpp.o
      FAILED: sources/pyside6/libpyside/CMakeFiles/pyside6.dir/pysidesignal.cpp.o 
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBUILD_LIBPYSIDE -DNDEBUG -DPy_LIMITED_API=0x03060000 -DQT_CORE_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_DEBUG -DQT_NO_KEYWORDS=1 -DQT_ZLIB_LIB -I/Users/ycollette/tmp/tqtc-pyside-setup-everywhere-src-lts-6.5.4/sources/pyside6/libpyside -I/Users/ycollette/tmp/tqtc-pyside-setup-everywhere-src-lts-6.5.4/sources/shiboken6/libshiboken -I/Users/ycollette/tmp/tqtc-pyside-setup-everywhere-src-lts-6.5.4/build/sources/shiboken6/libshiboken -I/opt/alg/python-3.10.11-p3/include/python3.10 -isystem /opt/alg/qt-6.5.4-universal/lib/QtCore.framework/Headers -iframework /opt/alg/qt-6.5.4-universal/lib -isystem /opt/alg/qt-6.5.4-universal/mkspecs/macx-clang -isystem /opt/alg/qt-6.5.4-universal/include -isystem /opt/alg/qt-6.5.4-universal/lib/QtCore.framework/Headers/6.5.4 -isystem /opt/alg/qt-6.5.4-universal/lib/QtCore.framework/Headers/6.5.4/QtCore -Wall -Wextra -Wno-strict-aliasing -fvisibility=hidden -D QT_NO_CAST_FROM_ASCII -D QT_NO_CAST_TO_ASCII -O3 -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC   -fPIC -MD -MT sources/pyside6/libpyside/CMakeFiles/pyside6.dir/pysidesignal.cpp.o -MF sources/pyside6/libpyside/CMakeFiles/pyside6.dir/pysidesignal.cpp.o.d -o sources/pyside6/libpyside/CMakeFiles/pyside6.dir/pysidesignal.cpp.o -c /Users/ycollette/tmp/tqtc-pyside-setup-everywhere-src-lts-6.5.4/sources/pyside6/libpyside/pysidesignal.cpp
      /Users/ycollette/tmp/tqtc-pyside-setup-everywhere-src-lts-6.5.4/sources/pyside6/libpyside/pysidesignal.cpp:722:21: error: no member named 'isQObjectDerived' in namespace 'PySide'
              || !PySide::isQObjectDerived(Py_TYPE(obj), true)) {
                  ~~~~~~~~^
      /Users/ycollette/tmp/tqtc-pyside-setup-everywhere-src-lts-6.5.4/sources/pyside6/libpyside/pysidesignal.cpp:802:9: error: unknown type name 'AutoDecRef'; did you mean 'Shiboken::AutoDecRef'?
              AutoDecRef tpDict(PepType_GetDict(sub_type));
              ^~~~~~~~~~
              Shiboken::AutoDecRef
      /Users/ycollette/tmp/tqtc-pyside-setup-everywhere-src-lts-6.5.4/sources/shiboken6/libshiboken/autodecref.h:17:24: note: 'Shiboken::AutoDecRef' declared here
      struct LIBSHIBOKEN_API AutoDecRef
                             ^
      /Users/ycollette/tmp/tqtc-pyside-setup-everywhere-src-lts-6.5.4/sources/pyside6/libpyside/pysidesignal.cpp:912:9: error: unknown type name 'AutoDecRef'; did you mean 'Shiboken::AutoDecRef'?
              AutoDecRef tpDict(PepType_GetDict(type));
              ^~~~~~~~~~
              Shiboken::AutoDecRef
      /Users/ycollette/tmp/tqtc-pyside-setup-everywhere-src-lts-6.5.4/sources/shiboken6/libshiboken/autodecref.h:17:24: note: 'Shiboken::AutoDecRef' declared here
      struct LIBSHIBOKEN_API AutoDecRef
                             ^
      /Users/ycollette/tmp/tqtc-pyside-setup-everywhere-src-lts-6.5.4/sources/pyside6/libpyside/pysidesignal.cpp:1121:5: error: unknown type name 'AutoDecRef'; did you mean 'Shiboken::AutoDecRef'?
          AutoDecRef tpDict(PepType_GetDict(wrapperType));
          ^~~~~~~~~~
          Shiboken::AutoDecRef
      /Users/ycollette/tmp/tqtc-pyside-setup-everywhere-src-lts-6.5.4/sources/shiboken6/libshiboken/autodecref.h:17:24: note: 'Shiboken::AutoDecRef' declared here
      struct LIBSHIBOKEN_API AutoDecRef
                             ^
      4 errors generated.
      [339/2205] Building CXX object sources/shiboken6/generator/CMakeFiles/shiboken6.dir/shiboken/cppgenerator.cpp.o 

      I tested Xcode 15 on MacOS. The cmake configure command I use:

      cmake -G Ninja -D-DPYTHON_LIBRARY=/opt/python-3.10.11-p3/lib/libpython3.10.dylib  -DPYTHON_INCLUDE_DIR=/opt/alg/python-3.10.11/include/python3.10 .. 

      Attachments

        For Gerrit Dashboard: PYSIDE-2591
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            ycollette Yann Collette
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes