Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to use [windeployqt.exe] ?
Forum Updated to NodeBB v4.3 + New Features

How to use [windeployqt.exe] ?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
9 Posts 3 Posters 1.5k 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.
  • K Offline
    K Offline
    Knj.Tkm
    wrote on last edited by
    #1

    Hi.
    I want to Deployment for Windows.
    I use windeployqt.exe, but I get error.

    Error String is:
    [the procedure entry point ?cacheKey@QPixmap@@QEBA_JXZ could not be located in the dynamic link library C:\Qt\5.14.2\msvc2017_64\bin\Qt5WinExtras.dll ]

    I use MinGW and Qt 5.15.2.
    Why I get this error?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #8

      Then maybe you have path to MSVC Qt in your $PATH?

      (Z(:^

      K 1 Reply Last reply
      3
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #2

        HOW do you use windeployqt? Please post full command line.

        It's quite clear from the output that it is trying to deploy MSVC but you say you are using MinGW - these two are not compatible. Make sure you use windeployqt from correct Qt installation.

        (Z(:^

        K 1 Reply Last reply
        2
        • sierdzioS sierdzio

          HOW do you use windeployqt? Please post full command line.

          It's quite clear from the output that it is trying to deploy MSVC but you say you are using MinGW - these two are not compatible. Make sure you use windeployqt from correct Qt installation.

          K Offline
          K Offline
          Knj.Tkm
          wrote on last edited by Knj.Tkm
          #3

          @sierdzio
          I use Command
          [ windeployqt.exe --qmldir ../../qml ./ ]

          My app path
          C:/MyApp/build/debug/(Application)

          qml folder is in MyApp

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #4

            @Knj-Tkm said in How to use [windeployqt.exe] ?:

            windeployqt.exe

            Then make sure you take windeployqt.exe from your MinGW Qt installation, and not from MSVC.

            (Z(:^

            K 1 Reply Last reply
            1
            • J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #5

              Also, make sure to clean the directory before attempting it anew, IIRC the tool will not overwrite existing files


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              K 1 Reply Last reply
              0
              • sierdzioS sierdzio

                @Knj-Tkm said in How to use [windeployqt.exe] ?:

                windeployqt.exe

                Then make sure you take windeployqt.exe from your MinGW Qt installation, and not from MSVC.

                K Offline
                K Offline
                Knj.Tkm
                wrote on last edited by
                #6

                @sierdzio
                I'm definitely using the correct windeployqt.exe from MinGW.
                But I get the error again.

                1 Reply Last reply
                0
                • J.HilkJ J.Hilk

                  Also, make sure to clean the directory before attempting it anew, IIRC the tool will not overwrite existing files

                  K Offline
                  K Offline
                  Knj.Tkm
                  wrote on last edited by
                  #7

                  @J-Hilk
                  Yes, I try after cleaning every time.

                  1 Reply Last reply
                  0
                  • sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #8

                    Then maybe you have path to MSVC Qt in your $PATH?

                    (Z(:^

                    K 1 Reply Last reply
                    3
                    • sierdzioS sierdzio

                      Then maybe you have path to MSVC Qt in your $PATH?

                      K Offline
                      K Offline
                      Knj.Tkm
                      wrote on last edited by
                      #9

                      @sierdzio
                      Oh, That's Right!
                      I forgot to set system environment variable.
                      Thank you for Answer!

                      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