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

QT3D fails to compile on macos when system assimp is installed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 6.2.0
    • Qt3D
    • None
    • macOS

    Description

      To reproduce

      Install assimp via brew on macos.

      Then, using a build with qtbase(compiled with conf flags -developer-build and -nomake tests) and qtdeclarative (configured with qt-configure-module), configure qt3d with qt-configure-module.

      Result

      The conf log should mention that System assimp and built-in assimp was found:

      Qt 3D:
      {{ Assimp ................................. yes}}
      {{ System Assimp .......................... yes}}

      but later throw the following error:

      CMake Error at /Users/dskoland/qt/task/qt3d-assimp-compile-fail/yes-system-assimp/qtbase-build/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2131 (add_library):
      {{ Target "AssimpSceneImportPlugin" links to target}}
      {{ "WrapQt3DAssimp::WrapQt3DAssimp" but the target was not found. Perhaps a}}
      {{ find_package() call is missing for an IMPORTED target, or an ALIAS target}}
      {{ is missing?}}
      Call Stack (most recent call first):
      {{ /Users/dskoland/qt/task/qt3d-assimp-compile-fail/yes-system-assimp/qtbase-build/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1971 (_qt_internal_add_library)}}
      {{ /Users/dskoland/qt/task/qt3d-assimp-compile-fail/qtbase/cmake/QtPluginHelpers.cmake:87 (qt6_add_plugin)}}
      {{ src/plugins/sceneparsers/assimp/CMakeLists.txt:7 (qt_internal_add_plugin)}}

      Workaround

      Pass

      -DFEATURE_qt3d_system_assimp=OFF

      to cmake, and it will ignore system assimp and succeed in configuring

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            david.skoland David Skoland
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes