Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. MSVC compiler doesn't work

MSVC compiler doesn't work

Scheduled Pinned Locked Moved Solved Installation and Deployment
14 Posts 3 Posters 2.1k Views 1 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.
  • I ijustwanttodocursach

    @jsulm Sure
    494806a7-3529-4ffc-8f4c-9b13d71fb07a-image.png

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

    @ijustwanttodocursach The output is still unreadable see line 4 from the bottom

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

    I 1 Reply Last reply
    0
    • jsulmJ jsulm

      @ijustwanttodocursach The output is still unreadable see line 4 from the bottom

      I Offline
      I Offline
      ijustwanttodocursach
      wrote on last edited by
      #5

      @jsulm I'm sorry. Here it is:
      fe5391d8-894e-458e-a2e6-d6b0998bdfb5-image.png

      jsulmJ 1 Reply Last reply
      0
      • I ijustwanttodocursach

        @jsulm I'm sorry. Here it is:
        fe5391d8-894e-458e-a2e6-d6b0998bdfb5-image.png

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

        @ijustwanttodocursach Looks like the resource file is not found (manifest.rc).

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

        I 1 Reply Last reply
        0
        • jsulmJ jsulm

          @ijustwanttodocursach Looks like the resource file is not found (manifest.rc).

          I Offline
          I Offline
          ijustwanttodocursach
          wrote on last edited by
          #7

          @jsulm How can I get it?

          jsulmJ 1 Reply Last reply
          0
          • I ijustwanttodocursach

            @jsulm How can I get it?

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

            @ijustwanttodocursach Don't know, I don't use MSVC. Maybe somebody else has an idea.
            Are you able to build a simple C++ application in Visual Studio?

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

            I 1 Reply Last reply
            0
            • jsulmJ jsulm

              @ijustwanttodocursach Don't know, I don't use MSVC. Maybe somebody else has an idea.
              Are you able to build a simple C++ application in Visual Studio?

              I Offline
              I Offline
              ijustwanttodocursach
              wrote on last edited by
              #9

              @jsulm yes, Visual Studio can compile

              1 Reply Last reply
              0
              • I ijustwanttodocursach

                Qt doesn't work with MSVC compiler. I have VS2022 and Qt6.7. When I try to compile a project it fails with this error: 44769552-f3ae-47dc-98e2-8a123a065bcc-image.png
                The kit settings: 3d7221f6-fc73-4b01-a8a4-a2c3277a322f-image.png
                Please help, I even reinstalled both VS 2022 and Qt and it still doesn't work.

                cristian-adamC Offline
                cristian-adamC Offline
                cristian-adam
                wrote on last edited by
                #10

                Try enabling Force UTF-8 MSVC compiler output for the Kit.

                And in order to have readable messages also in Preferences > Environment > Interface > Text coded for tools: select UTF-8.

                I 1 Reply Last reply
                0
                • cristian-adamC cristian-adam

                  Try enabling Force UTF-8 MSVC compiler output for the Kit.

                  And in order to have readable messages also in Preferences > Environment > Interface > Text coded for tools: select UTF-8.

                  I Offline
                  I Offline
                  ijustwanttodocursach
                  wrote on last edited by
                  #11

                  @cristian-adam Here are readable messages:
                  eb1ec9a5-c473-48fe-84d5-bf3675ffbf3a-image.png

                  cristian-adamC 1 Reply Last reply
                  0
                  • I ijustwanttodocursach

                    @cristian-adam Here are readable messages:
                    eb1ec9a5-c473-48fe-84d5-bf3675ffbf3a-image.png

                    cristian-adamC Offline
                    cristian-adamC Offline
                    cristian-adam
                    wrote on last edited by
                    #12

                    The part with --mt=CMAKE_MT-NOTFOUND is not good. It should be able to find the mt.exe executable.

                    From time to time Visual C++ compilers do go crazy (after a compiler update for example) and then I just go to Preferences > Kits > Compilers an click on Remove All and afterwards Re-detect.

                    And for good measure I restart Qt Creator.

                    This fixes my issues with Visual C++ compilers.

                    I 1 Reply Last reply
                    1
                    • cristian-adamC cristian-adam

                      The part with --mt=CMAKE_MT-NOTFOUND is not good. It should be able to find the mt.exe executable.

                      From time to time Visual C++ compilers do go crazy (after a compiler update for example) and then I just go to Preferences > Kits > Compilers an click on Remove All and afterwards Re-detect.

                      And for good measure I restart Qt Creator.

                      This fixes my issues with Visual C++ compilers.

                      I Offline
                      I Offline
                      ijustwanttodocursach
                      wrote on last edited by
                      #13

                      @cristian-adam I removed all the compilers, auto-detected them and restarted qt creator. Now there are new issues:
                      37ecd345-f900-4836-9435-257c8090926c-image.png
                      CmakeLists.txt file:
                      8c2eef57-351d-45fa-9f4e-502f197ad170-image.png

                      cristian-adamC 1 Reply Last reply
                      0
                      • I ijustwanttodocursach

                        @cristian-adam I removed all the compilers, auto-detected them and restarted qt creator. Now there are new issues:
                        37ecd345-f900-4836-9435-257c8090926c-image.png
                        CmakeLists.txt file:
                        8c2eef57-351d-45fa-9f4e-502f197ad170-image.png

                        cristian-adamC Offline
                        cristian-adamC Offline
                        cristian-adam
                        wrote on last edited by
                        #14

                        The MSVC compiler works 🎉

                        The QML issue is something else, also the error is not revealed. I can't say what's wrong with it.

                        1 Reply Last reply
                        0
                        • I ijustwanttodocursach has marked this topic as solved on

                        • Login

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