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. Build fails as ui_mainwindow.h not found
Forum Updated to NodeBB v4.3 + New Features

Build fails as ui_mainwindow.h not found

Scheduled Pinned Locked Moved Solved General and Desktop
build failed
26 Posts 6 Posters 22.5k Views 2 Watching
  • 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.
  • dheerendraD Offline
    dheerendraD Offline
    dheerendra
    Qt Champions 2022
    wrote on last edited by
    #14

    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
    @Community Service
    Certified Qt Specialist
    http://www.pthinks.com

    T 1 Reply Last reply
    2
    • dheerendraD dheerendra

      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 ?

      T Offline
      T Offline
      Tanuja
      wrote on last edited by
      #15

      @dheerendra
      Yes it is there

      jsulmJ 1 Reply Last reply
      1
      • T Tanuja

        @dheerendra
        Yes it is there

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #16

        @Tanuja How did you install Qt?

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

        T 1 Reply Last reply
        1
        • jsulmJ jsulm

          @Tanuja How did you install Qt?

          T Offline
          T Offline
          Tanuja
          wrote on last edited by
          #17

          @jsulm
          Downloaded the software and installed it.
          It was working correctly when I installed it. After some time it started giving me this error.
          As far as I know, there is some issue with my Qt5core.dll file

          jsulmJ 1 Reply Last reply
          0
          • T Tanuja

            @jsulm
            Downloaded the software and installed it.
            It was working correctly when I installed it. After some time it started giving me this error.
            As far as I know, there is some issue with my Qt5core.dll file

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #18

            @Tanuja What is the issue with Qt5core.dll?
            You could try to install the latest Qt version (5.9.1).

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

            T 1 Reply Last reply
            1
            • jsulmJ jsulm

              @Tanuja What is the issue with Qt5core.dll?
              You could try to install the latest Qt version (5.9.1).

              T Offline
              T Offline
              Tanuja
              wrote on last edited by
              #19

              @jsulm
              Ok will do that

              1 Reply Last reply
              1
              • dheerendraD Offline
                dheerendraD Offline
                dheerendra
                Qt Champions 2022
                wrote on last edited by
                #20

                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
                @Community Service
                Certified Qt Specialist
                http://www.pthinks.com

                T 1 Reply Last reply
                2
                • dheerendraD dheerendra

                  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.

                  T Offline
                  T Offline
                  Tanuja
                  wrote on last edited by
                  #21

                  @dheerendra
                  I will try to install the new version and check.

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    Tanuja
                    wrote on last edited by
                    #22

                    It's done
                    I installed it again and now its building perfectly

                    1 Reply Last reply
                    1
                    • R Offline
                      R Offline
                      ru10
                      wrote on last edited by
                      #23

                      Hi ,
                      Just yesterday I installed QT 6.3.2. When I started new project in Qt creator, .pro or make file is not generated ...And also getting ui_mainwindow.h not found.

                      Please suggest on how to create .pro file.
                      Thank you.

                      jsulmJ 1 Reply Last reply
                      0
                      • R ru10

                        Hi ,
                        Just yesterday I installed QT 6.3.2. When I started new project in Qt creator, .pro or make file is not generated ...And also getting ui_mainwindow.h not found.

                        Please suggest on how to create .pro file.
                        Thank you.

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #24

                        @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.

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

                        R 1 Reply Last reply
                        2
                        • jsulmJ jsulm

                          @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.

                          R Offline
                          R Offline
                          ru10
                          wrote on last edited by
                          #25

                          @jsulm Thank you.
                          Yes i do have CmakeLists.txt file.
                          c77ce21c-4ea7-4e7d-9544-96a13b5876aa-image.png

                          "How to fix ui_mainwindow.h file not found"?

                          JonBJ 1 Reply Last reply
                          0
                          • R ru10

                            @jsulm Thank you.
                            Yes i do have CmakeLists.txt file.
                            c77ce21c-4ea7-4e7d-9544-96a13b5876aa-image.png

                            "How to fix ui_mainwindow.h file not found"?

                            JonBJ Offline
                            JonBJ Offline
                            JonB
                            wrote on last edited by JonB
                            #26

                            @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.....

                            1 Reply Last reply
                            1

                            • Login

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