Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt for MCUs 2.7
-
None
-
Arch Linux as PC system、Qt for MCUs2.7、MCUPresso
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.