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

Qt 6 static compilation fails at ComputeUVMappingProcess.cpp (Asset Importer)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.0.1
    • Fix Version/s: 6.2.0 Alpha
    • Component/s: Build System: CMake
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      0be1127d643f7a411748f2227f898aaf1ed45a1a 2576c8c3a6a5229f7dc99125be8f1b6fad66e7ce

      Description

      Static build for 6.0 and 6.01 fails with error in AssetImporter:

      obj /Fdqtbase\plugins\assetimporters\Qt6AssimpImporterPlugind.pdb /FS -c C:\Users\x\qt6\qtquick3d\src\3rdparty\assimp\src\code\PostProcessing\ComputeUVMappingProcess.cpp
      C:\Users\x\simcortex\qt6\qtquick3d\src\3rdparty\assimp\src\code\PostProcessing\ComputeUVMappingProcess.cpp(125): error C2632: 'int' followed by 'char' is illegal
      C:\Users\x\simcortex\qt6\qtquick3d\src\3rdparty\assimp\src\code\PostProcessing\ComputeUVMappingProcess.cpp(125): error C2513: 'unsigned int': no variable declared before '='
      C:\Users\x\simcortex\qt6\qtquick3d\src\3rdparty\assimp\src\code\PostProcessing\ComputeUVMappingProcess.cpp(125): error C2143: syntax error: missing ';' before ','
      C:\Users\x\simcortex\qt6\qtquick3d\src\3rdparty\assimp\src\code\PostProcessing\ComputeUVMappingProcess.cpp(125): error C2059: syntax error: ','
      C:\Users\x\simcortex\qt6\qtquick3d\src\3rdparty\assimp\src\code\PostProcessing\ComputeUVMappingProcess.cpp(136): error C2513: 'char': no variable declared before '='
      C:\Users\x\simcortex\qt6\qtquick3d\src\3rdparty\assimp\src\code\PostProcessing\ComputeUVMappingProcess.cpp(146): error C2065: 'large': undeclared identifier
      C:\Users\x\simcortex\qt6\qtquick3d\src\3rdparty\assimp\src\code\PostProcessing\ComputeUVMappingProcess.cpp(154): error C2059: syntax error: '!='
      C:\Users\x\simcortex\qt6\qtquick3d\src\3rdparty\assimp\src\code\PostProcessing\ComputeUVMappingProcess.cpp(155): error C2143: syntax error: missing ';' before '{'
      [3917/6306] Automatic MOC for target Quick
      ninja: build stopped: subcommand failed.
      

      Configure command is:

      ..\qt6\configure.bat -nomake examples -nomake tests -opensource -confirm-license -static -static-runtime -openssl-linked -prefix C:\Qt\6.0.1\msvc2019_64_static
      

      Same error reported on Qt forums: https://forum.qt.io/topic/123278/qt6-build-error-with-visual-studio-2019-and-qtquick3d

        Attachments

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

          Activity

            People

            Assignee:
            kkohne Kai Köhne
            Reporter:
            sjpritchard Stephen Pritchard
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes