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

Include directives in qmltocpp.exe generated files are sometimes missing relative paths to headers

    XMLWordPrintable

Details

    • cc76a424, 1ebd61b5, ef350f36, 54df09b5

    Description

      Qt for MCU user reported following:
      "
      This problem is very closely related to https://bugreports.qt.io/browse/QTMCU-263, maybe even a duplicate, but I can't be sure.

      I have also noticed that the qmltocpp.exe is generating different results on different runs. The include directive order varies in generated files. And more severe problem is that sometimes the relative path to included headers are missing in the include directives and build fails because of that.

      The generated file may have the following include:
      #include <BackendModule.hpp>

      This fails during compilation, because the BackendModule.hpp is located under subdirectory.
      Sometimes the qmltocpp.exe produces correct include:
      #include <relative_path/subdir1/subdir2/BackendModule.hpp>

      The above will compile fine.

      I haven't been able to determine any fool-proof strategy, how to reproduce reliably either the failing or the successful scenario. It seems very random, which output the qmltocpp.exe generates on different runs.

      Also worth mentioning that I tried compiling the project with Qt for MCUs 2.5.3 and the same problems occurred there.
      "

      Attachments

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

        Activity

          People

            k0rahman Karim Abdelrahman
            tero.pelkonen Tero Pelkonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes