module "QtPositioning" is not installed



  • Hello all,

    I have a Qt app in Ubuntu. I'm trying to run the "subdirs" project using appman. The application builds fine.

    When I run the application, I get the following error:

    [CRIT | am.system] WARNING: for the installer to work correctly, the executable needs to be run either as root via sudo or SUID (preferred) [sudo.cpp:135]
    [CRIT | am.system] (using fallback implementation - you might experience permission errors on installer operations) [sudo.cpp:136]
    [WARN | default] The 'builtIn' field is deprecated. This line will not have any effect. [yamlapplicationscanner.cpp:149]
    [WARN | default] The 'builtIn' field is deprecated. This line will not have any effect. [yamlapplicationscanner.cpp:149]
    [WARN | default] The 'builtIn' field is deprecated. This line will not have any effect. [yamlapplicationscanner.cpp:149]
    [WARN | default] The 'builtIn' field is deprecated. This line will not have any effect. [yamlapplicationscanner.cpp:149]
    [DBG | am.system] Found Applications: [ [main.cpp:646]
    ... [main.cpp:648]
    [DBG | am.system] ] [main.cpp:649]
    [CRIT | am.system] WARNING: could not register service org.freedesktop.Notifications on D-Bus (unix:abstract=/tmp/dbus-xvdZjCDE5A): [main.cpp:232]
    [WARN | default] QQmlApplicationEngine failed to load component [qqmlapplicationengine.cpp:132]
    [WARN | default] file:///ui/Main.qml:38 Type Display unavailable
    file:////../ui/sysui/Display.qml:22 Type StatusBar unavailable
    file:///../ui/sysui/StatusBar/StatusBar.qml:49 Type LatLongWidget unavailable
    file:///../ui/sysui/StatusBar/LatLongWidget.qml:6 module "QtPositioning" is not installed
    [qqmlapplicationengine.cpp:133]
    [CRIT | am.system] ERROR: Qml scene does not have a root object

    I've tried the following:

    1. According to https://forum.qt.io/topic/50037/qml-included-modules-not-installed-unless-qml-directory-is-a-subdirectory-of-the-project-file/3, I set the QML_ROOT_PATH with no luck.
    2. This did not help either - http://stackoverflow.com/questions/39472286/qml-error-qrc-main-qml24-module-system-is-not-installed. This is because I'm using appman rather than using "QQmlApplicationEngine" directly to run the application.

    Any clues to get the application to run?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.