Skip to content

QtWS: Super Early Bird Tickets Available!

  • 0 Votes
    4 Posts
    948 Views
    S

    We have a little more information regarding our problem.

    When using Visual GDB to create a new QT project for Raspberry PI, if the toolchain folder ‘C:\SysGCC\raspberry\Qt\v5-CMake’ doesn’t exist or is empty, the QT build tools are automatically downloaded and installed. The problem we are seeing is that the build tools end up being a different version (Qt v5.15.2) than what is being used on our target Raspberry Pi platform (Qt v5.12.3). This results in the following error produced by the moc compiler indicating that its attempting to compile using the much newer header libraries.

    LinuxProject1_autogen/EWIEGA46WW/moc_MainWindow.cpp:80:18: error: 'QMetaObject::SuperData' has not been declared QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(), ^~~~~~~~~

    LinuxProject1_autogen/EWIEGA46WW/moc_MainWindow.cpp:80:65: error: expected primary-expression before ')' token
    QMetaObject::SuperData::linkQMainWindow::staticMetaObject(),

    Is there anything we can set in Visual Studio or elsewhere that will insure the downloaded Qt build tools match the Qt version on the target board?

    This is our development environment

    Windows 10
    Visual Studio 2017
    Qt Visual Studio Tools Version 2.8.1.6
    Visual GDB 5.6R2
    Qt build tools vers 5.12.3

    And we are targetting Raspberry PI OS vresion Raspbian 10.

    We are working around this problem by manually copying the odler set of build tools into ‘C:\SysGCC\raspberry\Qt\v5-CMake’ before making a new project using VisualGDB. We were fortunate that we had an older set of Qt build tools on another development PC to copy these from. This is not a good long term solution for us.

  • 0 Votes
    2 Posts
    1k Views
    Christian EhrlicherC

    @sbartolett said in Undeclared QMetaObject::SuperData:

    Not sure if this error is caused by an incompatibility of versions or not. T

    At leasr you should not mix them. Remove the 5.15.5 stuff from your build system (did not say what you're using).