This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3358: QML projects with Arago

Part Number: AM3358

Tool/software: Linux

Goodmorning,

I'm using a beaglebone black and I've succesfully create SDK with command MACHINE=am335x-evm bitbake meta-toolchain-arago-tisdk. Unfortunately, as I open a QML project in QtCreator,I get the following errors:

import QtQuick.Window 2.2                                          // QML module not found.
import QtQuick.VirtualKeyboard 2.2                           // QML module not found.
import QtQuick.VirtualKeyboard.Settings 2.2           // QML module not found.

I could find these modules in ../arago-2018.04/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/qt5/qml, consequently a solution that I found was to add export QML_IMPORT_PATH=/opt/arago-2018.04/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/qt5/qml in environment-setup file. However such solution is not feasible because I should export every existing plugin subfolder. In fact, adding this line I sorted out the QtQuick.Window problem but not VirtualKeyboard errors since they are contained in subfolders.

 Isn't there a recipe setting that can sort out the problem in a more efficient way?

Thank you.

  • Hello,

    What is the sdk that you are using here and qt version?
    Please refer below thread:
    e2e.ti.com/.../727967
    and this guide:
    processors.wiki.ti.com/.../Sitara_Linux_Training:_Hands_on_with_QT
    Hope this helps.

    BR
    Margarita
  • Hello Margarita,

    thank you for your answer. I've generate the image "arago-tisdk-rootfs-image" and "meta-toolchain-arago-tisdk" sdk with the following arago version .

    Arago version:

    • Distro Version: 2018.04
    • Qmake version: 5.9.6

    The program QtCreator version is 5.11.2.

    Regarding the link that you suggest me, processors.wiki.ti.com/.../Sitara_Linux_Training:_Hands_on_with_QT , the QtCreator configuration steps are the same as mine (except that I generate the image and sdk with Arago) while the lab exercises, focus exclusively on QWidget while I'm trying to use QML. However it has been useful to know that in QWidget applications, there is the possibility to use the soft keyboard.

    The second link, propose a valid solution which is exactly the same as the one that I found,

    Thinking more about my problem, I realized that it concerns specifically QML plugin for a Virtual Keyboard (QVirtualKeyboard).

    In /opt/arago-2018.04/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/qt5/qml, there is no trace of QVirtualKeyboard.

    Besides, as you can see below, searching in ti-processor-sdk-linux-am335x-evm-05.00.00.15/linux-devkit/sysroots/armv7ahf-neon-gnueabi/usr/lib/qt5/qml, there is no QVirtualKeyboard either.

    Is it possible to add QVirtualKeyboard plugin for QML application through Arago?

    Thank you.

  • Please see my post below.
  • Hello,

    You could find the recipe for qtvirtualkeyboard here:
    /tisdk/sources/meta-qt5/recipes-qt/qt5
    recipe name: qtvirtualkeyboard_git.bb
    You must run this command:
    MACHINE=<machine> bitbake qtvirtualkeyboard
    Note: you must follow the building guide depending of the PSDK version that you are using.
    When the build is finish you could find the qt virtual keyboard here:
    /tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/qtvirtualkeyboard
    and
    /tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/qtvirtualkeyboard/git.xx.xx./packages-split/qtvirtualkeyboard-qmlplugins/usr/lib/qt5/qml/QtQuick

    Hope this helps.

    BR
    Margarita
  • Hello Margarita,

    thank you for your answer. I recompiled the image and I get the plugin in the following path (a little different from yours):

    /home/davide/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots-components/armv7ahf-neon/qtvirtualkeyboard/usr/lib/qt5/qml

    At last I only had to add this path to QML_IMPORT_PATH environment variable inside environment-setup. It's just a little annoying that I have to add manually the path of each plugin that it's not contained inside standard meta-toolchian-arago-tisdk sysroots. However it's feasible.

    Thank you again.

    Davidino