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. windeployqt, looks ok, but no files transferred
Forum Updated to NodeBB v4.3 + New Features

windeployqt, looks ok, but no files transferred

Scheduled Pinned Locked Moved Solved Installation and Deployment
80 Posts 4 Posters 23.0k Views 1 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.
  • SPlattenS SPlatten

    @KroMignon , ok, just done exactly that the entire tree structure is now present, still getting exactly the same result.

    KroMignonK Offline
    KroMignonK Offline
    KroMignon
    wrote on last edited by
    #57

    @SPlatten said in windeployqt, looks ok, but no files transferred:

    ok, just done exactly that the entire tree structure is now present, still getting exactly the same result.

    If plugin is present, then there are dll which cannot be loaded.
    Try to set QT_DEBUG_PLUGINS and take a look at debug messages on console when starting the binary.
    I would recommend to use a little batch script to start the binary and redirect output to text file:

    set QT_DEBUG_PLUGINS=1
    trnServer.eve > debug.txt 2>&1
    
    

    It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

    SPlattenS 1 Reply Last reply
    1
    • SPlattenS SPlatten

      @KroMignon , ok, just done exactly that the entire tree structure is now present, still getting exactly the same result.

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

      @SPlatten The directory structure is explained here: https://doc.qt.io/qt-5/windows-deployment.html

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

      1 Reply Last reply
      0
      • KroMignonK KroMignon

        @SPlatten said in windeployqt, looks ok, but no files transferred:

        ok, just done exactly that the entire tree structure is now present, still getting exactly the same result.

        If plugin is present, then there are dll which cannot be loaded.
        Try to set QT_DEBUG_PLUGINS and take a look at debug messages on console when starting the binary.
        I would recommend to use a little batch script to start the binary and redirect output to text file:

        set QT_DEBUG_PLUGINS=1
        trnServer.eve > debug.txt 2>&1
        
        
        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by
        #59

        @KroMignon, debug.txt:

        QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms" ...
        QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2d.dll"
        Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2d.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "direct2d"
                ]
            },
            "className": "QWindowsDirect2DIntegrationPlugin",
            "debug": false,
            "version": 329986
        }
        
        
        Got keys from plugin meta data ("direct2d")
        QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2dd.dll"
        Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2dd.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "direct2d"
                ]
            },
            "className": "QWindowsDirect2DIntegrationPlugin",
            "debug": true,
            "version": 329986
        }
        
        
        "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2dd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimal.dll"
        Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimal.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "minimal"
                ]
            },
            "className": "QMinimalIntegrationPlugin",
            "debug": false,
            "version": 329986
        }
        
        
        Got keys from plugin meta data ("minimal")
        QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimald.dll"
        Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimald.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "minimal"
                ]
            },
            "className": "QMinimalIntegrationPlugin",
            "debug": true,
            "version": 329986
        }
        
        
        "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreen.dll"
        Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreen.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "offscreen"
                ]
            },
            "className": "QOffscreenIntegrationPlugin",
            "debug": false,
            "version": 329986
        }
        
        
        Got keys from plugin meta data ("offscreen")
        QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreend.dll"
        Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreend.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "offscreen"
                ]
            },
            "className": "QOffscreenIntegrationPlugin",
            "debug": true,
            "version": 329986
        }
        
        
        "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindows.dll"
        Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindows.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "windows"
                ]
            },
            "className": "QWindowsIntegrationPlugin",
            "debug": false,
            "version": 329986
        }
        
        
        Got keys from plugin meta data ("windows")
        QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll"
        Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "windows"
                ]
            },
            "className": "QWindowsIntegrationPlugin",
            "debug": true,
            "version": 329986
        }
        
        
        "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/simon.platten/Trainer/platforms" ...
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qdirect2d.dll"
        Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qdirect2d.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "direct2d"
                ]
            },
            "className": "QWindowsDirect2DIntegrationPlugin",
            "debug": false,
            "version": 329986
        }
        
        
        Got keys from plugin meta data ("direct2d")
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qdirect2dd.dll"
        Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qdirect2dd.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "direct2d"
                ]
            },
            "className": "QWindowsDirect2DIntegrationPlugin",
            "debug": true,
            "version": 329986
        }
        
        
        "The plugin 'C:/Users/simon.platten/Trainer/platforms/qdirect2dd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qminimal.dll"
        Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qminimal.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "minimal"
                ]
            },
            "className": "QMinimalIntegrationPlugin",
            "debug": false,
            "version": 329986
        }
        
        
        Got keys from plugin meta data ("minimal")
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qminimald.dll"
        Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qminimald.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "minimal"
                ]
            },
            "className": "QMinimalIntegrationPlugin",
            "debug": true,
            "version": 329986
        }
        
        
        "The plugin 'C:/Users/simon.platten/Trainer/platforms/qminimald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qoffscreen.dll"
        Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qoffscreen.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "offscreen"
                ]
            },
            "className": "QOffscreenIntegrationPlugin",
            "debug": false,
            "version": 329986
        }
        
        
        Got keys from plugin meta data ("offscreen")
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qoffscreend.dll"
        Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qoffscreend.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "offscreen"
                ]
            },
            "className": "QOffscreenIntegrationPlugin",
            "debug": true,
            "version": 329986
        }
        
        
        "The plugin 'C:/Users/simon.platten/Trainer/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qwindows.dll"
        Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qwindows.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "windows"
                ]
            },
            "className": "QWindowsIntegrationPlugin",
            "debug": false,
            "version": 329986
        }
        
        
        Got keys from plugin meta data ("windows")
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qwindowsd.dll"
        Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qwindowsd.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
                "Keys": [
                    "windows"
                ]
            },
            "className": "QWindowsIntegrationPlugin",
            "debug": true,
            "version": 329986
        }
        
        
        "The plugin 'C:/Users/simon.platten/Trainer/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                 not a plugin
        Cannot load library C:\Qt\Qt5.9.2\5.9.2\msvc2015\plugins\platforms\qwindows.dll: Unknown error 0x000000c1.
        QLibraryPrivate::loadPlugin failed on "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindows.dll" : "Cannot load library C:\\Qt\\Qt5.9.2\\5.9.2\\msvc2015\\plugins\\platforms\\qwindows.dll: Unknown error 0x000000c1."
        This application failed to start because it could not find or load the Qt platform plugin "windows"
        in "".
        
        Available platform plugins are: direct2d, minimal, offscreen, windows.
        
        Reinstalling the application may fix this problem.
        

        Kind Regards,
        Sy

        jsulmJ 2 Replies Last reply
        0
        • SPlattenS SPlatten

          @KroMignon, debug.txt:

          QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms" ...
          QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2d.dll"
          Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2d.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "direct2d"
                  ]
              },
              "className": "QWindowsDirect2DIntegrationPlugin",
              "debug": false,
              "version": 329986
          }
          
          
          Got keys from plugin meta data ("direct2d")
          QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2dd.dll"
          Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2dd.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "direct2d"
                  ]
              },
              "className": "QWindowsDirect2DIntegrationPlugin",
              "debug": true,
              "version": 329986
          }
          
          
          "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2dd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimal.dll"
          Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimal.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "minimal"
                  ]
              },
              "className": "QMinimalIntegrationPlugin",
              "debug": false,
              "version": 329986
          }
          
          
          Got keys from plugin meta data ("minimal")
          QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimald.dll"
          Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimald.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "minimal"
                  ]
              },
              "className": "QMinimalIntegrationPlugin",
              "debug": true,
              "version": 329986
          }
          
          
          "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreen.dll"
          Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreen.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "offscreen"
                  ]
              },
              "className": "QOffscreenIntegrationPlugin",
              "debug": false,
              "version": 329986
          }
          
          
          Got keys from plugin meta data ("offscreen")
          QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreend.dll"
          Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreend.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "offscreen"
                  ]
              },
              "className": "QOffscreenIntegrationPlugin",
              "debug": true,
              "version": 329986
          }
          
          
          "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindows.dll"
          Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindows.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "windows"
                  ]
              },
              "className": "QWindowsIntegrationPlugin",
              "debug": false,
              "version": 329986
          }
          
          
          Got keys from plugin meta data ("windows")
          QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll"
          Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "windows"
                  ]
              },
              "className": "QWindowsIntegrationPlugin",
              "debug": true,
              "version": 329986
          }
          
          
          "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/simon.platten/Trainer/platforms" ...
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qdirect2d.dll"
          Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qdirect2d.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "direct2d"
                  ]
              },
              "className": "QWindowsDirect2DIntegrationPlugin",
              "debug": false,
              "version": 329986
          }
          
          
          Got keys from plugin meta data ("direct2d")
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qdirect2dd.dll"
          Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qdirect2dd.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "direct2d"
                  ]
              },
              "className": "QWindowsDirect2DIntegrationPlugin",
              "debug": true,
              "version": 329986
          }
          
          
          "The plugin 'C:/Users/simon.platten/Trainer/platforms/qdirect2dd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qminimal.dll"
          Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qminimal.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "minimal"
                  ]
              },
              "className": "QMinimalIntegrationPlugin",
              "debug": false,
              "version": 329986
          }
          
          
          Got keys from plugin meta data ("minimal")
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qminimald.dll"
          Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qminimald.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "minimal"
                  ]
              },
              "className": "QMinimalIntegrationPlugin",
              "debug": true,
              "version": 329986
          }
          
          
          "The plugin 'C:/Users/simon.platten/Trainer/platforms/qminimald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qoffscreen.dll"
          Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qoffscreen.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "offscreen"
                  ]
              },
              "className": "QOffscreenIntegrationPlugin",
              "debug": false,
              "version": 329986
          }
          
          
          Got keys from plugin meta data ("offscreen")
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qoffscreend.dll"
          Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qoffscreend.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "offscreen"
                  ]
              },
              "className": "QOffscreenIntegrationPlugin",
              "debug": true,
              "version": 329986
          }
          
          
          "The plugin 'C:/Users/simon.platten/Trainer/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qwindows.dll"
          Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qwindows.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "windows"
                  ]
              },
              "className": "QWindowsIntegrationPlugin",
              "debug": false,
              "version": 329986
          }
          
          
          Got keys from plugin meta data ("windows")
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qwindowsd.dll"
          Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qwindowsd.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
              "MetaData": {
                  "Keys": [
                      "windows"
                  ]
              },
              "className": "QWindowsIntegrationPlugin",
              "debug": true,
              "version": 329986
          }
          
          
          "The plugin 'C:/Users/simon.platten/Trainer/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                   not a plugin
          Cannot load library C:\Qt\Qt5.9.2\5.9.2\msvc2015\plugins\platforms\qwindows.dll: Unknown error 0x000000c1.
          QLibraryPrivate::loadPlugin failed on "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindows.dll" : "Cannot load library C:\\Qt\\Qt5.9.2\\5.9.2\\msvc2015\\plugins\\platforms\\qwindows.dll: Unknown error 0x000000c1."
          This application failed to start because it could not find or load the Qt platform plugin "windows"
          in "".
          
          Available platform plugins are: direct2d, minimal, offscreen, windows.
          
          Reinstalling the application may fix this problem.
          
          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #60

          @SPlatten said in windeployqt, looks ok, but no files transferred:

          "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
          not a plugin

          This is your problem

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

          SPlattenS 1 Reply Last reply
          0
          • jsulmJ jsulm

            @SPlatten said in windeployqt, looks ok, but no files transferred:

            "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
            not a plugin

            This is your problem

            SPlattenS Offline
            SPlattenS Offline
            SPlatten
            wrote on last edited by SPlatten
            #61

            @jsulm , I'm 99% sure the exe I am using is from the release build as its only 923KB, the debug version of the same is 1,637 KB.

            Kind Regards,
            Sy

            jsulmJ 1 Reply Last reply
            0
            • SPlattenS SPlatten

              @jsulm , I'm 99% sure the exe I am using is from the release build as its only 923KB, the debug version of the same is 1,637 KB.

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

              @SPlatten said in windeployqt, looks ok, but no files transferred:

              is from the release build

              Then don't copy debug versions of the Qt libs/plug-ins, only release versions...

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

              SPlattenS 1 Reply Last reply
              0
              • jsulmJ jsulm

                @SPlatten said in windeployqt, looks ok, but no files transferred:

                is from the release build

                Then don't copy debug versions of the Qt libs/plug-ins, only release versions...

                SPlattenS Offline
                SPlattenS Offline
                SPlatten
                wrote on last edited by
                #63

                @jsulm , I haven't got any debug libraries ending with d.dll in the structure, confirmed this by using explorer with *d.dll in search platforms area.

                Kind Regards,
                Sy

                1 Reply Last reply
                0
                • SPlattenS SPlatten

                  @KroMignon, debug.txt:

                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms" ...
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2d.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2d.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "direct2d"
                          ]
                      },
                      "className": "QWindowsDirect2DIntegrationPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("direct2d")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2dd.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2dd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "direct2d"
                          ]
                      },
                      "className": "QWindowsDirect2DIntegrationPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2dd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimal.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimal.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "minimal"
                          ]
                      },
                      "className": "QMinimalIntegrationPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("minimal")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimald.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimald.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "minimal"
                          ]
                      },
                      "className": "QMinimalIntegrationPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreen.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreen.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "offscreen"
                          ]
                      },
                      "className": "QOffscreenIntegrationPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("offscreen")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreend.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreend.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "offscreen"
                          ]
                      },
                      "className": "QOffscreenIntegrationPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindows.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindows.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "windows"
                          ]
                      },
                      "className": "QWindowsIntegrationPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("windows")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "windows"
                          ]
                      },
                      "className": "QWindowsIntegrationPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/simon.platten/Trainer/platforms" ...
                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qdirect2d.dll"
                  Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qdirect2d.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "direct2d"
                          ]
                      },
                      "className": "QWindowsDirect2DIntegrationPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("direct2d")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qdirect2dd.dll"
                  Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qdirect2dd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "direct2d"
                          ]
                      },
                      "className": "QWindowsDirect2DIntegrationPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Users/simon.platten/Trainer/platforms/qdirect2dd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qminimal.dll"
                  Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qminimal.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "minimal"
                          ]
                      },
                      "className": "QMinimalIntegrationPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("minimal")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qminimald.dll"
                  Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qminimald.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "minimal"
                          ]
                      },
                      "className": "QMinimalIntegrationPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Users/simon.platten/Trainer/platforms/qminimald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qoffscreen.dll"
                  Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qoffscreen.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "offscreen"
                          ]
                      },
                      "className": "QOffscreenIntegrationPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("offscreen")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qoffscreend.dll"
                  Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qoffscreend.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "offscreen"
                          ]
                      },
                      "className": "QOffscreenIntegrationPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Users/simon.platten/Trainer/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qwindows.dll"
                  Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qwindows.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "windows"
                          ]
                      },
                      "className": "QWindowsIntegrationPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("windows")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qwindowsd.dll"
                  Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qwindowsd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "windows"
                          ]
                      },
                      "className": "QWindowsIntegrationPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Users/simon.platten/Trainer/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  Cannot load library C:\Qt\Qt5.9.2\5.9.2\msvc2015\plugins\platforms\qwindows.dll: Unknown error 0x000000c1.
                  QLibraryPrivate::loadPlugin failed on "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindows.dll" : "Cannot load library C:\\Qt\\Qt5.9.2\\5.9.2\\msvc2015\\plugins\\platforms\\qwindows.dll: Unknown error 0x000000c1."
                  This application failed to start because it could not find or load the Qt platform plugin "windows"
                  in "".
                  
                  Available platform plugins are: direct2d, minimal, offscreen, windows.
                  
                  Reinstalling the application may fix this problem.
                  
                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #64

                  @SPlatten said in windeployqt, looks ok, but no files transferred:

                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qwindowsd.dll"

                  Then what is this?

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

                  SPlattenS 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @SPlatten said in windeployqt, looks ok, but no files transferred:

                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qwindowsd.dll"

                    Then what is this?

                    SPlattenS Offline
                    SPlattenS Offline
                    SPlatten
                    wrote on last edited by
                    #65

                    @jsulm , I really don't know how they got they're, perhaps on the last copy added from @KroMignon instruction? In anycase both the debug and the release dll's are in the same location, I will get rid of the debug dlls now.

                    Kind Regards,
                    Sy

                    KroMignonK 1 Reply Last reply
                    0
                    • SPlattenS SPlatten

                      @jsulm , I really don't know how they got they're, perhaps on the last copy added from @KroMignon instruction? In anycase both the debug and the release dll's are in the same location, I will get rid of the debug dlls now.

                      KroMignonK Offline
                      KroMignonK Offline
                      KroMignon
                      wrote on last edited by KroMignon
                      #66

                      @SPlatten said in windeployqt, looks ok, but no files transferred:

                      really don't know how they got they're, perhaps on the last copy added from @KroMignon instruction? In anycase both the debug and the release dll's are in the same location, I will get rid of the debug dlls now.

                      Yes, copy with 'brute force' is not a kind way: perhaps you should add del %INSTFLDR%/*/*d.dll /a /s to remove the debug DLL.

                      But I see another problem:

                      Cannot load library C:\Qt\Qt5.9.2\5.9.2\msvc2015\plugins\platforms\qwindows.dll: Unknown error 0x000000c1.

                      Why do your application try to load plugins from C:\Qt\Qt5.9.2\5.9.2\msvc2015\plugins ?
                      Do you have set QT_PLUGIN_PATH?

                      It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                      SPlattenS 1 Reply Last reply
                      0
                      • KroMignonK KroMignon

                        @SPlatten said in windeployqt, looks ok, but no files transferred:

                        really don't know how they got they're, perhaps on the last copy added from @KroMignon instruction? In anycase both the debug and the release dll's are in the same location, I will get rid of the debug dlls now.

                        Yes, copy with 'brute force' is not a kind way: perhaps you should add del %INSTFLDR%/*/*d.dll /a /s to remove the debug DLL.

                        But I see another problem:

                        Cannot load library C:\Qt\Qt5.9.2\5.9.2\msvc2015\plugins\platforms\qwindows.dll: Unknown error 0x000000c1.

                        Why do your application try to load plugins from C:\Qt\Qt5.9.2\5.9.2\msvc2015\plugins ?
                        Do you have set QT_PLUGIN_PATH?

                        SPlattenS Offline
                        SPlattenS Offline
                        SPlatten
                        wrote on last edited by SPlatten
                        #67

                        @KroMignon , I don't have the QT_PLUGIN_PATH environment variable set, I'll try adding now.

                        Same, no difference.

                        Kind Regards,
                        Sy

                        KroMignonK 1 Reply Last reply
                        0
                        • SPlattenS SPlatten

                          @KroMignon , I don't have the QT_PLUGIN_PATH environment variable set, I'll try adding now.

                          Same, no difference.

                          KroMignonK Offline
                          KroMignonK Offline
                          KroMignon
                          wrote on last edited by KroMignon
                          #68

                          @SPlatten said in windeployqt, looks ok, but no files transferred:

                          I don't have the QT_PLUGIN_PATH environment variable set, I'll try adding now.

                          Using QT_PLUGIN_PATH is not really necessary and don't made sense to me (cf. https://doc.qt.io/qt-5/deployment-plugins.html).

                          But why do your application try to load plugins from C:\Qt\Qt5.9.2\5.9.2\msvc2015\plugins and not from the application path?

                          Per default, the Qt application will try to load the plugin located in the application installation directory.
                          The only way to load from another location is:

                          • set QT_PLUGIN_PATH
                          • by using qt.conf (cf. https://doc.qt.io/qt-5/qt-conf.html)
                          • set by code the plugin load path with QCoreApplication::setLibraryPaths()

                          What is your scenario?

                          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                          SPlattenS 1 Reply Last reply
                          0
                          • KroMignonK KroMignon

                            @SPlatten said in windeployqt, looks ok, but no files transferred:

                            I don't have the QT_PLUGIN_PATH environment variable set, I'll try adding now.

                            Using QT_PLUGIN_PATH is not really necessary and don't made sense to me (cf. https://doc.qt.io/qt-5/deployment-plugins.html).

                            But why do your application try to load plugins from C:\Qt\Qt5.9.2\5.9.2\msvc2015\plugins and not from the application path?

                            Per default, the Qt application will try to load the plugin located in the application installation directory.
                            The only way to load from another location is:

                            • set QT_PLUGIN_PATH
                            • by using qt.conf (cf. https://doc.qt.io/qt-5/qt-conf.html)
                            • set by code the plugin load path with QCoreApplication::setLibraryPaths()

                            What is your scenario?

                            SPlattenS Offline
                            SPlattenS Offline
                            SPlatten
                            wrote on last edited by
                            #69

                            @KroMignon , I am constructing or trying to build an installer since I cannot get it working. On the target system Qt will not have been installed and shouldn't need installing, so I am trying to package up everything required to run the executable, thats why the plugins are being installed relative to the EXE.

                            Kind Regards,
                            Sy

                            KroMignonK 1 Reply Last reply
                            0
                            • SPlattenS SPlatten

                              @KroMignon , I am constructing or trying to build an installer since I cannot get it working. On the target system Qt will not have been installed and shouldn't need installing, so I am trying to package up everything required to run the executable, thats why the plugins are being installed relative to the EXE.

                              KroMignonK Offline
                              KroMignonK Offline
                              KroMignon
                              wrote on last edited by KroMignon
                              #70

                              @SPlatten said in windeployqt, looks ok, but no files transferred:

                              I am constructing or trying to build an installer since I cannot get it working. On the target system Qt will not have been installed and shouldn't need installing, so I am trying to package up everything required to run the executable, thats why the plugins are being installed relative to the EXE.

                              I understand this but, according to the console output, the application tries to load plugins from C:\Qt\Qt5.9.2\5.9.2\msvc2015\plugins:

                              QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms"

                              and not from the application path.

                              So my question is why? This is not the normal case, you must have done something special.

                              It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                              SPlattenS 2 Replies Last reply
                              0
                              • KroMignonK KroMignon

                                @SPlatten said in windeployqt, looks ok, but no files transferred:

                                I am constructing or trying to build an installer since I cannot get it working. On the target system Qt will not have been installed and shouldn't need installing, so I am trying to package up everything required to run the executable, thats why the plugins are being installed relative to the EXE.

                                I understand this but, according to the console output, the application tries to load plugins from C:\Qt\Qt5.9.2\5.9.2\msvc2015\plugins:

                                QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms"

                                and not from the application path.

                                So my question is why? This is not the normal case, you must have done something special.

                                SPlattenS Offline
                                SPlattenS Offline
                                SPlatten
                                wrote on last edited by
                                #71

                                @KroMignon , why is because I didn't realise it would do this, I thought the default search criteria for DLL's is first to look in the local folder then to search the Windows folder, I don't know how or why its looking in the Qt installation folder?

                                Kind Regards,
                                Sy

                                KroMignonK 1 Reply Last reply
                                0
                                • KroMignonK KroMignon

                                  @SPlatten said in windeployqt, looks ok, but no files transferred:

                                  I am constructing or trying to build an installer since I cannot get it working. On the target system Qt will not have been installed and shouldn't need installing, so I am trying to package up everything required to run the executable, thats why the plugins are being installed relative to the EXE.

                                  I understand this but, according to the console output, the application tries to load plugins from C:\Qt\Qt5.9.2\5.9.2\msvc2015\plugins:

                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms"

                                  and not from the application path.

                                  So my question is why? This is not the normal case, you must have done something special.

                                  SPlattenS Offline
                                  SPlattenS Offline
                                  SPlatten
                                  wrote on last edited by SPlatten
                                  #72

                                  @KroMignon Where does the qt.conf file go? In the same location as the EXE ?

                                  NVM, read from documentation.

                                  Kind Regards,
                                  Sy

                                  1 Reply Last reply
                                  0
                                  • SPlattenS SPlatten

                                    @KroMignon , why is because I didn't realise it would do this, I thought the default search criteria for DLL's is first to look in the local folder then to search the Windows folder, I don't know how or why its looking in the Qt installation folder?

                                    KroMignonK Offline
                                    KroMignonK Offline
                                    KroMignon
                                    wrote on last edited by KroMignon
                                    #73

                                    @SPlatten said in windeployqt, looks ok, but no files transferred:

                                    why is because I didn't realise it would do this, I thought the default search criteria for DLL's is first to look in the local folder then to search the Windows folder, I don't know how or why its looking in the Qt installation folder?

                                    The way Qt is searching plugins is well documented (cf. https://doc.qt.io/qt-5/deployment-plugins.html).
                                    This is why I asked you what you have done:

                                    • set QT_PLUGIN_PATH ?
                                    • defining a qt.conf file (cf. https://doc.qt.io/qt-5/qt-conf.html)?
                                    • by code with QCoreApplication::setLibraryPaths() or QCoreApplication::addLibraryPath()?

                                    It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                                    SPlattenS 1 Reply Last reply
                                    0
                                    • KroMignonK KroMignon

                                      @SPlatten said in windeployqt, looks ok, but no files transferred:

                                      why is because I didn't realise it would do this, I thought the default search criteria for DLL's is first to look in the local folder then to search the Windows folder, I don't know how or why its looking in the Qt installation folder?

                                      The way Qt is searching plugins is well documented (cf. https://doc.qt.io/qt-5/deployment-plugins.html).
                                      This is why I asked you what you have done:

                                      • set QT_PLUGIN_PATH ?
                                      • defining a qt.conf file (cf. https://doc.qt.io/qt-5/qt-conf.html)?
                                      • by code with QCoreApplication::setLibraryPaths() or QCoreApplication::addLibraryPath()?
                                      SPlattenS Offline
                                      SPlattenS Offline
                                      SPlatten
                                      wrote on last edited by SPlatten
                                      #74

                                      @KroMignon , I've created local qt.conf:

                                      [Paths]
                                      Plugins=.
                                      

                                      This seems to have done the trick as the debug.txt reports the correct location is now being searched:

                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/simon.platten/Trainer/platforms" ...
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qdirect2d.dll"
                                      Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qdirect2d.dll, metadata=
                                      {
                                          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                          "MetaData": {
                                              "Keys": [
                                                  "direct2d"
                                              ]
                                          },
                                          "className": "QWindowsDirect2DIntegrationPlugin",
                                          "debug": false,
                                          "version": 329986
                                      }
                                       
                                       
                                      Got keys from plugin meta data ("direct2d")
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qminimal.dll"
                                      Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qminimal.dll, metadata=
                                      {
                                          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                          "MetaData": {
                                              "Keys": [
                                                  "minimal"
                                              ]
                                          },
                                          "className": "QMinimalIntegrationPlugin",
                                          "debug": false,
                                          "version": 329986
                                      }
                                       
                                       
                                      Got keys from plugin meta data ("minimal")
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qoffscreen.dll"
                                      Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qoffscreen.dll, metadata=
                                      {
                                          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                          "MetaData": {
                                              "Keys": [
                                                  "offscreen"
                                              ]
                                          },
                                          "className": "QOffscreenIntegrationPlugin",
                                          "debug": false,
                                          "version": 329986
                                      }
                                       
                                       
                                      Got keys from plugin meta data ("offscreen")
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qwindows.dll"
                                      Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qwindows.dll, metadata=
                                      {
                                          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                          "MetaData": {
                                              "Keys": [
                                                  "windows"
                                              ]
                                          },
                                          "className": "QWindowsIntegrationPlugin",
                                          "debug": false,
                                          "version": 329986
                                      }
                                       
                                       
                                      Got keys from plugin meta data ("windows")
                                      Cannot load library C:\Users\simon.platten\Trainer\platforms\qwindows.dll: Unknown error 0x000000c1.
                                      QLibraryPrivate::loadPlugin failed on "C:/Users/simon.platten/Trainer/platforms/qwindows.dll" : "Cannot load library C:\\Users\\simon.platten\\Trainer\\platforms\\qwindows.dll: Unknown error 0x000000c1."
                                      This application failed to start because it could not find or load the Qt platform plugin "windows"
                                      in "".
                                       
                                      Available platform plugins are: direct2d, minimal, offscreen, windows.
                                       
                                      Reinstalling the application may fix this problem.
                                      

                                      I've checked the that qwindows.dll is present, why can't it load the library?

                                      It looks like this error relates to the EXE architecture being not compatible, the EXE is win32. I thought I had transferred the correct DLL's for win32, will check again.

                                      Checked again, dll is the win32 version but still getting this message in the debug.txt ???

                                      Kind Regards,
                                      Sy

                                      KroMignonK 1 Reply Last reply
                                      0
                                      • SPlattenS SPlatten

                                        @KroMignon , I've created local qt.conf:

                                        [Paths]
                                        Plugins=.
                                        

                                        This seems to have done the trick as the debug.txt reports the correct location is now being searched:

                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/simon.platten/Trainer/platforms" ...
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qdirect2d.dll"
                                        Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qdirect2d.dll, metadata=
                                        {
                                            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                            "MetaData": {
                                                "Keys": [
                                                    "direct2d"
                                                ]
                                            },
                                            "className": "QWindowsDirect2DIntegrationPlugin",
                                            "debug": false,
                                            "version": 329986
                                        }
                                         
                                         
                                        Got keys from plugin meta data ("direct2d")
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qminimal.dll"
                                        Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qminimal.dll, metadata=
                                        {
                                            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                            "MetaData": {
                                                "Keys": [
                                                    "minimal"
                                                ]
                                            },
                                            "className": "QMinimalIntegrationPlugin",
                                            "debug": false,
                                            "version": 329986
                                        }
                                         
                                         
                                        Got keys from plugin meta data ("minimal")
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qoffscreen.dll"
                                        Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qoffscreen.dll, metadata=
                                        {
                                            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                            "MetaData": {
                                                "Keys": [
                                                    "offscreen"
                                                ]
                                            },
                                            "className": "QOffscreenIntegrationPlugin",
                                            "debug": false,
                                            "version": 329986
                                        }
                                         
                                         
                                        Got keys from plugin meta data ("offscreen")
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/simon.platten/Trainer/platforms/qwindows.dll"
                                        Found metadata in lib C:/Users/simon.platten/Trainer/platforms/qwindows.dll, metadata=
                                        {
                                            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                            "MetaData": {
                                                "Keys": [
                                                    "windows"
                                                ]
                                            },
                                            "className": "QWindowsIntegrationPlugin",
                                            "debug": false,
                                            "version": 329986
                                        }
                                         
                                         
                                        Got keys from plugin meta data ("windows")
                                        Cannot load library C:\Users\simon.platten\Trainer\platforms\qwindows.dll: Unknown error 0x000000c1.
                                        QLibraryPrivate::loadPlugin failed on "C:/Users/simon.platten/Trainer/platforms/qwindows.dll" : "Cannot load library C:\\Users\\simon.platten\\Trainer\\platforms\\qwindows.dll: Unknown error 0x000000c1."
                                        This application failed to start because it could not find or load the Qt platform plugin "windows"
                                        in "".
                                         
                                        Available platform plugins are: direct2d, minimal, offscreen, windows.
                                         
                                        Reinstalling the application may fix this problem.
                                        

                                        I've checked the that qwindows.dll is present, why can't it load the library?

                                        It looks like this error relates to the EXE architecture being not compatible, the EXE is win32. I thought I had transferred the correct DLL's for win32, will check again.

                                        Checked again, dll is the win32 version but still getting this message in the debug.txt ???

                                        KroMignonK Offline
                                        KroMignonK Offline
                                        KroMignon
                                        wrote on last edited by
                                        #75

                                        @SPlatten said in windeployqt, looks ok, but no files transferred:

                                        It looks like this error relates to the EXE architecture being not compatible, the EXE is win32. I thought I had transferred the correct DLL's for win32, will check again.

                                        There is something very strange on your configuration.
                                        Are you sure you are using same Qt-Kit as kit used to build the binary?
                                        Can you run the binary with Qt Creator in release mode?

                                        It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                                        SPlattenS 1 Reply Last reply
                                        0
                                        • KroMignonK KroMignon

                                          @SPlatten said in windeployqt, looks ok, but no files transferred:

                                          It looks like this error relates to the EXE architecture being not compatible, the EXE is win32. I thought I had transferred the correct DLL's for win32, will check again.

                                          There is something very strange on your configuration.
                                          Are you sure you are using same Qt-Kit as kit used to build the binary?
                                          Can you run the binary with Qt Creator in release mode?

                                          SPlattenS Offline
                                          SPlattenS Offline
                                          SPlatten
                                          wrote on last edited by
                                          #76

                                          @KroMignon , thats the odd thing...I can't even run it though Qt Creator in release mode, the only difference is that the message appears in a dialog...debug works fine.

                                          Kind Regards,
                                          Sy

                                          KroMignonK 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