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

mainFile + file selector results in a build error

    XMLWordPrintable

Details

    Description

      Setting file selector in mcu config has no effect on mainFile definition.

       

      Main file is defined as such

          mainFile: "RotatingRect.qml" // The application's entrypoint 

      and file selector like so:

          MCU.Config {
              ...
              fileSelector: ["small"]
              ...
          } 

      and main file is located at:

      +small/RotatingRect.qml

      However, the build results in the following error:

      11:59:22: 起動中: "C:\Program Files\CMake\bin\cmake.exe" --build C:/Users/mipernu/Downloads/RotatingRect/RotatingRect/build/Qt_for_MCUs_2_9_Desktop_32bpp_MSVC-Debug --target all
      ninja: error: 'C:/Users/mipernu/Downloads/RotatingRect/RotatingRect/RotatingRect.qml', needed by 'CMakeFiles/RotatingRect.dir/RotatingRect.h', missing and no known rule to make it 

      Steps to reproduce the error:

      • Try to build the attached sample.

      NOTE: The file selector seems to work with the other QML files.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            miikapernu Miika Pernu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes