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. Qt Build Issue
Qt 6.11 is out! See what's new in the release blog

Qt Build Issue

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.4k 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.
  • S Offline
    S Offline
    Sikander Rafiq
    wrote on last edited by
    #1

    HI,
    I am getting very strange QT build errors. Here are the error details.

    qt/service/D:/ClowdWork/clowdtrack-qt/service/../core_ui_common -I/include -IE:/C_Drive/QT5.15.2/5.15.2/mingw81_64/mkspecs/win32-g++ -o debuggermonitor.o ../../clowdtrack-qt/core_ui_common/debuggermonitor/debuggermonitor.cpp
    g++: error: /W3: No such file or directory
    g++: error: /D_USING_V110_SDK71_: No such file or directory
    g++: error: /W3: No such file or directory
    g++: error: /D_USING_V110_SDK71_: No such file or directory
    mingw32-make[1]: *** [Makefile:3811: debuggermonitor.o] Error 1
    mingw32-make[1]: Leaving directory 'D:/ClowdWork/build-usetime-qt-QT5_15_2-Debug/service'
    mingw32-make: *** [Makefile:96: sub-D--ClowdWork-clowdtrack-qt-service-service-pro-make_first-ordered] Error 2
    20:52:13: The process "E:\C_Drive\QT5.15.2\Tools\mingw810_64\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project usetime-qt (kit: QT5.15.2)
    When executing step "Make"
    20:52:13: Elapsed time: 00:02.

    Qt-error.jpg

    Christian EhrlicherC 1 Reply Last reply
    0
    • S Sikander Rafiq

      HI,
      I am getting very strange QT build errors. Here are the error details.

      qt/service/D:/ClowdWork/clowdtrack-qt/service/../core_ui_common -I/include -IE:/C_Drive/QT5.15.2/5.15.2/mingw81_64/mkspecs/win32-g++ -o debuggermonitor.o ../../clowdtrack-qt/core_ui_common/debuggermonitor/debuggermonitor.cpp
      g++: error: /W3: No such file or directory
      g++: error: /D_USING_V110_SDK71_: No such file or directory
      g++: error: /W3: No such file or directory
      g++: error: /D_USING_V110_SDK71_: No such file or directory
      mingw32-make[1]: *** [Makefile:3811: debuggermonitor.o] Error 1
      mingw32-make[1]: Leaving directory 'D:/ClowdWork/build-usetime-qt-QT5_15_2-Debug/service'
      mingw32-make: *** [Makefile:96: sub-D--ClowdWork-clowdtrack-qt-service-service-pro-make_first-ordered] Error 2
      20:52:13: The process "E:\C_Drive\QT5.15.2\Tools\mingw810_64\bin\mingw32-make.exe" exited with code 2.
      Error while building/deploying project usetime-qt (kit: QT5.15.2)
      When executing step "Make"
      20:52:13: Elapsed time: 00:02.

      Qt-error.jpg

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You don't get a 'Qt build error' since you don't build Qt but your own app. Show the corresponding CMakeLists.txt - looks like you're adding MSVC options to your command line but using MinGW.

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

      S 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        You don't get a 'Qt build error' since you don't build Qt but your own app. Show the corresponding CMakeLists.txt - looks like you're adding MSVC options to your command line but using MinGW.

        S Offline
        S Offline
        Sikander Rafiq
        wrote on last edited by
        #3

        HI @Christian-Ehrlicher
        Thank you so much for your reply. I don't find any CMakeLists.txt file in source code. Yes Im trying to build my own project which is actually written by some other developers. I just started work on it and no previous developer is here to help me out in building the app.

        Yes, I have configured MinGW kit using QT 5.15.2 to build this project.
        What I get from your message " looks like you're adding MSVC options to your command line but using MinGW." is I have to use MSVC compiler/kit to build this app. Pls confirm and help me out to build this app.

        JonBJ 1 Reply Last reply
        0
        • S Sikander Rafiq

          HI @Christian-Ehrlicher
          Thank you so much for your reply. I don't find any CMakeLists.txt file in source code. Yes Im trying to build my own project which is actually written by some other developers. I just started work on it and no previous developer is here to help me out in building the app.

          Yes, I have configured MinGW kit using QT 5.15.2 to build this project.
          What I get from your message " looks like you're adding MSVC options to your command line but using MinGW." is I have to use MSVC compiler/kit to build this app. Pls confirm and help me out to build this app.

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

          @Sikander-Rafiq
          @Christian-Ehrlicher is not saying you have to use MSVC. He is saying you appear to be (mostly) using MinGW but some MSVC-style options are being passed to the compiler as well. Which won't work. You need to track down where those options are coming from in your kit/build selection. We don't know where your arguments like /W3 are specified. If you don't have a CMakeLists.txt then maybe you are using qmake and your project has a .pro file instead?

          S 1 Reply Last reply
          1
          • JonBJ JonB

            @Sikander-Rafiq
            @Christian-Ehrlicher is not saying you have to use MSVC. He is saying you appear to be (mostly) using MinGW but some MSVC-style options are being passed to the compiler as well. Which won't work. You need to track down where those options are coming from in your kit/build selection. We don't know where your arguments like /W3 are specified. If you don't have a CMakeLists.txt then maybe you are using qmake and your project has a .pro file instead?

            S Offline
            S Offline
            Sikander Rafiq
            wrote on last edited by
            #5

            Hi @JonB
            Thanks for your comments. Yes we are using qmake and our project has .pro file. I have use Micorsoft Visual C++ Build Tools (x64) and then all those build errors goes away and build successfully, though now getting linker error(i.e. LINK : fatal error LNK1158: cannot run 'rc.exe').
            Pls see screenshot attached.
            Thank you so much all for your kind cooperation.
            linker-error.jpg

            JonBJ 1 Reply Last reply
            0
            • S Sikander Rafiq

              Hi @JonB
              Thanks for your comments. Yes we are using qmake and our project has .pro file. I have use Micorsoft Visual C++ Build Tools (x64) and then all those build errors goes away and build successfully, though now getting linker error(i.e. LINK : fatal error LNK1158: cannot run 'rc.exe').
              Pls see screenshot attached.
              Thank you so much all for your kind cooperation.
              linker-error.jpg

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

              @Sikander-Rafiq
              OK, you have now changed from MinGW to MSVC and that seems to suit you better.

              I suggest you Google for error link 1158 rc for the various possible solutions to why LINK cannot find rc to run.

              S 1 Reply Last reply
              0
              • JonBJ JonB

                @Sikander-Rafiq
                OK, you have now changed from MinGW to MSVC and that seems to suit you better.

                I suggest you Google for error link 1158 rc for the various possible solutions to why LINK cannot find rc to run.

                S Offline
                S Offline
                Sikander Rafiq
                wrote on last edited by
                #7

                @JonB
                yes it is also resolved by adding C:\Program Files (x86)\Windows Kits\8.1\bin\x64 to system's path.

                S 1 Reply Last reply
                1
                • S Sikander Rafiq

                  @JonB
                  yes it is also resolved by adding C:\Program Files (x86)\Windows Kits\8.1\bin\x64 to system's path.

                  S Offline
                  S Offline
                  Sikander Rafiq
                  wrote on last edited by
                  #8

                  I am able to run my app through code. Thank you so much All. Special thanks to @Christian-Ehrlicher. Great help!.

                  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