Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qt getting error procedure entry point could not be located in dynamic link library qt5core.dll

qt getting error procedure entry point could not be located in dynamic link library qt5core.dll

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 6.1k Views
  • 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.
  • S Offline
    S Offline
    shravani
    wrote on 10 Oct 2017, 10:32 last edited by
    #1

    hi everyone,

    i developed one application in qt creator. i want to make it stand alone application. i added all dll s required in same folder. and it is working fine.

    later i changed the same code and it is working in qt creator. i copied the exe file in the previous folder. but im getting below error.0_1507631330200_Capture.PNG

    i copied qt5core.dll from 5.6/mingw49_32/bin and i also tried with qt5core.dll from 5.6.2/tools/Qtcreator/bin path but still getting same error.

    R 1 Reply Last reply 10 Oct 2017, 10:38
    0
    • S shravani
      10 Oct 2017, 10:32

      hi everyone,

      i developed one application in qt creator. i want to make it stand alone application. i added all dll s required in same folder. and it is working fine.

      later i changed the same code and it is working in qt creator. i copied the exe file in the previous folder. but im getting below error.0_1507631330200_Capture.PNG

      i copied qt5core.dll from 5.6/mingw49_32/bin and i also tried with qt5core.dll from 5.6.2/tools/Qtcreator/bin path but still getting same error.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 10 Oct 2017, 10:38 last edited by
      #2

      @shravani
      your compiled Qt version most probably differs (is <) than the one you use to run the application.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      S 1 Reply Last reply 10 Oct 2017, 10:43
      2
      • R raven-worx
        10 Oct 2017, 10:38

        @shravani
        your compiled Qt version most probably differs (is <) than the one you use to run the application.

        S Offline
        S Offline
        shravani
        wrote on 10 Oct 2017, 10:43 last edited by
        #3

        @raven-worx

        no i used same version ..that first application is working fine but not the second one...in second one i just added few widgets

        R 1 Reply Last reply 10 Oct 2017, 11:08
        0
        • S shravani
          10 Oct 2017, 10:43

          @raven-worx

          no i used same version ..that first application is working fine but not the second one...in second one i just added few widgets

          R Offline
          R Offline
          raven-worx
          Moderators
          wrote on 10 Oct 2017, 11:08 last edited by raven-worx 10 Oct 2017, 11:08
          #4

          @shravani said in qt getting error procedure entry point could not be located in dynamic link library qt5core.dll:

          no i used same version

          but the error message tells different. Check again.
          Also make sure you are not mixing compilers, etc. Don't only check the Qt version.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          1
          • H Offline
            H Offline
            hskoglund
            wrote on 10 Oct 2017, 14:00 last edited by
            #5

            Just to add to @raven-worx; that entrypoint _Z5qHashRK7QStringj is present in all Qt5.x versions of MinGW's Qt5Core.dll, so make double sure it's not the Qt5Core.dll from 5.6.2/tools/Qtcreator/bin that was copied into your directory.

            S 1 Reply Last reply 11 Oct 2017, 06:18
            2
            • H hskoglund
              10 Oct 2017, 14:00

              Just to add to @raven-worx; that entrypoint _Z5qHashRK7QStringj is present in all Qt5.x versions of MinGW's Qt5Core.dll, so make double sure it's not the Qt5Core.dll from 5.6.2/tools/Qtcreator/bin that was copied into your directory.

              S Offline
              S Offline
              shravani
              wrote on 11 Oct 2017, 06:18 last edited by shravani 10 Nov 2017, 06:20
              #6

              @hskoglund

              thank you for reply.
              now i used windeployqt tool to copy dll files to release folder..but im getting error saying that the application was unable to start correctly(0xc0000007b)
              can you please tell how to solve that?
              im using qt 5.6.2 mingw

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hskoglund
                wrote on 11 Oct 2017, 11:36 last edited by
                #7

                Hi, error 0xC000007b means that a .dll file that your app tries to load is 64-bit instead of 32-bit.

                I'm guessing the bad apple is one (or more) of the .dlls that a Qt MinGW app needs; libstdc++-6.dll, libgcc_s_dw2-1.dll or libwinpthread-1.dll. Because when windeployqt tries to copy them into your release folder, it scans your PATH settings and goes fishing into the first directory where a g++.exe is found. Perhaps you have another MinGW installaed on your PC?

                Anyway, you can try copy those 3 .dlls I mention above manually, from your 5.6/mingw49_32/bin into the release folder.

                1 Reply Last reply
                2
                • Y Offline
                  Y Offline
                  yuvaram
                  wrote on 11 Oct 2017, 11:54 last edited by
                  #8

                  Hi @shravani

                  Below link would help you, which is already discussed

                  https://forum.qt.io/topic/84011/deploying-qt-c-mingw-application/6

                  Yuvaram Aligeti
                  Embedded Qt Developer
                  : )

                  1 Reply Last reply
                  0

                  4/8

                  10 Oct 2017, 11:08

                  • Login

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