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. I am getting MinGW64 compilation error in Qt.
QtWS25 Last Chance

I am getting MinGW64 compilation error in Qt.

Scheduled Pinned Locked Moved Unsolved General and Desktop
27 Posts 5 Posters 4.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.
  • Y Offline
    Y Offline
    yy_pc_programmer
    wrote on 29 Dec 2022, 07:12 last edited by
    #1

    Hello. I've been facing this mingw64 build issue for a long time. I could never solve this problem. Can you explain the solutions step by step? can you help me please Thanks.

    Screenshot_5.png Screenshot_4.png Screenshot_3.png Screenshot_2.png Screenshot_1.png

    Y 1 Reply Last reply 29 Dec 2022, 07:37
    0
    • Y yy_pc_programmer
      29 Dec 2022, 07:12

      Hello. I've been facing this mingw64 build issue for a long time. I could never solve this problem. Can you explain the solutions step by step? can you help me please Thanks.

      Screenshot_5.png Screenshot_4.png Screenshot_3.png Screenshot_2.png Screenshot_1.png

      Y Offline
      Y Offline
      yy_pc_programmer
      wrote on 29 Dec 2022, 07:37 last edited by
      #2

      @yy_pc_programmer
      ERROR 1 -> not found in dynamic link library
      Screenshot_4.png
      ++++++++++++++++++++++++
      ERROR 2 -> not found in dynamic link library
      Screenshot_3.png
      ++++++++++++++++++++++++
      ERROR 3 -> not found in dynamic link library
      Screenshot_2.png

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ChrisW67
        wrote on 29 Dec 2022, 07:39 last edited by ChrisW67
        #3

        The debugger is waiting to run a program that never compiled and linked. This is irrelevant to the problem.

        _Z15qAddPostRoutinePFvvE procedure entry point not found in dynamic link library 
        C:\Qt\6.4.1\mingw_64\bin\Qt6Widgets.dll
        

        This is correct. The qAddPostRoutine procedure is in the Qt core library. Similar mismatch problem goes for qvsnprintf() and the Qt6 Gui library.

        Your first step should be to delete the build directory and build a fresh copy.

        How you have arrived at this problem is impossible for us to determine without seeing relevant project file and linker output. (Copy and paste the relevant text of the Compile Output panel in a code block </>, do not post a screen shot of it.)

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          yy_pc_programmer
          wrote on 29 Dec 2022, 07:56 last edited by yy_pc_programmer
          #4

          @ChrisW67
          I deleted build directory as you want.

          Build project with minGw - Compile Outputs :

          10:53:26: Running steps for project 1_QtTestCMake...
          10:53:26: Starting: "C:\Qt\Tools\CMake_64\bin\cmake.exe" --build "D:/Qt_Udemy_Ders_Notlari/1-Udemy_Qt 6_C++_GUI_Development_Beginners_Notlarim/build-1_QtTestCMake-Desktop_Qt_6_4_1_MinGW_64_bit-Debug" --target all
          [1/5 1.0/sec] Automatic MOC and UIC for target 1_QtTestCMake
          [2/5 0.6/sec] Building CXX object CMakeFiles/1_QtTestCMake.dir/main.cpp.obj
          [3/5 0.9/sec] Building CXX object CMakeFiles/1_QtTestCMake.dir/widget.cpp.obj
          [4/5 1.2/sec] Building CXX object CMakeFiles/1_QtTestCMake.dir/1_QtTestCMake_autogen/mocs_compilation.cpp.obj
          [5/5 1.4/sec] Linking CXX executable 1_QtTestCMake.exe
          10:53:30: The process "C:\Qt\Tools\CMake_64\bin\cmake.exe" exited normally.
          10:53:30: Elapsed time: 00:04.
          

          and Run project ( CTRL + R ) compile output :

          10:54:41: Running steps for project 1_QtTestCMake...
          10:54:41: Starting: "C:\Qt\Tools\CMake_64\bin\cmake.exe" --build "D:/Qt_Udemy_Ders_Notlari/1-Udemy_Qt 6_C++_GUI_Development_Beginners_Notlarim/build-1_QtTestCMake-Desktop_Qt_6_4_1_MinGW_64_bit-Debug" --target all
          ninja: no work to do.
          10:54:41: The process "C:\Qt\Tools\CMake_64\bin\cmake.exe" exited normally.
          10:54:41: Elapsed time: 00:00.
          
          
          1 Reply Last reply
          0
          • C Offline
            C Offline
            ChrisW67
            wrote on 29 Dec 2022, 11:39 last edited by
            #5

            So it builds correctly.

            Y 1 Reply Last reply 29 Dec 2022, 12:47
            0
            • C ChrisW67
              29 Dec 2022, 11:39

              So it builds correctly.

              Y Offline
              Y Offline
              yy_pc_programmer
              wrote on 29 Dec 2022, 12:47 last edited by
              #6

              @ChrisW67
              Ninja: no work to do.
              (Could it have something to do with this warning?). Because the problem persists. It keeps giving build error.

              J 1 Reply Last reply 29 Dec 2022, 12:52
              0
              • Y yy_pc_programmer
                29 Dec 2022, 12:47

                @ChrisW67
                Ninja: no work to do.
                (Could it have something to do with this warning?). Because the problem persists. It keeps giving build error.

                J Offline
                J Offline
                JonB
                wrote on 29 Dec 2022, 12:52 last edited by JonB
                #7

                @yy_pc_programmer
                I do not see any build error? Indeed here I see nothing, no need to build. You might clean to remove all generated files and force a complete rebuild.

                Please try to distinguish an error produced during the build process versus one which occurs when you try to run your built executable. Which is the case here for the errors you are talking about? Because I think they are runtime errors, not build (link or compilation) ones?

                Y 1 Reply Last reply 29 Dec 2022, 13:50
                0
                • J JonB
                  29 Dec 2022, 12:52

                  @yy_pc_programmer
                  I do not see any build error? Indeed here I see nothing, no need to build. You might clean to remove all generated files and force a complete rebuild.

                  Please try to distinguish an error produced during the build process versus one which occurs when you try to run your built executable. Which is the case here for the errors you are talking about? Because I think they are runtime errors, not build (link or compilation) ones?

                  Y Offline
                  Y Offline
                  yy_pc_programmer
                  wrote on 29 Dec 2022, 13:50 last edited by
                  #8

                  @JonB
                  build error persists. i don't understand this.

                  compile output:

                  16:48:11: Configuration is faulty. Check the Issues view for details.
                  Error while building/deploying project 1_QtTestCMake (kit: Desktop Qt 6.4.1 MinGW 64-bit)
                  When executing step "CMake Build"
                  
                  C 1 Reply Last reply 29 Dec 2022, 13:52
                  0
                  • Y yy_pc_programmer
                    29 Dec 2022, 13:50

                    @JonB
                    build error persists. i don't understand this.

                    compile output:

                    16:48:11: Configuration is faulty. Check the Issues view for details.
                    Error while building/deploying project 1_QtTestCMake (kit: Desktop Qt 6.4.1 MinGW 64-bit)
                    When executing step "CMake Build"
                    
                    C Offline
                    C Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on 29 Dec 2022, 13:52 last edited by
                    #9

                    @yy_pc_programmer said in I am getting MinGW64 compilation error in Qt.:

                    Configuration is faulty. Check the Issues view for details.

                    It tells you what you have to do... fix your kit configuration.

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    Y 1 Reply Last reply 30 Dec 2022, 07:09
                    0
                    • C Christian Ehrlicher
                      29 Dec 2022, 13:52

                      @yy_pc_programmer said in I am getting MinGW64 compilation error in Qt.:

                      Configuration is faulty. Check the Issues view for details.

                      It tells you what you have to do... fix your kit configuration.

                      Y Offline
                      Y Offline
                      yy_pc_programmer
                      wrote on 30 Dec 2022, 07:09 last edited by
                      #10

                      @Christian-Ehrlicher @JonB @ChrisW67
                      I encountered the same error in Qt, I found and implemented the same here. But the result is still the same. MinGW64 error persists. Can you help me please? thanks.
                      +++++++++++++
                      Qt Forum link: https://forum.qt.io/topic/119998/the-procedure-entry-point-open-qdialog-ueaaxxz-could-not-be-located-in-the-dynamic-link-library

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        ChrisW67
                        wrote on 30 Dec 2022, 07:46 last edited by
                        #11

                        @yy_pc_programmer said in I am getting MinGW64 compilation error in Qt.:

                        This line from your error message

                        16:48:11: Configuration is faulty. Check the Issues view for details.

                        What is in the Issues view?

                        Y 1 Reply Last reply 30 Dec 2022, 08:13
                        0
                        • C ChrisW67
                          30 Dec 2022, 07:46

                          @yy_pc_programmer said in I am getting MinGW64 compilation error in Qt.:

                          This line from your error message

                          16:48:11: Configuration is faulty. Check the Issues view for details.

                          What is in the Issues view?

                          Y Offline
                          Y Offline
                          yy_pc_programmer
                          wrote on 30 Dec 2022, 08:13 last edited by
                          #12

                          @ChrisW67

                          11:12:20: Configuration is faulty. Check the Issues view for details.
                          Error while building/deploying project 1_QtTestCMake (kit: Desktop Qt 6.4.1 MinGW 64-bit)
                          When executing step "CMake Build"
                          
                          J 1 Reply Last reply 30 Dec 2022, 09:01
                          0
                          • Y yy_pc_programmer
                            30 Dec 2022, 08:13

                            @ChrisW67

                            11:12:20: Configuration is faulty. Check the Issues view for details.
                            Error while building/deploying project 1_QtTestCMake (kit: Desktop Qt 6.4.1 MinGW 64-bit)
                            When executing step "CMake Build"
                            
                            J Offline
                            J Offline
                            JonB
                            wrote on 30 Dec 2022, 09:01 last edited by
                            #13

                            @yy_pc_programmer
                            This is the same as you posted earlier. The message instructs you

                            Check the Issues view for details.

                            That is what @ChrisW67 is asking you, what is there?

                            Y 1 Reply Last reply 30 Dec 2022, 10:54
                            0
                            • J JonB
                              30 Dec 2022, 09:01

                              @yy_pc_programmer
                              This is the same as you posted earlier. The message instructs you

                              Check the Issues view for details.

                              That is what @ChrisW67 is asking you, what is there?

                              Y Offline
                              Y Offline
                              yy_pc_programmer
                              wrote on 30 Dec 2022, 10:54 last edited by
                              #14

                              @JonB
                              How can I find out what's in there?
                              Compile output:

                              13:52:36: Configuration is faulty. Check the Issues view for details.
                              Error while building/deploying project 1_QtTestCMake (kit: Desktop Qt 6.4.1 MinGW 64-bit)
                              When executing step "CMake Build"
                              

                              thank you.

                              J C 2 Replies Last reply 30 Dec 2022, 12:09
                              0
                              • Y yy_pc_programmer
                                30 Dec 2022, 10:54

                                @JonB
                                How can I find out what's in there?
                                Compile output:

                                13:52:36: Configuration is faulty. Check the Issues view for details.
                                Error while building/deploying project 1_QtTestCMake (kit: Desktop Qt 6.4.1 MinGW 64-bit)
                                When executing step "CMake Build"
                                

                                thank you.

                                J Offline
                                J Offline
                                JonB
                                wrote on 30 Dec 2022, 12:09 last edited by
                                #15

                                @yy_pc_programmer
                                By looking at the Issues view, like it tells you, not the compile output.

                                1 Reply Last reply
                                0
                                • Y yy_pc_programmer
                                  30 Dec 2022, 10:54

                                  @JonB
                                  How can I find out what's in there?
                                  Compile output:

                                  13:52:36: Configuration is faulty. Check the Issues view for details.
                                  Error while building/deploying project 1_QtTestCMake (kit: Desktop Qt 6.4.1 MinGW 64-bit)
                                  When executing step "CMake Build"
                                  

                                  thank you.

                                  C Offline
                                  C Offline
                                  ChrisW67
                                  wrote on 31 Dec 2022, 02:51 last edited by
                                  #16

                                  @yy_pc_programmer

                                  11312241-91d3-4875-81ca-37a08bebbde3-image.png

                                  Y 1 Reply Last reply 31 Dec 2022, 06:53
                                  1
                                  • C ChrisW67
                                    31 Dec 2022, 02:51

                                    @yy_pc_programmer

                                    11312241-91d3-4875-81ca-37a08bebbde3-image.png

                                    Y Offline
                                    Y Offline
                                    yy_pc_programmer
                                    wrote on 31 Dec 2022, 06:53 last edited by
                                    #17

                                    @ChrisW67 @JonB @Christian-Ehrlicher
                                    Issues :
                                    Screenshot_1.png
                                    really thank you for asking.

                                    1 Reply Last reply
                                    0
                                    • C Offline
                                      C Offline
                                      ChrisW67
                                      wrote on 31 Dec 2022, 21:41 last edited by
                                      #18

                                      @yy_pc_programmer said in I am getting MinGW64 compilation error in Qt.:

                                      OK. So your Kit definition is broken and hence disabled.

                                      • Open your Projects panel
                                      • Click the large Manage Kits button in the top left.
                                      • Look at the kit(s) you are trying to use, "Desktop Qt 6.4.1 MinGW 64-bit", on the Kits tab
                                        • Anything flagged in red?
                                        • Choosing the correct compiler?
                                        • Choosing the correct Qt version (must match compiler)?
                                        • Choosing the correct cmake tool/path?
                                      • Look at the selected Qt version on the Qt Versions tab
                                        • Are the paths correct?
                                      • Look at the selected comiler on the Compilers tab
                                        • Are the paths correct?
                                      Y 2 Replies Last reply 1 Jan 2023, 06:02
                                      1
                                      • C ChrisW67
                                        31 Dec 2022, 21:41

                                        @yy_pc_programmer said in I am getting MinGW64 compilation error in Qt.:

                                        OK. So your Kit definition is broken and hence disabled.

                                        • Open your Projects panel
                                        • Click the large Manage Kits button in the top left.
                                        • Look at the kit(s) you are trying to use, "Desktop Qt 6.4.1 MinGW 64-bit", on the Kits tab
                                          • Anything flagged in red?
                                          • Choosing the correct compiler?
                                          • Choosing the correct Qt version (must match compiler)?
                                          • Choosing the correct cmake tool/path?
                                        • Look at the selected Qt version on the Qt Versions tab
                                          • Are the paths correct?
                                        • Look at the selected comiler on the Compilers tab
                                          • Are the paths correct?
                                        Y Offline
                                        Y Offline
                                        yy_pc_programmer
                                        wrote on 1 Jan 2023, 06:02 last edited by yy_pc_programmer 1 Jan 2023, 07:01
                                        #19

                                        @ChrisW67 @JonB @Christian-Ehrlicher
                                        I created my project on hard disk D: Does the path of this project cause problems? From what I understand, there seems to be no problem with the MinGW64 file path. I'm trying to understand my mistake. I'm taking photos so I can explain the problems to you. I am very glad that you support me. Thank you so much.

                                        1. Screenshot_1.png
                                          2)Screenshot_2.png
                                          3)Screenshot_3.png
                                          4)Screenshot_4.png
                                        1 Reply Last reply
                                        0
                                        • C ChrisW67
                                          31 Dec 2022, 21:41

                                          @yy_pc_programmer said in I am getting MinGW64 compilation error in Qt.:

                                          OK. So your Kit definition is broken and hence disabled.

                                          • Open your Projects panel
                                          • Click the large Manage Kits button in the top left.
                                          • Look at the kit(s) you are trying to use, "Desktop Qt 6.4.1 MinGW 64-bit", on the Kits tab
                                            • Anything flagged in red?
                                            • Choosing the correct compiler?
                                            • Choosing the correct Qt version (must match compiler)?
                                            • Choosing the correct cmake tool/path?
                                          • Look at the selected Qt version on the Qt Versions tab
                                            • Are the paths correct?
                                          • Look at the selected comiler on the Compilers tab
                                            • Are the paths correct?
                                          Y Offline
                                          Y Offline
                                          yy_pc_programmer
                                          wrote on 3 Jan 2023, 12:08 last edited by
                                          #20

                                          @ChrisW67 @JonB @Christian-Ehrlicher
                                          I uninstalled version 6.4.1 of Qt. I installed the old Qt 6.3.2 But again the same sound came out. Can you help me please? My projects are interrupted. How can I fix this problem?

                                          1 Reply Last reply
                                          0

                                          9/27

                                          29 Dec 2022, 13:52

                                          topic:navigator.unread, 18
                                          • Login

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