Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-87716

Compilation with NDK r21 fails on undefined reference to 'qml_register_types_QtQuick3D()'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 6.0.0 Beta1, 6.0.0 Beta2, 6.0.0 Beta3
    • QML: Tooling
    • None
    • Linux x64 host (Suse v15.2), compiling for Android using NDK r21
      , macOS (Android with NDK r21)
    • Android
    • 2

    Description

      Trying out the beta1, compilation fails:

      cd quick3d/ && ( test -e Makefile || /home/development/4suse15.2-android/qt-6.0.0/qtbase/bin/qmake -o Makefile /home/development/qt-everywhere-src-6.0.0-beta1/qtquick3d/src/imports/quick3d/quick3d.pro ) && make -f Makefile 
      make[4]: Map '/home/development/4suse15.2-android/qt-6.0.0/qtquick3d/src/imports/quick3d' wordt binnengegaan
      make -f Makefile.Armeabi-v7a all
      make[5]: Map '/home/development/4suse15.2-android/qt-6.0.0/qtquick3d/src/imports/quick3d' wordt binnengegaan
      rm -f libqml_QtQuick3D_qquick3dplugin_armeabi-v7a.so
      /home/development/4suse15.2-android/android-sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -target armv7a-linux-androideabi23 -fno-limit-debug-info -Wl,--enable-new-dtags -Wl,-rpath-link=/home/development/4suse15.2-android/qt-6.0.0/qtbase/lib -Wl,--build-id=sha1 -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libqml_QtQuick3D_qquick3dplugin_armeabi-v7a.so -o libqml_QtQuick3D_qquick3dplugin_armeabi-v7a.so .obj/armeabi-v7a/plugin.o  /home/development/4suse15.2-android/qt-6.0.0/qtquick3d/lib/libQt6Quick3D_armeabi-v7a.so /home/development/4suse15.2-android/qt-6.0.0/qtquick3d/lib/libQt6Quick3DRuntimeRender_armeabi-v7a.so /home/development/4suse15.2-android/qt-6.0.0/qtdeclarative/lib/libQt6Quick_armeabi-v7a.so /home/development/4suse15.2-android/qt-6.0.0/qtbase/lib/libQt6OpenGL_armeabi-v7a.so /home/development/4suse15.2-android/qt-6.0.0/qtquick3d/lib/libQt6Quick3DAssetImport_armeabi-v7a.so /home/development/4suse15.2-android/qt-6.0.0/qtquick3d/lib/libQt6Quick3DUtils_armeabi-v7a.so /home/development/4suse15.2-android/qt-6.0.0/qtshadertools/lib/libQt6ShaderTools_armeabi-v7a.so /home/development/4suse15.2-android/qt-6.0.0/qtbase/lib/libQt6Gui_armeabi-v7a.so /home/development/4suse15.2-android/qt-6.0.0/qtdeclarative/lib/libQt6QmlModels_armeabi-v7a.so /home/development/4suse15.2-android/qt-6.0.0/qtdeclarative/lib/libQt6Qml_armeabi-v7a.so /home/development/4suse15.2-android/qt-6.0.0/qtbase/lib/libQt6Network_armeabi-v7a.so /home/development/4suse15.2-android/qt-6.0.0/qtbase/lib/libQt6Core_armeabi-v7a.so -lGLESv2   -llog -lz -lm -ldl -lc 
      .obj/armeabi-v7a/plugin.o:plugin.cpp:function QQuick3DPlugin::QQuick3DPlugin(QObject*): error: undefined reference to 'qml_register_types_QtQuick3D()'
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)
      make[5]: *** [Makefile.Armeabi-v7a:72: ../../../qml/QtQuick3D/libqml_QtQuick3D_qquick3dplugin_armeabi-v7a.so] Fout 1
      make[5]: Map '/home/development/4suse15.2-android/qt-6.0.0/qtquick3d/src/imports/quick3d' wordt verlaten
      make[4]: *** [Makefile:48: armeabi-v7a-all] Fout 2
      make[4]: Map '/home/development/4suse15.2-android/qt-6.0.0/qtquick3d/src/imports/quick3d' wordt verlaten
      make[3]: *** [Makefile:75: sub-quick3d-make_first] Fout 2
      make[3]: Map '/home/development/4suse15.2-android/qt-6.0.0/qtquick3d/src/imports' wordt verlaten
      make[2]: *** [Makefile:267: sub-imports-make_first-ordered] Fout 2
      make[2]: Map '/home/development/4suse15.2-android/qt-6.0.0/qtquick3d/src' wordt verlaten
      make[1]: *** [Makefile:50: sub-src-make_first] Fout 2
      make[1]: Map '/home/development/4suse15.2-android/qt-6.0.0/qtquick3d' wordt verlaten
      make: *** [Makefile:186: module-qtquick3d-make_first] Fout 2

      Configure statement used:

      ${QTSRCDIR}/configure \
          -release -commercial -confirm-license \
          -prefix ${QTDIR}/install \
          -sql-sqlite -qt-sqlite \
          -ssl -openssl-runtime -I${ANDROIDPATH}/openssl-current/include \
          -xplatform android-clang \
          -nomake tests -nomake examples \
          -android-sdk ${ANDROIDPATH}/android-sdk \
          -android-ndk ${ANDROIDPATH}/android-sdk/ndk/21.1.6352462 \
          -android-ndk-host linux-x86_64 \
          -no-warnings-are-errors -v

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            jirauser24743 user-678dd (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes