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

constexpr variable 'HeaderOffset' must be initialized by a constant expression

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.7.2
    • PySide
    • None
    • Windows

      I am facing an error when using shiboken to compile some code of mine:
      QtCore/qplugin.h(146,33): error G3F63BFAE: constexpr variable 'HeaderOffset' must be initialized by a constant expression

      see this stackoverflow post about it https://stackoverflow.com/questions/78770245/shiboken6-constexpr-variable-must-be-initialized-by-a-constant-expression

      I have tried several combinations if compiler arguments but it seems to be an issue with CLANG not recognizing the correct implementation of offsetof.
      I was able to build the code on one machine, but on a build server it does not work. I am not sure if this is actually a bug, but it seems like a bad combination of settings, which could be one.

      Sorry if this is not the right place to post this.

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

            crmaurei Cristian Maureira-Fredes
            meetaig Tim Elberfeld
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes