Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Deploy error: qrc:/main.qml:2 module "QtQuick.Controls" is not installed
Forum Updated to NodeBB v4.3 + New Features

Deploy error: qrc:/main.qml:2 module "QtQuick.Controls" is not installed

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 2 Posters 3.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    expressw
    wrote on last edited by expressw
    #1

    I built my program on one PC and want to run it on another PC without Qt installed.

    Both os is Ubuntu 14.04.

    I've followed this http://doc.qt.io/qt-5/linux-deployment.html to deploy my program.

    I copied my program and libs below into one directory:

    libicudata.so.56 libicuuc.so.56 libQt5DBus.so.5 libQt5Network.so.5 libQt5Quick.so.5 libQt5XcbQpa.so.5
    libicui18n.so.56 libQt5Core.so.5 libQt5Gui.so.5 libQt5Qml.so.5 libQt5Widgets.so.5
    platforms/libqxcb.so

    also I wrote an sh script to start my program, just as the instruction says.

    I can run the script and program on the compiling PC,
    But, when I run the script on the deployment PC, I got error like:

    QQmlApplicationEngine failed to load component
    qrc:/main.qml:1 module "QtQuick" is not installed
    qrc:/main.qml:2 module "QtQuick.Controls" is not installed
    qrc:/main.qml:1 module "QtQuick" is not installed
    qrc:/main.qml:2 module "QtQuick.Controls" is not installed

    So, any other libs needed? what should I do?
    Thanks very much.

    jsulmJ 1 Reply Last reply
    0
    • E expressw

      I built my program on one PC and want to run it on another PC without Qt installed.

      Both os is Ubuntu 14.04.

      I've followed this http://doc.qt.io/qt-5/linux-deployment.html to deploy my program.

      I copied my program and libs below into one directory:

      libicudata.so.56 libicuuc.so.56 libQt5DBus.so.5 libQt5Network.so.5 libQt5Quick.so.5 libQt5XcbQpa.so.5
      libicui18n.so.56 libQt5Core.so.5 libQt5Gui.so.5 libQt5Qml.so.5 libQt5Widgets.so.5
      platforms/libqxcb.so

      also I wrote an sh script to start my program, just as the instruction says.

      I can run the script and program on the compiling PC,
      But, when I run the script on the deployment PC, I got error like:

      QQmlApplicationEngine failed to load component
      qrc:/main.qml:1 module "QtQuick" is not installed
      qrc:/main.qml:2 module "QtQuick.Controls" is not installed
      qrc:/main.qml:1 module "QtQuick" is not installed
      qrc:/main.qml:2 module "QtQuick.Controls" is not installed

      So, any other libs needed? what should I do?
      Thanks very much.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @expressw What is not clear: did you use Qt provided by Ubuntu?
      If so then you do not need to deploy your app, just copy the executable to the other PC.
      You just need to make sure you have Qt packages installed which are required by your app (QtQuick).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • E Offline
        E Offline
        expressw
        wrote on last edited by
        #3

        Thanks for your reply.

        I do not use Qt provided by Ubuntu.
        I compiled Qt from source.

        I guessed some Qt packages are required by my app, and I tried to install some qt package by 'apt-get install',
        but that doesn't work.

        jsulmJ 1 Reply Last reply
        0
        • E expressw

          Thanks for your reply.

          I do not use Qt provided by Ubuntu.
          I compiled Qt from source.

          I guessed some Qt packages are required by my app, and I tried to install some qt package by 'apt-get install',
          but that doesn't work.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @expressw Did you build and deploy QtQuick and QtQuickControls (do you have libQt5Quick.so and libQt5QuickControls.so)?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          E 1 Reply Last reply
          0
          • jsulmJ jsulm

            @expressw Did you build and deploy QtQuick and QtQuickControls (do you have libQt5Quick.so and libQt5QuickControls.so)?

            E Offline
            E Offline
            expressw
            wrote on last edited by
            #5

            @jsulm I have libQt5Quick.so, but no libQt5QuickControls.so

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved