Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Critical build error in qmetatype.h (Qt 6.0.0)
Forum Updated to NodeBB v4.3 + New Features

Critical build error in qmetatype.h (Qt 6.0.0)

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 787 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.
  • B Offline
    B Offline
    BrunoFr93
    wrote on last edited by
    #1

    Hello,

    I'm using Qt 6.0.0 preview to anticipate the release of a project (main compilation in Qt 5.15.0) and I've an issue with « qmetatype.h » when compiling with MSVC 2019 x64.

    The compiler said (English translation above – I'm French-speaking) :

    C2187: erreur de syntaxe : ';' inattendu ici
    C:\Qt\6.0.0\msvc2019_64\include\QtCore\qmetatype.h:2283: pendant la compilation du membre de données statique classe modèle 'const QtPrivate::QMetaTypeInterface QtPrivate::QMetaTypeInterfaceWrapper<Ty>::metaType'
    
    C2187: syntax error : ';' unexpected here
    C:\Qt\6.0.0\msvc2019_64\include\QtCore\qmetatype.h:2283: when compiling static data member of the model class 'const QtPrivate::QMetaTypeInterface QtPrivate::QMetaTypeInterfaceWrapper<Ty>::metaType'
    

    The issue doesn't appear in Qt 5.15.0.

    Does anyone have an idea to solve this issue (or to report it to Qt 6 team)? (I've tried to clean my project, rebuild and rerun QMake, without success.)

    Thanks a lot in advance for your help!

    Best regards,

    Bruno

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      See https://bugreports.qt.io/browse/QTBUG-88122 and make sure that you use the latest msvc2019 compiler.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • B Offline
        B Offline
        BrunoFr93
        wrote on last edited by
        #3

        Thanks a lot! I ignored this bug report tool exists! This is exactly my issue!

        I've marked the topic as solved.

        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