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. LNK1158: cannot run 'rc.exe'

LNK1158: cannot run 'rc.exe'

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.2k 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.
  • V Offline
    V Offline
    viniltc
    wrote on last edited by
    #1

    Hi,

    I'm using qt 5.12.0, MSVC 2015 64 bit and Qt Creator 4.10.0-rc1. I now get the linker error

     LNK1158: cannot run 'rc.exe'
    

    This was not an issue a few months back and I have not changed anything to the project since then. IS there a workaround for this? Any suggestions are much appreciated.

    Thanks in advance

    JonBJ 1 Reply Last reply
    0
    • V viniltc

      Hi,

      I'm using qt 5.12.0, MSVC 2015 64 bit and Qt Creator 4.10.0-rc1. I now get the linker error

       LNK1158: cannot run 'rc.exe'
      

      This was not an issue a few months back and I have not changed anything to the project since then. IS there a workaround for this? Any suggestions are much appreciated.

      Thanks in advance

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

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

      LNK1158: cannot run 'rc.exe'

      There are many possibilities, including even this forum's https://forum.qt.io/topic/90839/lnk1158-cannot-run-rc-exe ?

      Start to have a hunt around, see where that rc.exe is, does it run (e.g. could have bad DLL dependencies), is it on your PATH, is it on whatever environment variables VS uses (vcvars.bat), how is it referenced from Creator kits, etc.? See if you can get back with some more of a clue.

      1 Reply Last reply
      3
      • V Offline
        V Offline
        viniltc
        wrote on last edited by
        #3

        Hi @JonB Thanks for your prompt response.
        I found rc.exe in the following path C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\arm64 and I just added this to the environment path.

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

        is it on whatever environment variables VS uses (vcvars.bat),.

        Do you mean to copy rc.exe to the following location?
        C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64

        Also, how do I make sure if rc.exe is in good shape? If I double click on it, I get the following error:

        1368eeee-4f37-4a79-a41b-44b23ea7fdf0-image.png

        Does that mean rc.exe is bad?

        mrjjM 1 Reply Last reply
        0
        • V viniltc

          Hi @JonB Thanks for your prompt response.
          I found rc.exe in the following path C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\arm64 and I just added this to the environment path.

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

          is it on whatever environment variables VS uses (vcvars.bat),.

          Do you mean to copy rc.exe to the following location?
          C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64

          Also, how do I make sure if rc.exe is in good shape? If I double click on it, I get the following error:

          1368eeee-4f37-4a79-a41b-44b23ea7fdf0-image.png

          Does that mean rc.exe is bad?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @viniltc

          Hi
          It seems you found an rc.exe for ARM which won't run on Windows.

          Look around for another that matches what you compile for. (64 bit windows maybe?)

          alt text

          1 Reply Last reply
          4
          • V Offline
            V Offline
            viniltc
            wrote on last edited by
            #5

            Hi @mrjj
            Thanks a lot !! that solved the issue :)

            I had to add: C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64 to the path

            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