Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
Qt for MCUs 2.7, Qt for MCUs 2.5.3
-
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.
"