Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
Qt for MCUs 2.2.2, Qt for MCUs 2.7
-
None
Description
Summary of the situation:
For Qt for MCU project, build fails when the build directory path is long. It seems qulfontcompiler fails to execute its command with the longer directory name and fails to create qul_font_data.cpp file. The problem is reproduced by MCU 2.2.2 and 2.3. The problem is reproduced on Windows host platform.
Steps to Reproduce
- Create a longer base directory for storeing QML project. For example: c:\Users\<your home>\Common\demo\Qt for MCU\MyApp
- Store your QML project under the directory
- Open the CMakeList.txt file by QtCreator and configure with MCU 2.2 or MCU 2.3.
- Execute the build.
Expected Behavior
- Build success without any problem.
Actual Behavior
- Build fail with error. Following is an example
c1xx: fatal error C1083: ソース ファイルを開けません。'C:\Users\81701\work\Common\demo\Qt for MCU\printerui\build-PrinterUI-Qt_for_MCUs_2_2_Desktop_32bpp-Debug\CMakeFiles\PrinterUI.dir\qul_font_engines.cpp':No such file or directory
Workaround
By modifying the default build path to shorter directory path, you can workaround the situtation.
Note:
As this is type of a error hard to find the reason, fixing it or giving some supplemental message for the workaround when CMake detected the issue is better.