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. LNK1158: cannot run 'rc.exe'
Forum Updated to NodeBB v4.3 + New Features

LNK1158: cannot run 'rc.exe'

Scheduled Pinned Locked Moved Solved Installation and Deployment
16 Posts 9 Posters 53.0k 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.
  • D Offline
    D Offline
    D8vLoper
    wrote on last edited by
    #7

    I know this is old but the real reason for the missing rc.exe is a bug in Microsoft SDKs path installation.
    Here is a "cleaner" fix : https://stackoverflow.com/questions/43847542/rc-exe-no-longer-found-in-vs-2015-command-prompt

    1 Reply Last reply
    5
    • K Offline
      K Offline
      kamalberahal
      wrote on last edited by
      #8

      Hello everyone,

      I have the same issue, but I can't find the Build Environment settings in Qt5, can you show me where to find it?
      Thanks in advance

      jsulmJ 1 Reply Last reply
      0
      • K kamalberahal

        Hello everyone,

        I have the same issue, but I can't find the Build Environment settings in Qt5, can you show me where to find it?
        Thanks in advance

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

        @kamalberahal You mean in QtCreator not Qt5 I guess?
        On the left side click on "Projects", select the Kit you're using and go to Build.

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

        1 Reply Last reply
        3
        • K Offline
          K Offline
          kamalberahal
          wrote on last edited by
          #10

          Yes sorry that's what I meant. Thanks a lot, I have found ir

          R 1 Reply Last reply
          2
          • S Offline
            S Offline
            stoplight
            wrote on last edited by
            #11

            Ya, for me it was already in my path. My problem was that I had VS2017 installed, but the qt is by default meant to build for the 2015 version. So just change the build options to the VS2017x64 version.

            jsulmJ 1 Reply Last reply
            0
            • S stoplight

              Ya, for me it was already in my path. My problem was that I had VS2017 installed, but the qt is by default meant to build for the 2015 version. So just change the build options to the VS2017x64 version.

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

              @stoplight said in LNK1158: cannot run 'rc.exe':

              but the qt is by default meant to build for the 2015 version

              Newer Qt versions are available for VS2017 as well.

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

              1 Reply Last reply
              1
              • K kamalberahal

                Yes sorry that's what I meant. Thanks a lot, I have found ir

                R Offline
                R Offline
                Ripegas
                wrote on last edited by
                #13
                This post is deleted!
                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  Ripegas
                  wrote on last edited by Ripegas
                  #14

                  I cannot find Build Environment settings , can you send me photo please, where I can find it
                  Thank you

                  jsulmJ 1 Reply Last reply
                  0
                  • R Ripegas

                    I cannot find Build Environment settings , can you send me photo please, where I can find it
                    Thank you

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

                    @Ripegas Open your project in QtCreator. On the left side click on "Projects", then under Build & Run" select the Kit you're using and then "Build". Now, at the bottom you will see "Build Environment"...

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

                    R 1 Reply Last reply
                    2
                    • jsulmJ jsulm

                      @Ripegas Open your project in QtCreator. On the left side click on "Projects", then under Build & Run" select the Kit you're using and then "Build". Now, at the bottom you will see "Build Environment"...

                      R Offline
                      R Offline
                      Ripegas
                      wrote on last edited by
                      #16

                      @jsulm Thank you, I have found it

                      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