I am getting MinGW64 compilation error in Qt.
-
@yy_pc_programmer
By looking at the Issues view, like it tells you, not the compile output. -
-
@ChrisW67 @JonB @Christian-Ehrlicher
Issues :
really thank you for asking. -
@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?
-
@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.
2)
3)
4)
-
@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? -
-
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.
-
@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.
-
These error message are because the
widget.ui
file has not been passed throughuic
to produce the missingui_widget.h
header and its matching source.Is
widget.ui
listed in PROJECT_SOURCES in your CMakeLists.txt file?
Isset(CMAKE_AUTOUIC ON)
there?Does the problem persist if you select Run CMake from the Build menu?
-
@ChrisW67 @JonB @Christian-Ehrlicher @hskoglund
Yeah. There are commands you specified in CMakeList.txt file.
1-
2- -
@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!!!
-
@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.