Closed snaiperskaya96 closed 3 years ago
I think you're hit by this problem: https://gitlab.kitware.com/cmake/cmake/issues/16849
This is judging purely from the RC Pass 1 failed to run.
line in CMakeError.log.
But I don't understand the reasoning in the CMake issue.
Anyway, can you check if you have CMake in your PATH?
From the Cygwin shell, try where.exe rc.exe
...
On my system, I get:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\RC.Exe
C:\Program Files (x86)\Windows Kits\10\bin\x86\rc.exe
Also, since this is win32-static
(not win64-static
) it's trying to use the XP toolset, which uses the Win 7.1A SDK. We explicitly include that in PATH. As you can see from my PATH, it gets rc.exe from the 7.1A SDK.
If you DO have rc.exe in your PATH, please try the VERBOSE env var that is suggested in the CMake issue. Perhaps that will tell us something new.
Thanks.
Thanks for the answer mkrautz. Looks like i don't have RC.exe in my path, will try to install the win7.1a sdk and will be back to you.
Hm, the Win7.1A SDK should be installed by Visual Studio 2015. It's called Windows XP compatibility (or something like that) in the installer. So don't install it manually (I don't think it's available standalone) -- do it via the VS2015 installer.
For now i've got it from here https://www.microsoft.com/en-us/download/confirmation.aspx?id=8279. It looks like RC.exe is in there but by default the installer points to "Program Files" rather than "Program Files(x86)" which makes me think it's the 32bit version (might be okay for the win32 build i guess). Tomorrow I will check if it works this way otherwise i can just, as you said, install it via VS2015.
The 7.1A SDK shipped with VS2015 is, to my knowledge, not equivalent to that one. It's modified to work with newer toolchains, etc.
I am also not sure that it's actually "7.1a"? EDIT: What I mean to say here is: I am not sure the one you downloaded is 7.1a. I think it might just be 7.1? (or similar)
Anyway. if you build win64-static instead, it should not rely on the XP-compatible SDK. Then it'll use the Windows 10 SDK.
Okay, good news, i made it, thank you. Win32 build:
Win64 build:
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe" -f Makefile.Release
Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.
"C:\Program Files (x86)\Windows Kits\10\\bin\x64\rc.exe" -DWIN32 -DWIN64 -DUSE_BUILDENV -DRESTRICT= -DUSE_MINHOOK -DNDEBUG -D_WINDLL -fo release\mumble_ol.res mumble_ol.rc
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Windows Kits\10\\bin\x64\rc.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
Edit: Update on the error above
Actually that path was empty, it doesn't have any .exe into there, i made a symlink (mklink /J "C:\Program Files (x86)\Windows Kits\10\bin\x64" "C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64"
) and now it compiles correctly without errors
Hi, just for more info - I'm trying to set up a Mumble env on Windows using the instructions in win32-static/README, I found the error (in the original post) was related to this:
https://stackoverflow.com/questions/43847542/rc-exe-no-longer-found-in-vs-2015-command-prompt
I went back and feeling like this was a setup issue I re-ran the VS2015 Update 3 setup and told it to add
Windows and Web Development -> Universal Windows App Development Tools -> Tools (1.4.1) and Windows 10 SDK (10.0.14393)
Doing this fixed this it for me.
So the issue was a package not having been installed.
Our docs should include this information if it is missing, but as we migrated away in 1.4, have new docs for it, and this ticket has been stale for quite a while, I am closing it.
It just fails when it gets to protobuf (so all the other dependencies just work) while building for win32-static. I haven't really found anything around about the issue.
I'm running win10 64x with the latest(-ish) creator update (1709).
I have both, VS2017 and VS2015 (update 3) installed. I firstly had VS2017 installed, then installed VS2015 to build mumble. Not sure if this may cause any trouble
CMake logs attached CMakeError.log CMakeOutput.log