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. DLL entry point problem, using the same dll's from the same path as qt creator
Forum Updated to NodeBB v4.3 + New Features

DLL entry point problem, using the same dll's from the same path as qt creator

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
14 Posts 3 Posters 1.8k 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.
  • J Offline
    J Offline
    jwall141
    wrote on last edited by jwall141
    #1

    Hello,
    I know what this error is due to, and I have tried a lot of things.
    I am using mingw 7.3.0 32bits, Qt 5.13.0.
    I can execute the app from qt creator but not from the release or debug *.exe files. I have cuadruple checked the environment in qt creator, which is a clear environment.
    In Qt Creator I have PATH="C:\Qt\Tools\mingw730_32\bin;C:\Qt\5.13.0\mingw73_32\bin;C:\Qt\Tools\mingw730_32\bin"

    When I run the exe file, I get the error that a procedure entry point couldn't be found in the dll: C:\Qt\5.13.0\mingw73_32\bin\Qt5Core.dll, which is exactly the same path as the one configured in the qt creator environment.
    What is wrong? Somehow when I run from qt creator, it's using another dll rather than the one configured in the environment.
    Edit: It "works" with the dll's under C:\Qt\Tools\QtCreator\bin copied to the exe folder, but it says it can't find the entry point for the dll: pathtofile/file.exe
    What is more, when these dll's are there, the program won't run from qt creator

    jsulmJ 1 Reply Last reply
    1
    • J jwall141

      Hello,
      I know what this error is due to, and I have tried a lot of things.
      I am using mingw 7.3.0 32bits, Qt 5.13.0.
      I can execute the app from qt creator but not from the release or debug *.exe files. I have cuadruple checked the environment in qt creator, which is a clear environment.
      In Qt Creator I have PATH="C:\Qt\Tools\mingw730_32\bin;C:\Qt\5.13.0\mingw73_32\bin;C:\Qt\Tools\mingw730_32\bin"

      When I run the exe file, I get the error that a procedure entry point couldn't be found in the dll: C:\Qt\5.13.0\mingw73_32\bin\Qt5Core.dll, which is exactly the same path as the one configured in the qt creator environment.
      What is wrong? Somehow when I run from qt creator, it's using another dll rather than the one configured in the environment.
      Edit: It "works" with the dll's under C:\Qt\Tools\QtCreator\bin copied to the exe folder, but it says it can't find the entry point for the dll: pathtofile/file.exe
      What is more, when these dll's are there, the program won't run from qt creator

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

      @jwall141 Don't copy DLLs from QtCreator bin folder! QtCreator on Windows is built with Microsoft C++ compiler and these DLLs are not going to work with MinGW binaries.
      Did you compile your app in debug or release mode?
      To properly deploy a Qt app take a look at https://doc.qt.io/qt-5/windows-deployment.html

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

      J 1 Reply Last reply
      2
      • jsulmJ jsulm

        @jwall141 Don't copy DLLs from QtCreator bin folder! QtCreator on Windows is built with Microsoft C++ compiler and these DLLs are not going to work with MinGW binaries.
        Did you compile your app in debug or release mode?
        To properly deploy a Qt app take a look at https://doc.qt.io/qt-5/windows-deployment.html

        J Offline
        J Offline
        jwall141
        wrote on last edited by jwall141
        #3

        @jsulm I only did it to test, it wasn't working before.
        I compiled both debug and release and neither work.
        Windeployqt gives me the same problem, the dll's copied (by windeploy) to the release folder are not the right ones, or the entry points coded in the binary are wrong.

        J.HilkJ 1 Reply Last reply
        0
        • J jwall141

          @jsulm I only did it to test, it wasn't working before.
          I compiled both debug and release and neither work.
          Windeployqt gives me the same problem, the dll's copied (by windeploy) to the release folder are not the right ones, or the entry points coded in the binary are wrong.

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by J.Hilk
          #4

          @jwall141 well yes, you'll have to use the correct windeployqt tool. There's one for each precompiled Qt Lib you installed.

          And delete the old ones! It does not necessarily replace them


          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.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jwall141
            wrote on last edited by
            #5

            @j-hilk I did delete them, and I only have qt for mingw32 and mingw64. The dll's that windeploy copies are the same (at least the exact same size, i doubt different targets have the exact same size) as the ones in the mingw73_32 folder. I've searched my qt installation path for other Qt5Core.dll and the only ones are for mingw32, mingw64 and qtcreator. I searched the whole system for qt dll's and none of them are in my path. Nevertheless, as i said before, windows tells me the path of the dll that it has problems with, and it's the same as configured in the build environment.

            Also the forum lets me reply only every ten minutes, sorry.

            J.HilkJ 1 Reply Last reply
            0
            • J jwall141

              @j-hilk I did delete them, and I only have qt for mingw32 and mingw64. The dll's that windeploy copies are the same (at least the exact same size, i doubt different targets have the exact same size) as the ones in the mingw73_32 folder. I've searched my qt installation path for other Qt5Core.dll and the only ones are for mingw32, mingw64 and qtcreator. I searched the whole system for qt dll's and none of them are in my path. Nevertheless, as i said before, windows tells me the path of the dll that it has problems with, and it's the same as configured in the build environment.

              Also the forum lets me reply only every ten minutes, sorry.

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @jwall141
              I upvoted you, so you should be able to post more regulary

              can you post your windeployqt call?


              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.

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jwall141
                wrote on last edited by
                #7

                >windeployqt rfidTagger.exe
                C:\companyname\Pruebas\Qt\rfidTagger\release\rfidTagger.exe 32 bit, release executable
                Adding Qt5Svg for qsvgicon.dll
                Direct dependencies: Qt5Core Qt5Widgets
                All dependencies : Qt5Core Qt5Gui Qt5Widgets
                To be deployed : Qt5Core Qt5Gui Qt5Svg Qt5Widgets
                Updating Qt5Core.dll.
                Updating Qt5Gui.dll.
                Updating Qt5Svg.dll.
                Updating Qt5Widgets.dll.
                Updating libGLESV2.dll.
                Updating libEGL.dll.
                Updating D3Dcompiler_47.dll.
                Updating opengl32sw.dll.
                Updating libgcc_s_dw2-1.dll.
                Updating libstdc++-6.dll.
                Patching Qt5Core.dll...
                Creating directory C:/companyname/Pruebas/Qt/rfidTagger/release/iconengines.
                Updating qsvgicon.dll.
                Creating directory C:/companyname/Pruebas/Qt/rfidTagger/release/imageformats.
                Updating qgif.dll.
                Updating qicns.dll.
                Updating qico.dll.
                Updating qjpeg.dll.
                Updating qsvg.dll.
                Updating qtga.dll.
                Updating qtiff.dll.
                Updating qwbmp.dll.
                Updating qwebp.dll.
                Creating directory C:/companyname/Pruebas/Qt/rfidTagger/release/platforms.
                Updating qwindows.dll.
                Creating directory C:/companyname/Pruebas/Qt/rfidTagger/release/styles.
                Updating qwindowsvistastyle.dll.
                Creating C:\companyname\Pruebas\Qt\rfidTagger\release\translations...
                Creating qt_ar.qm...
                Creating qt_bg.qm...
                Creating qt_ca.qm...
                Creating qt_cs.qm...
                Creating qt_da.qm...
                Creating qt_de.qm...
                Creating qt_en.qm...
                Creating qt_es.qm...
                Creating qt_fi.qm...
                Creating qt_fr.qm...
                Creating qt_gd.qm...
                Creating qt_he.qm...
                Creating qt_hu.qm...
                Creating qt_it.qm...
                Creating qt_ja.qm...
                Creating qt_ko.qm...
                Creating qt_lv.qm...
                Creating qt_pl.qm...
                Creating qt_ru.qm...
                Creating qt_sk.qm...
                Creating qt_uk.qm...
                Creating qt_zh_TW.qm...

                J.HilkJ 1 Reply Last reply
                0
                • J jwall141

                  >windeployqt rfidTagger.exe
                  C:\companyname\Pruebas\Qt\rfidTagger\release\rfidTagger.exe 32 bit, release executable
                  Adding Qt5Svg for qsvgicon.dll
                  Direct dependencies: Qt5Core Qt5Widgets
                  All dependencies : Qt5Core Qt5Gui Qt5Widgets
                  To be deployed : Qt5Core Qt5Gui Qt5Svg Qt5Widgets
                  Updating Qt5Core.dll.
                  Updating Qt5Gui.dll.
                  Updating Qt5Svg.dll.
                  Updating Qt5Widgets.dll.
                  Updating libGLESV2.dll.
                  Updating libEGL.dll.
                  Updating D3Dcompiler_47.dll.
                  Updating opengl32sw.dll.
                  Updating libgcc_s_dw2-1.dll.
                  Updating libstdc++-6.dll.
                  Patching Qt5Core.dll...
                  Creating directory C:/companyname/Pruebas/Qt/rfidTagger/release/iconengines.
                  Updating qsvgicon.dll.
                  Creating directory C:/companyname/Pruebas/Qt/rfidTagger/release/imageformats.
                  Updating qgif.dll.
                  Updating qicns.dll.
                  Updating qico.dll.
                  Updating qjpeg.dll.
                  Updating qsvg.dll.
                  Updating qtga.dll.
                  Updating qtiff.dll.
                  Updating qwbmp.dll.
                  Updating qwebp.dll.
                  Creating directory C:/companyname/Pruebas/Qt/rfidTagger/release/platforms.
                  Updating qwindows.dll.
                  Creating directory C:/companyname/Pruebas/Qt/rfidTagger/release/styles.
                  Updating qwindowsvistastyle.dll.
                  Creating C:\companyname\Pruebas\Qt\rfidTagger\release\translations...
                  Creating qt_ar.qm...
                  Creating qt_bg.qm...
                  Creating qt_ca.qm...
                  Creating qt_cs.qm...
                  Creating qt_da.qm...
                  Creating qt_de.qm...
                  Creating qt_en.qm...
                  Creating qt_es.qm...
                  Creating qt_fi.qm...
                  Creating qt_fr.qm...
                  Creating qt_gd.qm...
                  Creating qt_he.qm...
                  Creating qt_hu.qm...
                  Creating qt_it.qm...
                  Creating qt_ja.qm...
                  Creating qt_ko.qm...
                  Creating qt_lv.qm...
                  Creating qt_pl.qm...
                  Creating qt_ru.qm...
                  Creating qt_sk.qm...
                  Creating qt_uk.qm...
                  Creating qt_zh_TW.qm...

                  J.HilkJ Offline
                  J.HilkJ Offline
                  J.Hilk
                  Moderators
                  wrote on last edited by
                  #8

                  @jwall141 and the path to windeployqt? Did you add one of your Qtinstallations to your PATH?


                  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.

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

                    @jwall141 and the path to windeployqt? Did you add one of your Qtinstallations to your PATH?

                    J Offline
                    J Offline
                    jwall141
                    wrote on last edited by
                    #9

                    @j-hilk

                    >where windeployqt
                    C:\Qt\5.13.0\mingw73_32\bin\windeployqt.exe
                    C:\Qt\5.13.0\mingw73_64\bin\windeployqt.exe

                    jsulmJ 1 Reply Last reply
                    0
                    • J jwall141

                      @j-hilk

                      >where windeployqt
                      C:\Qt\5.13.0\mingw73_32\bin\windeployqt.exe
                      C:\Qt\5.13.0\mingw73_64\bin\windeployqt.exe

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

                      @jwall141 Use absolute path to windeployqt to make sure you use the correct one

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

                      J 3 Replies Last reply
                      1
                      • jsulmJ jsulm

                        @jwall141 Use absolute path to windeployqt to make sure you use the correct one

                        J Offline
                        J Offline
                        jwall141
                        wrote on last edited by
                        #11

                        @jsulm I just tried that. Same issue. I think the problem is somewhere in the compiling of the exe. As i've said before, the error dialog says that it fails to find the entry point for the dll under the folder of 32bit mingw (when the dll's are not there, without running windeploy). That's the compiler I am using according to the kit, with the same version and path. I even checked if the qmake.exe used is the one in mingw folder, and it is.

                        1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @jwall141 Use absolute path to windeployqt to make sure you use the correct one

                          J Offline
                          J Offline
                          jwall141
                          wrote on last edited by jwall141
                          #12

                          @jsulm I'm currently installing version 5.12.4 to check if it works. Will update.
                          I'm forced to use 32 bits, since i need to use an sdk for some hardware i'm working with that comes as 32bit dlls.

                          Update: Same issue with 5.12.4

                          1 Reply Last reply
                          0
                          • jsulmJ jsulm

                            @jwall141 Use absolute path to windeployqt to make sure you use the correct one

                            J Offline
                            J Offline
                            jwall141
                            wrote on last edited by jwall141
                            #13

                            @jsulm half solved. Added mingw qt folder path to the system environment path (previously it was only on the user environmet). Now i can run the program outside of qt creator without any dlls in the folder.

                            But, when i execute the right windeployqt, the dlls that it copies are not right, i get the entry point error again

                            J.HilkJ 1 Reply Last reply
                            0
                            • J jwall141

                              @jsulm half solved. Added mingw qt folder path to the system environment path (previously it was only on the user environmet). Now i can run the program outside of qt creator without any dlls in the folder.

                              But, when i execute the right windeployqt, the dlls that it copies are not right, i get the entry point error again

                              J.HilkJ Offline
                              J.HilkJ Offline
                              J.Hilk
                              Moderators
                              wrote on last edited by
                              #14

                              @jwall141 well, than there's only one way.

                              Run the deploy tool and manually replace the dlls with the correct ones.
                              The Deploytool should copy all needed files, even if they are from the wrong wt installation


                              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.

                              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