Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-47

Unable to build Qt Quick Ultralite from sources when MSVC version 14.29 is installed

    XMLWordPrintable

Details

    • Windows

    Description

      There is a mismatch of clang versions when building Qt Quick Ultralite (for example for RH850-D1M1A-baremetal) from sources when MSVC version 14.29 is installed. As far as I know clang version 10 is used in the qmlinterfacegenerator internally which causes this mismatch.

      Log of the build and error is the following:

      **********************************************************************

        • Visual Studio 2019 Developer Command Prompt v16.10.1
        • Copyright (c) 2021 Microsoft Corporation
          **********************************************************************
          [vcvarsall.bat] Environment initialized for: 'x64'
          C:\>set Qul_DIR=C:\Qt\QtMCUs\1.8.0
          C:\>set GHS_COMPILER_DIR=C:\ghs\comp_201815
          C:\>set RGL_DIR=C:\Renesas_Electronics\D1x_RGL\rgl_ghs_D1Mx_obj_V1.9.1a
          C:\>cd %Qul_DIR%
          C:\Qt\QtMCUs\1.8.0>mkdir RenesasBoard
          C:\Qt\QtMCUs\1.8.0>cd RenesasBoard
          C:\Qt\QtMCUs\1.8.0\RenesasBoard>cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=..\lib\cmake\Qul\toolchain\ghs.cmake -DQUL_GENERATORS=..\lib\cmake\Qul\QulGenerators.cmake -DQUL_PLATFORM=RH850-D1M1A-baremetal
        • TOOLCHAIN_DIR: C:/ghs/comp_201815
        • TOOLCHAIN_DIR: C:/ghs/comp_201815
        • The C compiler identification is GHS 2018.1.5
        • The CXX compiler identification is GHS 2018.1.5
        • The ASM compiler identification is unknown
        • Found assembler: C:/ghs/comp_201815/ccv850.exe
        • Detecting C compiler ABI info
        • Detecting C compiler ABI info - done
        • Check for working C compiler: C:/ghs/comp_201815/ccv850.exe - skipped
        • Detecting CXX compiler ABI info
        • Detecting CXX compiler ABI info - done
        • Check for working CXX compiler: C:/ghs/comp_201815/cxv850.exe - skipped
        • Warning: Did not find file Compiler/-ASM
          Version: dev
        • IPO is not supported: CMake doesn't support IPO for current CXX compiler
        • Using Internal flash memory for assets
        • Using SDRAM memory
        • Could not find RFPV3.Console.exe in %RenesasFlashProgrammer_PATH%
        • Flash target will be disabled!
          Build Qul framework
        • Qul Dir: C:/Qt/QtMCUs/1.8.0/lib/cmake/Qul
        • Reading board defaults from C:/Qt/QtMCUs/1.8.0/platform/boards/renesas/rh850-d1m1a-baremetal/cmake/BoardDefaults.cmake
        • Qul Color Depth: 32
        • Qul Platform Backend: RH850-D1M1A-baremetal
        • Qul Screen Size: 800x600
        • Qul Platform OS: BareMetal
          Qul Property Update Style (default Lazy): Lazy
          Support for std::string conversions: enabled
          Support for runtime lookup of resource URIs: enabled
          Build Qul Platform
        • Qul Dir: C:/Qt/QtMCUs/1.8.0/lib/cmake/Qul
        • Reading board defaults from C:/Qt/QtMCUs/1.8.0/platform/boards/renesas/rh850-d1m1a-baremetal/cmake/BoardDefaults.cmake
        • Qul Color Depth: 32
        • Qul Platform Backend: RH850-D1M1A-baremetal
        • Qul Screen Size: 800x600
        • Qul Platform OS: BareMetal
        • RGL VERSION: 1.9.1a
          Build Qul examples
          Build Qul demos
        • Configuring done
        • Generating done
        • Build files have been written to: C:/Qt/QtMCUs/1.8.0/RenesasBoard

      C:\Qt\QtMCUs\1.8.0\RenesasBoard>nmake

      Microsoft (R) Program Maintenance Utility Version 14.29.30037.0
      Copyright (C) Microsoft Corporation. All rights reserved.

      [ 1%] Running qmlinterfacegenerator on C:/Qt/QtMCUs/1.8.0/include/qul/private/animation.h
      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\yvals_core.h:537:2: error: STL1000: Unexpected compiler version, expected Clang 11.0.0 or newer.
      Error: STL1000: Unexpected compiler version, expected Clang 11.0.0 or newer.
      NMAKE : fatal error U1077: 'C:\Qt\QtMCUs\1.8.0\bin\qmlinterfacegenerator.exe' : return code '0x1'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX64\x64\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX64\x64\nmake.exe"' : return code '0x2'
      Stop.

      Attachments

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

        Activity

          People

            jakub.wegrzyn Jakub Wegrzyn
            foxxx Tuukka Kettunen
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes