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

FTBFS when using the system assimp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.1.0 Alpha, 6.2
    • Fix Version/s: None
    • Component/s: Qt3D
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      Tested and reproduced with both the 6.1 alpha tag and dev.

      The qt3d repo is fetched without the assimp submodule.

      I tried both -DQT_FEATURE_qt3d_system_assimp=ON and -assimp=system (documented in config_help.txt with the same result:

      [ 67s] CMake Warning (dev) at /usr/lib64/cmake/assimp-5.0/assimpTargets.cmake:44 (if):
      [ 67s] if given arguments:
      [ 67s] 
      [ 67s] "ON"
      [ 67s] 
      [ 67s] An argument named "ON" appears in a conditional statement. Policy CMP0012
      [ 67s] is not set: if() recognizes numbers and boolean constants. Run "cmake
      [ 67s] --help-policy CMP0012" for policy details. Use the cmake_policy command to
      [ 67s] set the policy and suppress this warning.
      [ 67s] Call Stack (most recent call first):
      [ 67s] /usr/lib64/cmake/assimp-5.0/assimp-config.cmake:1 (include)
      [ 67s] cmake/FindWrapQt3DAssimp.cmake:8 (find_package)
      [ 67s] /usr/lib64/cmake/Qt6/QtFindPackageHelpers.cmake:113 (find_package)
      [ 67s] src/core/configure.cmake:11 (qt_find_package)
      [ 67s] /usr/lib64/cmake/Qt6/QtModuleHelpers.cmake:427 (include)
      [ 67s] src/core/CMakeLists.txt:7 (qt_internal_add_module)
      [ 67s] This warning is for project developers. Use -Wno-dev to suppress it.
      [ 67s] 
      [ 67s] -- Found WrapQt3DAssimp: TRUE (Required is at least version "5") 
      [ 67s] -- Performing Test 
      [ 67s] CMake Warning at /home/abuild/rpmbuild/BUILD/qt3d-6.2.0~git/config.tests/assimp/CMakeLists.txt:7 (find_package):
      [ 67s] By not providing "FindWrapAssimp.cmake" in CMAKE_MODULE_PATH this project
      [ 67s] has asked CMake to find a package configuration file provided by
      [ 67s] "WrapAssimp", but CMake did not find one.
      [ 67s] 
      [ 67s] Could not find a package configuration file provided by "WrapAssimp"
      [ 67s] (requested version 5) with any of the following names:
      [ 67s] 
      [ 67s] WrapAssimpConfig.cmake
      [ 67s] wrapassimp-config.cmake
      [ 67s] 
      [ 67s] Add the installation prefix of "WrapAssimp" to CMAKE_PREFIX_PATH or set
      [ 67s] "WrapAssimp_DIR" to a directory containing one of the above files. If
      [ 67s] "WrapAssimp" provides a separate development package or SDK, be sure it has
      [ 67s] been installed.
      [ 67s] 
      [ 67s] 
      [ 68s] -- Performing Test - Failed
      [ 68s] CMake Warning at /usr/lib64/cmake/Qt6/QtFindPackageHelpers.cmake:113 (find_package):
      [ 68s] By not providing "FindWrapAssimp.cmake" in CMAKE_MODULE_PATH this project
      [ 68s] has asked CMake to find a package configuration file provided by
      [ 68s] "WrapAssimp", but CMake did not find one.
      [ 68s] 
      [ 68s] Could not find a package configuration file provided by "WrapAssimp"
      [ 68s] (requested version 5) with any of the following names:
      [ 68s] 
      [ 68s] WrapAssimpConfig.cmake
      [ 68s] wrapassimp-config.cmake
      [ 68s] 
      [ 68s] Add the installation prefix of "WrapAssimp" to CMAKE_PREFIX_PATH or set
      [ 68s] "WrapAssimp_DIR" to a directory containing one of the above files. If
      [ 68s] "WrapAssimp" provides a separate development package or SDK, be sure it has
      [ 68s] been installed.
      [ 68s] Call Stack (most recent call first):
      [ 68s] src/core/configure.cmake:23 (qt_find_package)
      [ 68s] /usr/lib64/cmake/Qt6/QtModuleHelpers.cmake:427 (include)
      [ 68s] src/core/CMakeLists.txt:7 (qt_internal_add_module)
      [ 68s] 

       

      The feature summary logically reports WrapQt3DAssimp is found and WrapAssimp is not.

      But the configure summary then reports both are ON:

      [ 71s] Configure summary:
      [ 71s] 
      [ 71s] Qt 3D:
      [ 71s] Assimp ................................. yes
      [ 71s] qt3d_system_assimp ..................... yes

       

      and finally fails because:

      [ 73s] CMake Error at /usr/lib64/cmake/Qt6/QtPluginHelpers.cmake:69 (add_library):
      [ 73s] Target "AssimpSceneImportPlugin" links to target "WrapAssimp::WrapAssimp"
      [ 73s] but the target was not found. Perhaps a find_package() call is missing for
      [ 73s] an IMPORTED target, or an ALIAS target is missing?
      [ 73s] Call Stack (most recent call first):
      [ 73s] src/plugins/sceneparsers/assimp/CMakeLists.txt:7 (qt_internal_add_plugin)

       

       

        Attachments

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

          Activity

            People

            Assignee:
            seanharmer Sean Harmer
            Reporter:
            cgiboudeaux Christophe Giboudeaux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes