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

Build fails with qul_font_data.cpp: No such file or directory error when project is placed under longer directory path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • Qt for MCUs 2.2.2, Qt for MCUs 2.7
    • Host Tools, Tooling Team
    • None
    • Windows

    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

      1. Create a longer base directory for storeing QML project. For example:   c:\Users\<your home>\Common\demo\Qt for MCU\MyApp
      2. Store your QML project under the directory
      3. Open the CMakeList.txt file by QtCreator and configure with MCU 2.2 or MCU 2.3.
      4. 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.

       

       

       

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              takujikawata Takuji Kawata
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes