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

Qt3D Fails to compile when assimp is installed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.0 RC
    • 5.9.0 Alpha
    • Qt3D
    • None
    • c8dc1b687b672b9d19377898998142c139e1d6e4

    Description

      I get a compile error in Qt3D when building Qt 5.9.0 Alpha on Ubuntu Linux.
      If the assimp packages are installed, Qt3D fails to compile.

      These are the errors:
      assimpimporter.cpp: In member function ‘void Qt3DRender::AssimpImporter::loadAnimation(uint)’:
      assimpimporter.cpp:1100:38: error: ‘struct aiAnimation’ has no member named ‘mNumMorphMeshChannels’
      for (uint i = 0; i < assimpAnim->mNumMorphMeshChannels; ++i) {
      ^
      assimpimporter.cpp:1101:9: error: ‘aiMeshMorphAnim’ was not declared in this scope
      aiMeshMorphAnim *morphAnim = assimpAnim->mMorphMeshChannels[i];
      ^
      assimpimporter.cpp:1101:26: error: ‘morphAnim’ was not declared in this scope
      aiMeshMorphAnim *morphAnim = assimpAnim->mMorphMeshChannels[i];
      ^
      assimpimporter.cpp:1101:50: error: ‘struct aiAnimation’ has no member named ‘mMorphMeshChannels’
      aiMeshMorphAnim *morphAnim = assimpAnim->mMorphMeshChannels[i];
      ^
      assimpimporter.cpp:1111:13: error: ‘aiMeshMorphKey’ was not declared in this scope
      aiMeshMorphKey &key = morphAnim->mKeys[j];
      ^
      assimpimporter.cpp:1111:29: error: ‘key’ was not declared in this scope
      aiMeshMorphKey &key = morphAnim->mKeys[j];
      ^
      assimpimporter.cpp:1127:45: error: ‘struct aiMesh’ has no member named ‘mMethod’
      morphingAnimation->setMethod((mesh->mMethod == aiMorphingMethod_MORPH_NORMALIZED)
      ^
      assimpimporter.cpp:1127:56: error: ‘aiMorphingMethod_MORPH_NORMALIZED’ was not declared in this scope
      morphingAnimation->setMethod((mesh->mMethod == aiMorphingMethod_MORPH_NORMALIZED)
      ^
      Makefile:2449: recipe for target '.obj/assimpimporter.o' failed
      make[4]: *** [.obj/assimpimporter.o] Error 1
      make[4]: Leaving directory '/home/tranter/ics/qt-everywhere-opensource-src-5.9.0-alpha/qt3d/src/plugins/sceneparsers/assimp'
      Makefile:44: recipe for target 'sub-assimp-make_first' failed
      make[3]: *** [sub-assimp-make_first] Error 2
      make[3]: Leaving directory '/home/tranter/ics/qt-everywhere-opensource-src-5.9.0-alpha/qt3d/src/plugins/sceneparsers'
      Makefile:529: recipe for target 'sub-plugins-sceneparsers-make_first' failed
      make[2]: *** [sub-plugins-sceneparsers-make_first] Error 2
      make[2]: Leaving directory '/home/tranter/ics/qt-everywhere-opensource-src-5.9.0-alpha/qt3d/src'
      Makefile:45: recipe for target 'sub-src-make_first' failed
      make[1]: *** [sub-src-make_first] Error 2
      make[1]: Leaving directory '/home/tranter/ics/qt-everywhere-opensource-src-5.9.0-alpha/qt3d'
      Makefile:488: recipe for target 'module-qt3d-make_first' failed
      make: *** [module-qt3d-make_first] Error 2

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-59121
          # Subject Branch Project Status CR V

          Activity

            People

              anmaatta Antti Määttä
              tranter Jeff Tranter
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes