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

Configure failure with system assimp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.3
    • Fix Version/s: None
    • Component/s: Build System, Qt3D, Quick: 3D
    • Labels:
      None
    • Environment:
      - Ubuntu 20.04
      - cmake version 3.21.1 (not the system cmake, using the one from Qt installer)
      - gcc version 11.2.1 20211115 (GCC)
      - qt5.git less than a day old
    • Platform/s:
      Linux/X11

      Description

      I get this when I apt-get install libassimp-dev:

      Configuring 'qtquick3d'
      -- Running syncqt for module: 'QtQuick3DUtils' 
      -- Running syncqt for module: 'QtQuick3DAssetImport' 
      -- Running syncqt for module: 'QtQuick3DRuntimeRender' 
      -- Running syncqt for module: 'QtQuick3D' 
      -- Running syncqt for module: 'QtQuick3DParticles' 
      -- Running syncqt for module: 'QtQuick3DAssetUtils' 
      CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/assimp-5.0/assimpTargets.cmake:54 (if):
        if given arguments:
      
          "ON"
      
        An argument named "ON" appears in a conditional statement.  Policy CMP0012
        is not set: if() recognizes numbers and boolean constants.  Run "cmake
        --help-policy CMP0012" for policy details.  Use the cmake_policy command to
        set the policy and suppress this warning.
      Call Stack (most recent call first):
        /usr/lib/x86_64-linux-gnu/cmake/assimp-5.0/assimp-config.cmake:1 (include)
        qtquick3d/cmake/FindWrapQuick3DAssimp.cmake:7 (find_package)
        qtbase/cmake/QtFindPackageHelpers.cmake:130 (find_package)
        qtquick3d/src/plugins/assetimporters/configure.cmake:13 (qt_find_package)
        qtquick3d/src/plugins/assetimporters/CMakeLists.txt:9 (include)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      -- Performing Test Assimp
      CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/assimp-5.0/assimpTargets.cmake:54 (if):
        if given arguments:
      
          "ON"
      
        An argument named "ON" appears in a conditional statement.  Policy CMP0012
        is not set: if() recognizes numbers and boolean constants.  Run "cmake
        --help-policy CMP0012" for policy details.  Use the cmake_policy command to
        set the policy and suppress this warning.
      Call Stack (most recent call first):
        /usr/lib/x86_64-linux-gnu/cmake/assimp-5.0/assimp-config.cmake:1 (include)
        /home/marc/Qt/qt5/qtquick3d/cmake/FindWrapQuick3DAssimp.cmake:7 (find_package)
        /home/marc/Qt/qt5/qtquick3d/config.tests/quick3d_assimp/CMakeLists.txt:14 (find_package)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      CMake Error in /home/marc/Qt/qt5/qtquick3d/config.tests/quick3d_assimp/CMakeLists.txt:
        Imported target "WrapQuick3DAssimp::WrapQuick3DAssimp" includes
        non-existent path
      
          "/usr/lib/include"
      
        in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
      
        * The path was deleted, renamed, or moved to another location.
      
        * An install or uninstall procedure did not complete successfully.
      
        * The installation package was faulty and references files it does not
        provide.
      
      
      
      CMake Error at /home/marc/Qt/qt5-build/qtbase/lib/cmake/Qt6/QtFeature.cmake:908 (try_compile):
        Failed to generate test project build system.
      Call Stack (most recent call first):
        qtquick3d/src/plugins/assetimporters/configure.cmake:15 (qt_config_compile_test)
        qtquick3d/src/plugins/assetimporters/CMakeLists.txt:9 (include)
      
      
      -- Configuring incomplete, errors occurred!
      

      config.opt:

      -opensource
      -confirm-license
      -release
      -force-debug-info
      -separate-debug-info
      -c++std
      c++20
      -developer-build
      -make
      examples
      -nomake
      examples
      -skip
      qtopcua
      -skip
      qtscxml
      -skip
      qtlocation
      --webengine-jumbo-build=20
      -webengine-proprietary-codecs
      -sctp
      

      (± a -skip on qtpositioning)

      The error goes away when I apt-get remove --purge libassimp-dev again.

        Attachments

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

          Activity

            People

            Assignee:
            jbornema Joerg Bornemann
            Reporter:
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes