Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Unable to use msvc in projects
QtWS25 Last Chance

Unable to use msvc in projects

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
msvc x64msvc2019problemcompiler error
11 Posts 5 Posters 786 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.
  • J Offline
    J Offline
    jsulm
    Lifetime Qt Champion
    wrote on 24 Sept 2024, 07:03 last edited by
    #2

    Put the mouse cursor over the warning icon - you should see a popup with the warning. What does it say?
    Does your project build and run?

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

    B 1 Reply Last reply 24 Sept 2024, 07:12
    0
    • J jsulm
      24 Sept 2024, 07:03

      Put the mouse cursor over the warning icon - you should see a popup with the warning. What does it say?
      Does your project build and run?

      B Offline
      B Offline
      BILAL KHAN 34
      wrote on 24 Sept 2024, 07:12 last edited by
      #3

      @jsulm no project does not build and run.
      39bf69e6-5018-4cd3-b865-5cb480f9c1c4-image.png

      J 1 Reply Last reply 24 Sept 2024, 07:17
      0
      • B BILAL KHAN 34
        24 Sept 2024, 07:12

        @jsulm no project does not build and run.
        39bf69e6-5018-4cd3-b865-5cb480f9c1c4-image.png

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 24 Sept 2024, 07:17 last edited by
        #4

        @BILAL-KHAN-34 So, what do you see in "Projects->Build"?

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

        B 1 Reply Last reply 24 Sept 2024, 07:34
        0
        • C Christian Ehrlicher moved this topic from General and Desktop on 24 Sept 2024, 07:20
        • B BILAL KHAN 34
          24 Sept 2024, 07:01

          when i use msvc in my qt projects a warning sign shows on my project folder even i configure the msvc properly. Can anyone help me solve this problem. I am a bigner.
          f34ff7a1-424a-403e-b1f1-b0399c8b7fbc-image.png
          7fa7a6e6-fbe7-46ab-96ae-aa8aee8cf999-image.png

          J Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 24 Sept 2024, 07:33 last edited by
          #5

          @BILAL-KHAN-34 did you install the mcvc compiler and other necessary c++ tools via the visual studio installer ?

          3rd Parties, like the QtCompany, are not allowed to distribute it themself. It has to go through Microsoft.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          0
          • J jsulm
            24 Sept 2024, 07:17

            @BILAL-KHAN-34 So, what do you see in "Projects->Build"?

            B Offline
            B Offline
            BILAL KHAN 34
            wrote on 24 Sept 2024, 07:34 last edited by
            #6

            @jsulm its just disabled.

            J J 2 Replies Last reply 24 Sept 2024, 07:38
            0
            • B BILAL KHAN 34
              24 Sept 2024, 07:34

              @jsulm its just disabled.

              J Offline
              J Offline
              JonB
              wrote on 24 Sept 2024, 07:38 last edited by
              #7

              @BILAL-KHAN-34
              I can see the number 3 on the Issues tab....

              1 Reply Last reply
              0
              • B BILAL KHAN 34
                24 Sept 2024, 07:34

                @jsulm its just disabled.

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 24 Sept 2024, 07:42 last edited by
                #8

                @BILAL-KHAN-34 Please check what @J-Hilk wrote

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

                B 1 Reply Last reply 24 Sept 2024, 07:46
                0
                • J jsulm
                  24 Sept 2024, 07:42

                  @BILAL-KHAN-34 Please check what @J-Hilk wrote

                  B Offline
                  B Offline
                  BILAL KHAN 34
                  wrote on 24 Sept 2024, 07:46 last edited by
                  #9

                  @jsulm <html><body><code style="white-space:pre;font-family:Source Code Pro">
                  "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe"

                  is not able to compile a simple test program.

                  It fails with the following output:

                  Change Dir: 'D:/QT Course/Projects/test9/build/Desktop_Qt_6_7_2_MSVC2019_64bit-Debug/CMakeFiles/CMakeScratch/TryCompile-5vg4eh'

                  Run Build Command(s): C:/Qt/Tools/Ninja/ninja.exe -v cmTC_2b5db
                  [1/2] C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1441~1.341\bin\HostX64\x64\cl.exe /nologo /TP -DQT_QML_DEBUG /DWIN32 /D_WINDOWS /GR /EHsc /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /FoCMakeFiles\cmTC_2b5db.dir\testCXXCompiler.cxx.obj /FdCMakeFiles\cmTC_2b5db.dir\ /FS -c "D:\QT Course\Projects\test9\build\Desktop_Qt_6_7_2_MSVC2019_64bit-Debug\CMakeFiles\CMakeScratch\TryCompile-5vg4eh\testCXXCompiler.cxx"
                  [2/2] C:\Windows\system32\cmd.exe /C "cd . && C:\Qt\Tools\CMake_64\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_2b5db.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_2b5db.dir\testCXXCompiler.cxx.obj /out:cmTC_2b5db.exe /implib:cmTC_2b5db.lib /pdb:cmTC_2b5db.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
                  FAILED: cmTC_2b5db.exe
                  C:\Windows\system32\cmd.exe /C "cd . && C:\Qt\Tools\CMake_64\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_2b5db.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_2b5db.dir\testCXXCompiler.cxx.obj /out:cmTC_2b5db.exe /implib:cmTC_2b5db.lib /pdb:cmTC_2b5db.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
                  RC Pass 1: command "rc /fo CMakeFiles\cmTC_2b5db.dir/manifest.res CMakeFiles\cmTC_2b5db.dir/manifest.rc" failed (exit code 0) with the following output:
                  no such file or directory
                  ninja: build stopped: subcommand failed.</code></body></html>

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    cristian-adam
                    wrote on 24 Sept 2024, 09:21 last edited by cristian-adam
                    #10

                    It looks like you updated your Visual C++ installation and the paths to the compilers are no longer valid.

                    (exit code 0) with the following output:
                    no such file or directory

                    I usually do the following:

                    1. Go to Qt Creator > Preferences > Kits > Compilers
                    2. Click on Remove All
                    3. Click on Re-detect
                    4. Restart Qt Creator

                    Then reconfigure my project with a clean build, or having clicked on Clear CMake Configuration.

                    1 Reply Last reply
                    2
                    • B Offline
                      B Offline
                      BILAL KHAN 34
                      wrote on 24 Sept 2024, 10:08 last edited by
                      #11

                      Thanks to everyone the problem has solved and all is done. First I was thinking that downloading the msvc from qt maintanance tool is enogh but it was not. I have to download the microsoft visual studio and set it up for qt.

                      1 Reply Last reply
                      0
                      • B BILAL KHAN 34 has marked this topic as solved on 24 Sept 2024, 10:10

                      11/11

                      24 Sept 2024, 10:08

                      • Login

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