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

qmlprojectexporter cannot export application source code normally

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt for MCUs 2.7
    • None
    • Arch Linux as PC system、Qt for MCUs2.7、MCUPresso
    • freeRTOS

    Description

      I have added the following to the config:

      ModuleFiles

      { MCU.qulModules: ["Controls", "Shapes","StudioComponents"] }

      and write import in a qml file
      import QtQuickUltralite.Studio.Components 1.0
      It works well in pc platform but when I generate platform UI source by this command:

      $QUL_ROOT/bin/qmlprojectexporter $QMLPROJECT_FILE --platform=mimxrt1170-evkb-freertos --toolchain=GCC --qul-dir="/home/stvsl/Qt/QtMCUs/2.7.0" --boarddefaults=$BOARDDEFAULTS --outdir=$APPLICATION_EXPORT_DIR

      When I remove all related content of "Shapes", "StudioComponents" these two components, it works perfectly.

      Please tell me how to solve this, I would be very grateful.

      Thanks.

       

      I found the cause of the issue. When executing the qmlprojectexporter command, it is necessary to add the corresponding parameters: --include-dirs /home/stvsl/Qt/QtMCUs/2.7.1/include,/home/stvsl/Qt/QtMCUs/2.7.1/include/qul/Shapes,/home/stvsl/Qt/QtMCUs/2.7.1/include/qul/StudioComponents. However, I feel this might not be necessary, as qmlprojectexporter can completely read the qmlproject file and use QUL_ROOT to add these automatically. Alternatively, relevant instructions could be added to the documentation.

       

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            stvsl stvsl 2060
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes