Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Application can't start because could not find or load Qt
Forum Updated to NodeBB v4.3 + New Features

Application can't start because could not find or load Qt

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
23 Posts 5 Posters 25.9k Views 2 Watching
  • 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.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #14

    @peter_cz said in Application can't start because could not find or load Qt:

    "C:/Anaconda3

    is that from running Creator ?

    Seems that it loads Dlls from C:/Anaconda3 which is seems wrong.
    Mine loads from its installation folder.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      peter_cz
      wrote on last edited by
      #15

      in the case of CMake:

      00000001 0.00000000 [14796] QFactoryLoader::QFactoryLoader() checking directory path "C:/Anaconda3/Library/plugins/platforms" ...
      00000002 0.00030001 [14796] QFactoryLoader::QFactoryLoader() looking at "C:/Anaconda3/Library/plugins/platforms/qminimal.dll"
      00000003 0.00062292 [14796] Found metadata in lib C:/Anaconda3/Library/plugins/platforms/qminimal.dll, metadata=
      00000004 0.00062292 [14796] {
      00000005 0.00062292 [14796] "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
      00000006 0.00062292 [14796] "MetaData": {
      00000007 0.00062292 [14796] "Keys": [
      00000008 0.00062292 [14796] "minimal"
      00000009 0.00062292 [14796] ]
      00000010 0.00062292 [14796] },
      00000011 0.00062292 [14796] "className": "QMinimalIntegrationPlugin",
      00000012 0.00062292 [14796] "debug": false,
      00000013 0.00062292 [14796] "version": 329218
      00000014 0.00062292 [14796] }
      00000015 0.00062292 [14796]
      00000016 0.00062292 [14796]
      00000017 0.00066990 [14796] Got keys from plugin meta data ("minimal")
      00000018 0.00068529 [14796] QFactoryLoader::QFactoryLoader() looking at "C:/Anaconda3/Library/plugins/platforms/qoffscreen.dll"
      00000019 0.00099952 [14796] Found metadata in lib C:/Anaconda3/Library/plugins/platforms/qoffscreen.dll, metadata=
      00000020 0.00099952 [14796] {
      00000021 0.00099952 [14796] "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
      00000022 0.00099952 [14796] "MetaData": {
      00000023 0.00099952 [14796] "Keys": [
      00000024 0.00099952 [14796] "offscreen"
      00000025 0.00099952 [14796] ]
      00000026 0.00099952 [14796] },
      00000027 0.00099952 [14796] "className": "QOffscreenIntegrationPlugin",
      00000028 0.00099952 [14796] "debug": false,
      00000029 0.00099952 [14796] "version": 329218
      00000030 0.00099952 [14796] }
      00000031 0.00099952 [14796]
      00000032 0.00099952 [14796]
      00000033 0.00112781 [14796] Got keys from plugin meta data ("offscreen")
      00000034 0.00114321 [14796] QFactoryLoader::QFactoryLoader() looking at "C:/Anaconda3/Library/plugins/platforms/qwindows.dll"
      00000035 0.00144283 [14796] Found metadata in lib C:/Anaconda3/Library/plugins/platforms/qwindows.dll, metadata=
      00000036 0.00144283 [14796] {
      00000037 0.00144283 [14796] "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
      00000038 0.00144283 [14796] "MetaData": {
      00000039 0.00144283 [14796] "Keys": [
      00000040 0.00144283 [14796] "windows"
      00000041 0.00144283 [14796] ]
      00000042 0.00144283 [14796] },
      00000043 0.00144283 [14796] "className": "QWindowsIntegrationPlugin",
      00000044 0.00144283 [14796] "debug": false,
      00000045 0.00144283 [14796] "version": 329218
      00000046 0.00144283 [14796] }
      00000047 0.00144283 [14796]
      00000048 0.00144283 [14796]
      00000049 0.00148151 [14796] Got keys from plugin meta data ("windows")
      00000050 0.00149533 [14796] QFactoryLoader::QFactoryLoader() checking directory path "C:/CMake/plugins/platforms" ...
      00000051 0.00173494 [14796] QFactoryLoader::QFactoryLoader() looking at "C:/CMake/plugins/platforms/qwindows.dll"
      00000052 0.00200180 [14796] Found metadata in lib C:/CMake/plugins/platforms/qwindows.dll, metadata=
      00000053 0.00200180 [14796] {
      00000054 0.00200180 [14796] "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
      00000055 0.00200180 [14796] "MetaData": {
      00000056 0.00200180 [14796] "Keys": [
      00000057 0.00200180 [14796] "windows"
      00000058 0.00200180 [14796] ]
      00000059 0.00200180 [14796] },
      00000060 0.00200180 [14796] "className": "QWindowsIntegrationPlugin",
      00000061 0.00200180 [14796] "debug": false,
      00000062 0.00200180 [14796] "version": 329216
      00000063 0.00200180 [14796] }
      00000064 0.00200180 [14796]
      00000065 0.00200180 [14796]
      00000066 0.00205154 [14796] Got keys from plugin meta data ("windows")
      00000067 0.00206535 [14796] QFactoryLoader::QFactoryLoader() checking directory path "C:/CMake/bin/platforms" ...
      00000068 0.00412439 [14796] loaded library "C:/Anaconda3/Library/plugins/platforms/qwindows.dll"
      00000069 0.00413781 [14796] QLibraryPrivate::loadPlugin failed on "C:/Anaconda3/Library/plugins/platforms/qwindows.dll" : "Cannot load library C:\Anaconda3\Library\plugins\platforms\qwindows.dll: The specified module could not be found."
      00000070 4.94922733 [14796] This application failed to start because it could not find or load the Qt platform plugin "windows"
      00000071 4.94922733 [14796] in "".
      00000072 4.94922733 [14796]
      00000073 4.94922733 [14796] Available platform plugins are: minimal, offscreen, windows, windows.
      00000074 4.94922733 [14796]
      00000075 4.94922733 [14796] Reinstalling the application may fix this problem.

      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #16

        Hi
        If you rename C:/Anaconda3 , will Creator then start ?

        1 Reply Last reply
        1
        • P Offline
          P Offline
          peter_cz
          wrote on last edited by
          #17

          Yes, you right - it's from Qt Creator (second DbgView from CMake) but don't know why it loads Anaconda3???
          I have both system installed Anaconda2 and Anaconda3.

          mrjjM 1 Reply Last reply
          0
          • P peter_cz

            Yes, you right - it's from Qt Creator (second DbgView from CMake) but don't know why it loads Anaconda3???
            I have both system installed Anaconda2 and Anaconda3.

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #18

            @peter_cz
            well my guess is there is a path to it. and Windows
            gets that path first when trying to load the (Qt) Dlls.
            But i did not see the C:/Anaconda3/ in your path dump ?

            Can you for fast test rename the folder and see if Creator then starts ?

            1 Reply Last reply
            1
            • hskoglundH Offline
              hskoglundH Offline
              hskoglund
              wrote on last edited by hskoglund
              #19

              Hi, perhaps Anaconda has set an environment variable that overrides where to look for plugins, if you open a CMD window again and type
              set
              Is there a QT_PLUGIN_PATH or a QT_QPA_PLATFORM_PLUGIN_PATH in the list?

              1 Reply Last reply
              1
              • P Offline
                P Offline
                peter_cz
                wrote on last edited by
                #20

                "Holy Smoke" - Qt creator starts! and CMake starts! and Anaconda2 Navigator starts!

                mrjjM 1 Reply Last reply
                0
                • P peter_cz

                  "Holy Smoke" - Qt creator starts! and CMake starts! and Anaconda2 Navigator starts!

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #21

                  @peter_cz
                  Super:)
                  Please check as @hskoglund suggest.
                  It must have set some Qt settings to point to that folder.

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    peter_cz
                    wrote on last edited by
                    #22

                    @hskoglund said in Application can't start because could not find or load Qt:

                    QT_PLUGIN_PATH

                    Yup , I see it in Enviromental Variables:

                    QT_PLUGIN_PATH=c:\Anaconda3\Library\plugins\

                    1 Reply Last reply
                    1
                    • hskoglundH Offline
                      hskoglundH Offline
                      hskoglund
                      wrote on last edited by
                      #23

                      Probably the QT_PLUGIN_PATH setting is needed for Anaconda3 to run, but it needs to be removed for the other guys to be healthy.

                      So, what you can do is to remove the QT_PLUGIN_PATH, open a CMD window and type control sysdm.cpl
                      Then select the 3rd tab *Advanced" and click on the 4th (lowest) button (should be named "Environment variables" or something similar) Another dialog box opens which will allow you to remove QT_PLUGIN_PATH.

                      Then if you want to run Anaconda 3, you can open a CMD window and type set QT_PLUGIN_PATH=c:\Anaconda3\Library\plugins\ and then start Anaconda 3 from that CMD window. That way the setting will affect only that CMD window and not the other Qt guys :-)

                      1 Reply Last reply
                      1

                      • Login

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