Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
6.2.0
-
None
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