Build fails as ui_mainwindow.h not found
-
@dheerendra
Yes I created a new project but the problem is still coming. Also there was Qt5cored.dll file which was missing. I added that also.
Is this problem because of that? -
Ok. I suspect that issue with your installation. One last check b4 u get into further. I'm assuiming that you are working on windows system. Do you see uic.exe executable in bin directory of your installation ?
-
@dheerendra
Yes it is there -
as @jsulm already suggested, you better install the new version and try. My suspect is that you have installed some other software which has old Qt library in path. This must be causing the issue.
-
@dheerendra
I will try to install the new version and check. -
@ru10 Qt6 uses CMake instead of QMake (thoufh you still can use QMake), so look for CMakeLists.txt file.
"And also getting ui_mainwindow.h not found" - this file is generated when you build your project, you should not edit it as your changes will disappear next time this file is generated. -
@ru10 said in Build fails as ui_mainwindow.h not found:
"How to fix ui_mainwindow.h file not found"?
@jsulm said in Build fails as ui_mainwindow.h not found:
"And also getting ui_mainwindow.h not found" - this file is generated when you build your project
Have you tried building your project? You will get these messages until you do.....