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. Could not find procedure entry point _Z9qt_assertPKcS0_i in dynamic link library

Could not find procedure entry point _Z9qt_assertPKcS0_i in dynamic link library

Scheduled Pinned Locked Moved Unsolved General and Desktop
22 Posts 7 Posters 3.3k 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.
  • C CidGianni
    16 Jun 2022, 13:44

    @JonB Hi. first of all, thanks. Yesterday I downloaded the latest Open Source version (qt-unified-windows-x64-4.4.0-online.exe) for Windows 10 x64 and just installed it without changing any recommendations. After installed, I created the first project (only one window), compiled and executed. It's my first contact with QT.

    J Offline
    J Offline
    JonB
    wrote on 16 Jun 2022, 14:28 last edited by JonB
    #4

    @CidGianni
    I cannot help further on this. Doubtless somebody else will soon/later.
    However, you should state what kit you set up to use, e.g. MSVC (what version) or MinGW?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      CidGianni
      wrote on 16 Jun 2022, 14:57 last edited by
      #5

      Hi @JonB . I used Desktop Qt 6.3.1 MinGW 64bit. Thanks... In error message don't show dll name.

      1 Reply Last reply
      1
      • H Online
        H Online
        hskoglund
        wrote on 16 Jun 2022, 15:50 last edited by
        #6

        Hi, if you try to build and run an app from Examples, say "Qt Widgets - Application Example" do you get the same error?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          CidGianni
          wrote on 16 Jun 2022, 17:11 last edited by
          #7

          Hi ... yes. Thanks.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ChrisW67
            wrote on 17 Jun 2022, 07:17 last edited by
            #8

            @CidGianni said in Could not find procedure entry point _Z9qt_assertPKcS0_i in dynamic link library:

            After compiling, when running it shows the error below:
            Could not find procedure entry point _Z9qt_assertPKcS0_i in dynamic link library.

            After compiling, when linking. The program is never getting far enough to be executed. The symbol "_Z9qt_assertPKcS0_i" is in Qt5Core.dll or Qt5Cored.dll, so something is not good with what is being run.

            Select Rebuild from the Build menu.
            Copy and paste the output from the Compile Output pane.

            1 Reply Last reply
            1
            • C Offline
              C Offline
              CidGianni
              wrote on 17 Jun 2022, 18:40 last edited by
              #9

              Hi ChrisW67. Thanks your help. Follows COMPILE OUTPUT and APPLICATION OUTPUT:
              COMPILE OUTPUT
              15:30:55: Starting: "C:\Qt\Tools\mingw1120_64\bin\mingw32-make.exe" -j4
              C:/Qt/Tools/mingw1120_64/bin/mingw32-make -f Makefile.Debug
              mingw32-make[1]: Entering directory 'D:/OneDrive/00-ProjectosQTCreator/build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug'
              mingw32-make[1]: Nothing to be done for 'first'.
              mingw32-make[1]: Leaving directory 'D:/OneDrive/00-ProjectosQTCreator/build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug'
              15:30:57: The process "C:\Qt\Tools\mingw1120_64\bin\mingw32-make.exe" exited normally.
              15:30:57: Elapsed time: 00:02.
              AFTER REBUILD
              include/QtGui -IC:/Qt/6.3.1/mingw_64/include/QtCore -Idebug -I. -I/include -IC:/Qt/6.3.1/mingw_64/mkspecs/win32-g++ -o debug\moc_janela.o debug\moc_janela.cpp
              g++ -Wl,-subsystem,windows -mthreads -o debug\Janela01.exe debug/main.o debug/janela.o debug/moc_janela.o C:\Qt\6.3.1\mingw_64\lib\libQt6Widgets.a C:\Qt\6.3.1\mingw_64\lib\libQt6Gui.a C:\Qt\6.3.1\mingw_64\lib\libQt6Core.a -lmingw32 C:\Qt\6.3.1\mingw_64\lib\libQt6EntryPoint.a -lshell32
              mingw32-make[1]: Leaving directory 'D:/OneDrive/00-ProjectosQTCreator/build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug'
              15:34:21: The process "C:\Qt\Tools\mingw1120_64\bin\mingw32-make.exe" exited normally.
              15:34:21: Elapsed time: 00:22.

              APPLICATION OUTPUT
              15:30:58: Starting D:\OneDrive\00-ProjectosQTCreator\build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug\debug\Janela01.exe...
              15:31:03: D:\OneDrive\00-ProjectosQTCreator\build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug\debug\Janela01.exe crashed.

              15:36:35: Starting D:\OneDrive\00-ProjectosQTCreator\build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug\debug\Janela01.exe...
              15:36:49: D:\OneDrive\00-ProjectosQTCreator\build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug\debug\Janela01.exe crashed.

              C 1 Reply Last reply 18 Jun 2022, 06:11
              0
              • C Offline
                C Offline
                CidGianni
                wrote on 17 Jun 2022, 19:25 last edited by
                #10

                I copy Qt6Gui.dll and Qt6Core.dll to windows\system32. Today i remove from windows\system32. Now the message is:
                Could not find procedure entry point _Z9qt_assertPKcS0_i in dynamic link library.
                Qt6Gui.dll
                Qt6Core.dll
                DLL are in folder C:\Qt\Tools\QtCreator\bin

                1 Reply Last reply
                0
                • H Online
                  H Online
                  hskoglund
                  wrote on 17 Jun 2022, 19:43 last edited by
                  #11

                  Hi, the .dlls in the folder r C:\Qt\Tools\QtCreator\bin are meant to be used exclusively by Qt Creator. They usually are built with MSVC 2019, not with MingGW, and that could explain the error with the missing procedure entry point.

                  If you remove all Qt6Core.dll that you've copied, so that only 2 remains:
                  one in C:\Qt\6.3.1\mingw_64\bin and one in C:\Qt\Tools\QtCreator\bin (and they should have different sizes and dates) do you still get the same error when trying to build an app from Qt's Examples?

                  C 1 Reply Last reply 18 Jun 2022, 10:34
                  1
                  • C CidGianni
                    17 Jun 2022, 18:40

                    Hi ChrisW67. Thanks your help. Follows COMPILE OUTPUT and APPLICATION OUTPUT:
                    COMPILE OUTPUT
                    15:30:55: Starting: "C:\Qt\Tools\mingw1120_64\bin\mingw32-make.exe" -j4
                    C:/Qt/Tools/mingw1120_64/bin/mingw32-make -f Makefile.Debug
                    mingw32-make[1]: Entering directory 'D:/OneDrive/00-ProjectosQTCreator/build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug'
                    mingw32-make[1]: Nothing to be done for 'first'.
                    mingw32-make[1]: Leaving directory 'D:/OneDrive/00-ProjectosQTCreator/build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug'
                    15:30:57: The process "C:\Qt\Tools\mingw1120_64\bin\mingw32-make.exe" exited normally.
                    15:30:57: Elapsed time: 00:02.
                    AFTER REBUILD
                    include/QtGui -IC:/Qt/6.3.1/mingw_64/include/QtCore -Idebug -I. -I/include -IC:/Qt/6.3.1/mingw_64/mkspecs/win32-g++ -o debug\moc_janela.o debug\moc_janela.cpp
                    g++ -Wl,-subsystem,windows -mthreads -o debug\Janela01.exe debug/main.o debug/janela.o debug/moc_janela.o C:\Qt\6.3.1\mingw_64\lib\libQt6Widgets.a C:\Qt\6.3.1\mingw_64\lib\libQt6Gui.a C:\Qt\6.3.1\mingw_64\lib\libQt6Core.a -lmingw32 C:\Qt\6.3.1\mingw_64\lib\libQt6EntryPoint.a -lshell32
                    mingw32-make[1]: Leaving directory 'D:/OneDrive/00-ProjectosQTCreator/build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug'
                    15:34:21: The process "C:\Qt\Tools\mingw1120_64\bin\mingw32-make.exe" exited normally.
                    15:34:21: Elapsed time: 00:22.

                    APPLICATION OUTPUT
                    15:30:58: Starting D:\OneDrive\00-ProjectosQTCreator\build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug\debug\Janela01.exe...
                    15:31:03: D:\OneDrive\00-ProjectosQTCreator\build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug\debug\Janela01.exe crashed.

                    15:36:35: Starting D:\OneDrive\00-ProjectosQTCreator\build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug\debug\Janela01.exe...
                    15:36:49: D:\OneDrive\00-ProjectosQTCreator\build-Janela01-Desktop_Qt_6_3_1_MinGW_64_bit-Debug\debug\Janela01.exe crashed.

                    C Offline
                    C Offline
                    ChrisW67
                    wrote on 18 Jun 2022, 06:11 last edited by
                    #12

                    @CidGianni said in Could not find procedure entry point _Z9qt_assertPKcS0_i in dynamic link library:

                    Hi ChrisW67. Thanks your help. Follows COMPILE OUTPUT and APPLICATION OUTPUT:

                    Thanks. I stand corrected, your program is compiling, linking, and then failing at run time. Mismatched DLLs, as @hskoglund is chasing, is the most likely cause.

                    C 1 Reply Last reply 18 Jun 2022, 10:47
                    0
                    • H hskoglund
                      17 Jun 2022, 19:43

                      Hi, the .dlls in the folder r C:\Qt\Tools\QtCreator\bin are meant to be used exclusively by Qt Creator. They usually are built with MSVC 2019, not with MingGW, and that could explain the error with the missing procedure entry point.

                      If you remove all Qt6Core.dll that you've copied, so that only 2 remains:
                      one in C:\Qt\6.3.1\mingw_64\bin and one in C:\Qt\Tools\QtCreator\bin (and they should have different sizes and dates) do you still get the same error when trying to build an app from Qt's Examples?

                      C Offline
                      C Offline
                      CidGianni
                      wrote on 18 Jun 2022, 10:34 last edited by
                      #13

                      @hskoglund Yes. I still get the same error when trying to build an app from Qt's. And dll there are only in two folders: C:\Qt\6.3.1\mingw_64\bin and C:\Qt\Tools\QtCreator\bin, and the have different sizes and dates too. I don't understand why they are different.

                      1 Reply Last reply
                      0
                      • C ChrisW67
                        18 Jun 2022, 06:11

                        @CidGianni said in Could not find procedure entry point _Z9qt_assertPKcS0_i in dynamic link library:

                        Hi ChrisW67. Thanks your help. Follows COMPILE OUTPUT and APPLICATION OUTPUT:

                        Thanks. I stand corrected, your program is compiling, linking, and then failing at run time. Mismatched DLLs, as @hskoglund is chasing, is the most likely cause.

                        C Offline
                        C Offline
                        CidGianni
                        wrote on 18 Jun 2022, 10:47 last edited by
                        #14

                        @ChrisW67 said in Could not find procedure entry point _Z9qt_assertPKcS0_i in dynamic link library:

                        Thanks. I stand corrected, your program is compiling, linking, and then failing at run time. Mismatched DLLs, as @hskoglund is chasing, is the most likely cause.

                        Hi @ChrisW67 thanks. Do you have any suggestion? Thanks again.

                        J 1 Reply Last reply 18 Jun 2022, 11:25
                        0
                        • C CidGianni
                          18 Jun 2022, 10:47

                          @ChrisW67 said in Could not find procedure entry point _Z9qt_assertPKcS0_i in dynamic link library:

                          Thanks. I stand corrected, your program is compiling, linking, and then failing at run time. Mismatched DLLs, as @hskoglund is chasing, is the most likely cause.

                          Hi @ChrisW67 thanks. Do you have any suggestion? Thanks again.

                          J Offline
                          J Offline
                          JonB
                          wrote on 18 Jun 2022, 11:25 last edited by
                          #15

                          @CidGianni
                          It seems likely/possible your program is finding DLLs from C:\Qt\Tools\QtCreator\bin at runtime when you need it to only find files from/look in C:\Qt\6.3.1\mingw_64\bin. They are not the same because the QtCreator ones are only for use by QtCreator.

                          I copy Qt6Gui.dll and Qt6Core.dll to windows\system32. Today i remove from windows\system32. Now the message is:
                          DLL are in folder C:\Qt\Tools\QtCreator\bin

                          Don't do such a thing if you do not know what you doing. It sounds like you have copied the wrong files. If you must do this yourself at all manually, I assume the ones in C:\Qt\6.3.1\mingw_64\bin would be the correct ones.

                          You should understand the difference between Qt Creator files, which are just for it to use, versus the Qt files your application uses.

                          1 Reply Last reply
                          0
                          • H Online
                            H Online
                            hskoglund
                            wrote on 18 Jun 2022, 11:50 last edited by
                            #16

                            Hi, in addtion to what @JonB says:
                            Try not using OneDrive for storing your projects, instead create a directory somewhere on your C: drive.
                            To avoid the mixup/collision with Qt dlls, try installing a Qt5 version of MinGW, for example 5.15.2 and see if you get the same error when launching the 5.15.2 version of your app.

                            C 1 Reply Last reply 18 Jun 2022, 12:02
                            1
                            • H hskoglund
                              18 Jun 2022, 11:50

                              Hi, in addtion to what @JonB says:
                              Try not using OneDrive for storing your projects, instead create a directory somewhere on your C: drive.
                              To avoid the mixup/collision with Qt dlls, try installing a Qt5 version of MinGW, for example 5.15.2 and see if you get the same error when launching the 5.15.2 version of your app.

                              C Offline
                              C Offline
                              CidGianni
                              wrote on 18 Jun 2022, 12:02 last edited by
                              #17

                              @hskoglund Thanks. I make test saving project in d:\QTProject, but not solve de problems. Now i uninstall QT 7.0.2 and I will try an old version.

                              1 Reply Last reply
                              0
                              • C Offline
                                C Offline
                                ChrisW67
                                wrote on 19 Jun 2022, 04:05 last edited by
                                #18

                                Ensure that neither the installer nor your good self is adding C:\Qt\Tools\QtCreator\bin to the system PATH.

                                C 1 Reply Last reply 19 Jun 2022, 10:59
                                2
                                • C ChrisW67
                                  19 Jun 2022, 04:05

                                  Ensure that neither the installer nor your good self is adding C:\Qt\Tools\QtCreator\bin to the system PATH.

                                  C Offline
                                  C Offline
                                  CidGianni
                                  wrote on 19 Jun 2022, 10:59 last edited by
                                  #19

                                  @ChrisW67 Thanks.

                                  1 Reply Last reply
                                  0
                                  • G Offline
                                    G Offline
                                    Grigg_23
                                    wrote on 7 Mar 2023, 09:07 last edited by jsulm 3 Jul 2023, 11:13
                                    #20

                                    I have solved my issue by installing the DLL File.

                                    jsulmJ 1 Reply Last reply 7 Mar 2023, 11:14
                                    0
                                    • G Grigg_23
                                      7 Mar 2023, 09:07

                                      I have solved my issue by installing the DLL File.

                                      jsulmJ Offline
                                      jsulmJ Offline
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on 7 Mar 2023, 11:14 last edited by
                                      #21

                                      @Grigg_23 I removed your link. Downloading and installing some DLLs from some dubious locations is not a good suggestion. I also have the impression that you post was a spam post.

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

                                      1 Reply Last reply
                                      1
                                      • C CidGianni
                                        16 Jun 2022, 13:28

                                        Installed QT Creator 7.0.2 Windows 10 environment..
                                        After installation, I created a project type Application(Qt) - Qt Widgets Application -Empty window. Build qmake.
                                        After compiling, when running it shows the error below:
                                        Could not find procedure entry point _Z9qt_assertPKcS0_i in dynamic link library.
                                        I need help. Thanks.

                                        K Offline
                                        K Offline
                                        Kolbeinn
                                        wrote on 3 Dec 2023, 00:14 last edited by
                                        #22

                                        @CidGianni I know i'm late and you probably fixed it or have moved on, but you might have used the wrong compiler, using QT 6.7.0 (MSVC) would enter that meesage on a mingw program. You have to use QT 6.7.0 (MINGW) application to compile it, then it works!

                                        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