Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-6599

Unable to build project created in Qt Design Studio

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • QDS 3.3
    • QDS 2.3, QDS 3.1, QDS 3.2
    • MCU support
    • None
    • All
    • QDS Berlin - 2022 Week 13/14

    Description

      QDS version - 2.3.1, QDS 3.1

      Qt for MCU version - 2.1.0 (417bc5030c9835852dc349a49fb9cce06a1a8cff)

      Steps to reproduce -
      1) Open QDS, create a new project, and save it to the file system
      2) Try building the project for desktop using CLI

      The build fails.
      Following is the log

      C:\Users\Dell\Documents\MyDSproject\build>cmake .. -DQUL_PLATFORM=Qt -DQul_ROOT=%QUL_ROOT%
      -- Building for: Visual Studio 16 2019
      -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
      -- The C compiler identification is MSVC 19.28.29913.0
      -- The CXX compiler identification is MSVC 19.28.29913.0
      -- The ASM compiler identification is MSVC
      -- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe
      -- The ASM_MASM compiler identification is MSVC
      -- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/ml64.exe
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- CMake version 3.21.1
      -- Loading board defaults C:/Qt2.1_ULTI_production/QtMCUs/2.1.0/lib/cmake/Qul/../../../platform/boards/qt/qt/cmake/BoardDefaults.cmake
      -- OS: BareMetal
      -- IPO is disabled for desktop backends
      -- Using imported architecture configuration. Ignoring architecture.cmake file.
      -- Found Qt5Bundle: C:/Qt2.1_ULTI_production/QtMCUs/2.1.0/lib  found components: Core Gui Widgets
      -- Configuring done
      -- Generating done
      -- Build files have been written to: C:/Users/Dell/Documents/MyDSproject/build
      
      C:\Users\Dell\Documents\MyDSproject\build>cmake --build . --target MyDSproject --config Release
      Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET Framework
      Copyright (C) Microsoft Corporation. All rights reserved.  Checking Build System
        Running qulrcc on (module) C:/Users/Dell/Documents/MyDSproject/build/Constants/resources/Windows-AMD64-qulrcc_cmake_resources.json
        Running qmltocpp on imports/Constants/Constants.qml
        Building Custom Rule C:/Users/Dell/Documents/MyDSproject/CMakeLists.txt
        Constants.cpp
        ConstantsModule.vcxproj -> C:\Users\Dell\Documents\MyDSproject\build\Constants\Release\ConstantsModule.lib
        Running qulrcc on C:/Users/Dell/Documents/MyDSproject/build/CMakeFiles/MyDSproject.dir/qulrcc_cmake_resources.json
        Running qmltocpp on C:/Users/Dell/Documents/MyDSproject/MyDSproject.qml
        Running qmltocpp on C:/Users/Dell/Documents/MyDSproject/Screen01.ui.qml
        Running qmltocpp on C:/Users/Dell/Documents/MyDSproject/build/Constants/Constants.qml
        ←[31merror:←[0m Type Constants with 'pragma Singleton' is imported as non-singleton. Singletons defined in QML must be part of a module.
      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(240,5): error MSB8066: Custom buil
      d for 'C:\Users\Dell\Documents\MyDSproject\build\CMakeFiles\b0adea22aa17fc7c922786f860cafcbd\qulrcc_output.json.rule;C:\Users\Dell\Documents\MyDSproje
      ct\build\CMakeFiles\b0adea22aa17fc7c922786f860cafcbd\MyDSproject.h.rule;C:\Users\Dell\Documents\MyDSproject\build\CMakeFiles\b0adea22aa17fc7c922786f86
      0cafcbd\Screen01.h.rule;C:\Users\Dell\Documents\MyDSproject\build\CMakeFiles\b0adea22aa17fc7c922786f860cafcbd\Constants.h.rule;C:\Users\Dell\Documents
      \MyDSproject\build\CMakeFiles\b0adea22aa17fc7c922786f860cafcbd\qul_font_engines.cpp.rule;C:\Users\Dell\Documents\MyDSproject\build\CMakeFiles\b0adea22
      aa17fc7c922786f860cafcbd\QtQuick_Co_qul_resource_slider-bac_0.cpp.rule' exited with code 1. [C:\Users\Dell\Documents\MyDSproject\build\MyDSproject.vcx
      proj]
      

       

      Attachments

        Issue Links

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

          Activity

            People

              algerman Aleksei German
              omrahate omrahate
              Yoann Lopes Yoann Lopes
              Ilkka Kellokoski Ilkka Kellokoski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes