-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install any library that requires build #8096
Comments
RC Pass 1 command "rc /fo CMakeFiles\cmTC_04175.dir/manifest.res CMakeFiles\cmTC_04175.dir/manifest.rc" failed (exit code 0) with the following output:
REINSTALL WinSDK |
I have those executables in these loctions
Should I install a specific version on WinSDK? which one? Update: |
install cmake 3.15.1 ?, |
I tried 3.15.3 didn't help. Where can I get 3.15.1? |
vcpkg env --debug --triplet x64-windows-static where mt where rc ? log |
** Visual Studio 2017 Developer Command Prompt v15.9.15 [vcvarsall.bat] Environment initialized for: 'x86_x64'
|
rename - C:\Program Files (x86)\MKS Toolkit\mksnt\mt.exe |
renamed mt to z_mt. Still fails |
where lib.exe where link.exe another thing that I do not like, x86 is ahead of x64, perhaps because of this error
should be the other way around |
and, cmake-3.15.3-win64-x64 should use Hostx64, you Hostx86 14.16.27023/bin/ Hostx86 /x64/cl.exe -- broken Try to use full compatibility otherwise I don't see any reason for the errors, or maybe no component has been installed |
Fixed the order.. still .
Can I get an older version of vcpkg? |
@bangusi, can you try to build cxxopts:x64-windows-static with vcpkg latest source on your worked machine? From your log, it seems something wrong in your VS and windows SDK setting up. I can't repro your issue. please reinstall VS and install windows sdk via vs installer. |
@PhoebeHui It turns out I did not have cxxopts on the other machine and just installed it now. This is the log Total elapsed time: 14.31 s The package cxxopts:x64-windows-static provides CMake targets:
PS D:\vcpkg>` Config log is this:
As for re-install, I have done this mutliple times so far. No luck |
@bangusi, the above logs show everything worked well on your worked machine, please compare the environment variable in your 2 machines:
|
|
@bangusi, you can open x64 Native tools Command prompt, and execute 'set' command, and all VS and windows sdk related variable will be list, you can check if they are setting correctly. This issue should relate to vs and vs sdk installation. |
@bangusi, I get a chance to install VS Express 2017 for Windows Desktop on win10 and try to repro this issue, however, I can't repro your issue, everything build successfully for me. Feel free tor reopen this issue if you still expect any help from us. Here is my environment variable: ** Visual Studio 2017 Developer Command Prompt v15.9.17 [vcvarsall.bat] Environment initialized for: 'x86_x64' C:\vcpkg>where rc.exe C:\vcpkg>where mt.exe C:\vcpkg>where cl.exe C:\vcpkg>where link.exe |
Host Environment
Vcpkg package management program version 2019.08.27-nohash
OS: Windows 10
Compiler: VS Express 2017 for Windows Desktop
( Also tried with Commutiny Edition - same result )
Cmake: cmake-3.15.3-win64-x64 ( tried 3.14 -- same result )
(Note I have two other Windows 10 machines where vcpkg behaves as expected )
To Reproduce
Steps to reproduce the behavior:
./vcpkg install cxxopts:x64-windows-static
(Note this just one of the libraries that I tried to install and failed. Others include fmt, boost-filesystem).
Failure logs
-- Configuring x64-windows-static
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
Command failed: ninja -v
Working Directory: ..\vcpkg/buildtrees/cxxopts/x64-windows-static-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
..\vcpkg\buildtrees\cxxopts\config-x64-windows-static-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:296 (vcpkg_execute_required_process)
ports/cxxopts/portfile.cmake:12 (vcpkg_configure_cmake)
scripts/ports.cmake:85 (include)
Error: Building package cxxopts:x64-windows-static failed with: BUILD_FAILED
config-x64-windows-static-out.log
Additional context
Installed VS 2017, Community Edition .. didn't work
Tried different versions of Cmake, -- none worked
Run Powershell with and without Admin rights
Forced use of different versions of WIndows SDK
The text was updated successfully, but these errors were encountered: