Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qobjdefs.h compile error



  • I am getting an error trying to compile on linux for a beaglebone: when I try to include QMetaType, qobjectdefs.h generates an error "expected ',' or '...' before Public QT_ANNOTATE_ACCESS_SPECIFIER(qt_signal)"
    the error I guess occurs here:
    #define Q_SIGNALS public QT_ANNOTATE_.....
    ^

    I have a VirtualBox where this project compiles fine. I cloned the sysroots and kits and so on to a different linux system where this error occurs. Any ideas?

    Thank you


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What version of Qt are you cross-compiling ?
    Are you using the same compiler on both systems ?
    What do you mean by cloning kits ?


Log in to reply