Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.15 undefined symbol
Forum Update on Monday, May 27th 2025

Qt 5.15 undefined symbol

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 4 Posters 1.1k 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.
  • C Offline
    C Offline
    Clueless
    wrote on last edited by
    #1

    I have built the Qt 5.15.0 beta3 libraries for iMX6 and installed them on the target. I selected the dashboard example and tried to deploy it. I get the following:

    14:16:49: Starting /usr/local/Qt-5.15.0-3Dxx/examples/quickcontrols/extras/dashboard/dashboard ...
    QML debugging is enabled. Only use this in a safe environment.
    QQmlApplicationEngine failed to load component
    qrc:/qml/dashboard.qml:51:1: plugin cannot be loaded for module "QtQuick": Cannot load library /usr/local/Qt-5.15.0-3Dxx/qml/QtQuick.2/libqtquick2plugin.so: (/usr/local/Qt-5.15.0-3Dxx/qml/QtQuick.2/libqtquick2plugin.so: undefined symbol: _Z26qml_register_types_QtQuickv)
    14:16:49: Remote process crashed.

    I used the same configure script to build the libraries that I used on 5.9.3 and 5.12.2 and 5.12.7. It looks like in 5.15 there were enhancements made to plugins. I have searched the library code and only find extern references to qml_register_types_QtQuick

    <srcDir>/qtdeclarative/src/imports/qtquick2/plugin.cpp

    60 QtQuick2Plugin(QObject *parent = nullptr) : QQmlExtensionPlugin(parent)
    61 {
    62 volatile auto registration = &qml_register_types_QtQuick;
    63 Q_UNUSED(registration);
    64 }

    lines 62 and 63 were added in 5.15 - so my questions are A) Where is the actual declaration and B) Do I need to create it? and if so where should these functions be defined?

    Thanks

    1 Reply Last reply
    0
    • P Offline
      P Offline
      parul1987
      wrote on last edited by
      #2

      I am also having the same issue.Please let me know if you have any solution for that.
      Thanks

      1 Reply Last reply
      0
      • M Offline
        M Offline
        manjoobentur
        wrote on last edited by
        #3

        I too have the same problem witrh imx8 & imx6.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sitter
          wrote on last edited by
          #4

          What we noticed at KDE neon is that the generated makefiles seem to have some dependency ordering problem. Specifically we ran make docs before make all and that resulted in the *_qmltyperegistrations.cpp not getting generated.
          Reordering the make invocations solved it for us.

          M 1 Reply Last reply
          1
          • S sitter

            What we noticed at KDE neon is that the generated makefiles seem to have some dependency ordering problem. Specifically we ran make docs before make all and that resulted in the *_qmltyperegistrations.cpp not getting generated.
            Reordering the make invocations solved it for us.

            M Offline
            M Offline
            manjoobentur
            wrote on last edited by
            #5

            @sitter thank you for your info, I still have the same problem, Couls you define the steps how did u achieve it

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved