Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PySide 6.11 Build issue on macOS
Qt 6.11 is out! See what's new in the release blog

PySide 6.11 Build issue on macOS

Scheduled Pinned Locked Moved Solved Qt for Python
pysideqt for python
3 Posts 2 Posters 78 Views
  • 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.
  • P Offline
    P Offline
    PremadeS
    wrote last edited by
    #1

    Can't build PySide 6.11 on macos. It always gives this error

    \[ 14%\] Building CXX object PySide6/QtCore/CMakeFiles/QtCore.dir/PySide6/QtCore/qdirlisting\_wrapper.cpp.o
    6.11.0/build/pyside6/PySide6/QtCore/PySide6/QtCore/qdirlisting\_wrapper.cpp:152:86: error: no type named 'Default' in 'QDirIterator::IteratorFlag'
    ::QFlags[QDirIterator::IteratorFlag](qdiriterator::IteratorFlag)
    cppArg1(QDirIterator::IteratorFlag::Default);
    
    ```^
    6.11.0/build/pyside6/PySide6/QtCore/PySide6/QtCore/qdirlisting\_wrapper.cpp:168:86: error: no type named 'Default' in 'QDirIterator::IteratorFlag'
    ::QFlags[QDirIterator::IteratorFlag](qdiriterator::IteratorFlag) cppArg2(QDirIterator::IteratorFlag::Default);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    6.11.0/build/pyside6/PySide6/QtCore/PySide6/QtCore/qdirlisting\_wrapper.cpp:232:44: error: no viable conversion from 'QFlags\<IteratorFlag>' to 'QFlags[QDirIterator::IteratorFlag](qdiriterator::IteratorFlag)'
    QFlags[QDirIterator::IteratorFlag](qdiriterator::IteratorFlag) cppResult = const\_cast\<const ::QDirListing \*>(cppSelf)->iteratorFlags();
    

    Tried with:
    AppleClang 14, 16, 17
    llvm 14, 18 ,22
    macos 14 x86_64, macos 26 arm64
    Same error on all configurations

    Shiboken6 and Shibken6 generator build fine. I can't figure out what is causing this. On linux its building smoothly

    Following everything from the official guide results in same errors: https://doc.qt.io/qtforpython-6/building_from_source/macOS.html

    1 Reply Last reply
    0
    • P Offline
      P Offline
      PremadeS
      wrote last edited by
      #2

      SOLVED. It compiled using LLVM-20 and AppleClang-16
      Seems like libclang version causes issues if it's anything other than version 20. I tried with LLVM-14, 18, 21 and 22 and it failed to compile on all of them

      1 Reply Last reply
      0
      • P PremadeS has marked this topic as solved
      • F Offline
        F Offline
        friedemannkleint
        wrote last edited by
        #3

        See PYSIDE-3286 for reference.

        1 Reply Last reply
        1

        • Login

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