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

Non-Unity Build Compilation Error: anystringview_helpers.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.8.0, 6.7.3
    • 6.7
    • Build System
    • None
    • Linux, Python 3.12, Qt 6.7.2
    • Linux/X11
    • fd251ca8e (dev), 7729ee345 (6.7)

    Description

      This is probably another problem related to non-unity builds. Unity build is now the default, but non-unity builds are useful in a development environment. Many tools consume the compilation databases from PySide6 and Shiboken6 to help with development. And these compilation databases don't work well with unity/jumbo builds.

       

      python setup.py install --no-unity --user --enable-numpy-support --pyside-numpy-support --debug

       

      Error:

      FAILED: ApiExtractor/CMakeFiles/apiextractor.dir/anystringview_helpers.cpp.o
      pyside-pyside-setup/sources/shiboken6/ApiExtractor/anystringview_helpers.cpp:4:
      /insilications/Downloads/pyside-pyside-setup/sources/shiboken6/ApiExtractor/anystringview_helpers.h:17:1: error: unknown type name 'qsizetype'
         17 | qsizetype asv_indexOf(QAnyStringView asv, const char *needle);
            | ^
      1 error generated.

      Attachments

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

        Activity

          People

            fboni Francisco Boni Neto
            fboni Francisco Boni Neto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes