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. Cannot run QML app without Build environmant
QtWS25 Last Chance

Cannot run QML app without Build environmant

Scheduled Pinned Locked Moved Installation and Deployment
qmlwindows release
5 Posts 2 Posters 4.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.
  • N Offline
    N Offline
    Nayar
    wrote on 19 Mar 2015, 09:27 last edited by
    #1

    Hi. I have put all the required .dll inside the generated .exe by QtCreator. When I run the app using system environment, it says

    QQmlApplicationEngine failed to load component
    qrc:/main.qml:1 plugin cannot be loaded for module "QtQuick": Cannot load library C:/Users/Dell/Documents/Qt/build-Vitadisk-Desktop_Qt_5_4_0_MinGW_32bit-Release/release/QtQuick.2/qtquick2plugin.dll: The specified module could not be found.
    

    I have put the folder QtQuick2 from Qt installed directory. It looks like this
    http://s18.postimg.org/mb7jo655l/Capture_Qt.jpg

    What am i doing wrong?

    1 Reply Last reply
    0
    • N Offline
      N Offline
      Nayar
      wrote on 19 Mar 2015, 10:19 last edited by
      #2

      I have followed this tutorial: http://qt-project.org/wiki/Deploy_an_Application_on_Windows

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sierdzio
        Moderators
        wrote on 19 Mar 2015, 10:31 last edited by
        #3

        QtQuick dll is missing in your screenshot

        (Z(:^

        1 Reply Last reply
        0
        • N Offline
          N Offline
          Nayar
          wrote on 19 Mar 2015, 10:48 last edited by
          #4

          I managed to solve it using "The Windows Deployment Tool" from http://doc.qt.io/qt-5/windows-deployment.html

          windeployqt.exe --qmldir <path-to-my-qml-source-code> MyApp.exe

          It was magic. This tool was last on the page. I used to copy .dlls manually before -_-

          Great it got solved :D

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sierdzio
            Moderators
            wrote on 19 Mar 2015, 10:50 last edited by
            #5

            Ah. I thought you've used it before and still had problems ;-) OK great, happy coding!

            (Z(:^

            1 Reply Last reply
            0

            1/5

            19 Mar 2015, 09:27

            • Login

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