Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved no qt platform plugin could be initialized

    Installation and Deployment
    4
    7
    51849
    Loading More Posts
    • 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.
    • A
      aminemaar last edited by

      Hello,

      After the installation of my Qt application on other computer (windows 10),
      I got this error when I start the app

      this application failed to start because no qt platform plugin could be initialized
      
      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @aminemaar last edited by

        @aminemaar Did you deploy your app properly? You can use windeployqt tool for that.
        Also how did you "install" your app?
        https://doc.qt.io/qt-5/windows-deployment.html

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

        1 Reply Last reply Reply Quote 0
        • A
          aminemaar last edited by

          @jsulm yes I use the windeploy tool, this is what I taped

          windeployqt --release --qmldir  C:\Qt\Qt5.12.1\5.12.1\msvc2017_64\qml   E:\projetsQT\build-Diagbox-Desktop_Qt_5_12_1_MSVC2017_64bit-Release\release\Diagbox.exe
          

          But the app still not working on other computer

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Hi,

            --qmldir wants the path to your project qml files.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            A 1 Reply Last reply Reply Quote 2
            • G
              Gennyswiss Banned last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • A
                aminemaar @SGaist last edited by aminemaar

                thank you @SGaist :) but
                why when i start the app on other computer (without qt framework installation) i got those erros in the log file

                2019-03-28 09:12:13.772 DBG default: hello
                2019-03-28 09:12:13.850 WRN default: Qt WebEngine ICU data not found at C:/Qt/Qt5.12.1/5.12.1/msvc2017_64/resources. Trying parent directory...
                2019-03-28 09:12:13.850 WRN default: Qt WebEngine ICU data not found at C:/Qt/Qt5.12.1/5.12.1/msvc2017_64. Trying application directory...
                2019-03-28 09:12:13.850 WRN default: Qt WebEngine ICU data not found at C:/Users/DBX/Desktop/Nouveau dossier/release. Trying fallback directory... The application MAY NOT work.
                2019-03-28 09:12:13.850 WRN default: Installed Qt WebEngine locales directory not found at location C:/Qt/Qt5.12.1/5.12.1/msvc2017_64/translations\qtwebengine_locales. Trying application directory...
                2019-03-28 09:12:13.850 WRN default: Qt WebEngine locales directory not found at location C:/Users/DBX/Desktop/Nouveau dossier/release\qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
                
                
                1 Reply Last reply Reply Quote 0
                • A
                  aminemaar last edited by

                  I solved it by adding the ressources files in C:\Qt\Qt5.12.1\5.12.1\msvc2017_64\resources
                  to the release folder beside app.exe

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post