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.

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 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
            • H Offline
              H Offline
              hskoglund
              wrote on 3 Jan 2023, 12:57 last edited by
              #21

              Hi, try to simplify and uninstall/remove as much as possible from your PC:
              remove MSVC compiler (run MaintenanceTool and uninstall MSVC)
              remove Strawberry
              Try to build an example project from Qt 6.3.2 MinGW in Release mode (not Debug). Does it work?

              Y 1 Reply Last reply 4 Jan 2023, 07:07
              0
              • C Offline
                C Offline
                ChrisW67
                wrote on 3 Jan 2023, 22:30 last edited by ChrisW67 1 Apr 2023, 01:28
                #22

                Other thoughts...

                Remove the WASM version of Qt also.

                Recreate the project definitions:

                • Close out of Qt creator entirely.
                • Locate CMakeLists.txt.user in your source directory
                • Remove or rename it out of the way
                • Start Qt Creator
                • Open Project... and select your CMakeLists.txt file.

                Build any better?

                Do you have more then one CMake installed? Possibly getting confused.

                1 Reply Last reply
                1
                • H hskoglund
                  3 Jan 2023, 12:57

                  Hi, try to simplify and uninstall/remove as much as possible from your PC:
                  remove MSVC compiler (run MaintenanceTool and uninstall MSVC)
                  remove Strawberry
                  Try to build an example project from Qt 6.3.2 MinGW in Release mode (not Debug). Does it work?

                  Y Offline
                  Y Offline
                  yy_pc_programmer
                  wrote on 4 Jan 2023, 07:07 last edited by
                  #23

                  @hskoglund @ChrisW67 @JonB @Christian-Ehrlicher
                  Unfortunately I have other projects that I'm continuing with msvc64. It is not correct for me to remove msvc64. Because my other work is affected. I ran my CMake project, which had this problem, in release mode as you said. The following problems appeared. I don't understand. Thanks.
                  Release_Mode_6.png
                  Release_Mode2_6.png

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    ChrisW67
                    wrote on 4 Jan 2023, 08:17 last edited by
                    #24

                    These error message are because the widget.ui file has not been passed through uic to produce the missing ui_widget.h header and its matching source.

                    Is widget.ui listed in PROJECT_SOURCES in your CMakeLists.txt file?
                    Is set(CMAKE_AUTOUIC ON) there?

                    Does the problem persist if you select Run CMake from the Build menu?

                    Y 1 Reply Last reply 4 Jan 2023, 11:15
                    0
                    • C ChrisW67
                      4 Jan 2023, 08:17

                      These error message are because the widget.ui file has not been passed through uic to produce the missing ui_widget.h header and its matching source.

                      Is widget.ui listed in PROJECT_SOURCES in your CMakeLists.txt file?
                      Is set(CMAKE_AUTOUIC ON) there?

                      Does the problem persist if you select Run CMake from the Build menu?

                      Y Offline
                      Y Offline
                      yy_pc_programmer
                      wrote on 4 Jan 2023, 11:15 last edited by
                      #25

                      @ChrisW67 @JonB @Christian-Ehrlicher @hskoglund
                      Yeah. There are commands you specified in CMakeList.txt file.
                      1-widget_ui_6.png
                      2-widget_ui2_6.png

                      Y 1 Reply Last reply 4 Jan 2023, 11:32
                      0
                      • Y yy_pc_programmer
                        4 Jan 2023, 11:15

                        @ChrisW67 @JonB @Christian-Ehrlicher @hskoglund
                        Yeah. There are commands you specified in CMakeList.txt file.
                        1-widget_ui_6.png
                        2-widget_ui2_6.png

                        Y Offline
                        Y Offline
                        yy_pc_programmer
                        wrote on 4 Jan 2023, 11:32 last edited by
                        #26

                        @ChrisW67 @JonB @Christian-Ehrlicher @hskoglund
                        I wonder something. Am I doing something right if I choose CMake as the build system, and run it with msvc64 as well?
                        I actually tried this, and it worked. But I'm not sure if it's the right thing? this time "Not found in dynamic library!" didn't give an error. It just gave the error that the widget.ui file does not exist in the problems panel. Do you think I did this right? Thanks!!!
                        build_6.png

                        J 1 Reply Last reply 4 Jan 2023, 11:51
                        0
                        • Y yy_pc_programmer
                          4 Jan 2023, 11:32

                          @ChrisW67 @JonB @Christian-Ehrlicher @hskoglund
                          I wonder something. Am I doing something right if I choose CMake as the build system, and run it with msvc64 as well?
                          I actually tried this, and it worked. But I'm not sure if it's the right thing? this time "Not found in dynamic library!" didn't give an error. It just gave the error that the widget.ui file does not exist in the problems panel. Do you think I did this right? Thanks!!!
                          build_6.png

                          J Offline
                          J Offline
                          JonB
                          wrote on 4 Jan 2023, 11:51 last edited by
                          #27

                          @yy_pc_programmer
                          Please just post your questions without the @ChrisW67 @JonB @Christian-Ehrlicher @hskoglund stuff every time, allow whichever people to look and answer without calling out every time. Thank you.

                          1 Reply Last reply
                          0

                          25/27

                          4 Jan 2023, 11:15

                          • Login

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