Closed huarkiou closed 2 years ago
Can you please run command vcpkg install PORT_NAME --debug
then commit the output?
Thanks.
PS C:\Users\huarkiou> vcpkg install intel-mkl --debug
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'manifests' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] BuiltinRegistry initialized with: ""
[DEBUG] Using vcpkg-root: D:\mysdk\vcpkg
[DEBUG] Using installed-root: D:\mysdk\vcpkg\installed
[DEBUG] BuiltinRegistry initialized with: ""
[DEBUG] Using buildtrees-root: D:\mysdk\vcpkg\buildtrees
[DEBUG] Using downloads-root: D:\mysdk\vcpkg\downloads
[DEBUG] Using packages-root: D:\mysdk\vcpkg\packages
[DEBUG] Using scripts-root: D:\mysdk\vcpkg\scripts
[DEBUG] Using ports-root: D:\mysdk\vcpkg\ports
[DEBUG] Using versions-root: D:\mysdk\vcpkg\versions
[DEBUG] Default binary cache path is: C:\Users\huarkiou\AppData\Local\vcpkg\archives
Computing installation plan...
[DEBUG] Found path: D:\mysdk\CMake\bin\cmake.exe
[DEBUG] CreateProcessW("D:\mysdk\vcpkg\downloads\tools\cmake-3.19.2-windows\cmake-3.19.2-win32-x86\bin\cmake.exe" --version)
[DEBUG] cmd_execute_and_stream_data() returned 0 after 88092 us
[DEBUG] CreateProcessW("D:\mysdk\vcpkg\downloads\tools\cmake-3.19.2-windows\cmake-3.19.2-win32-x86\bin\cmake.exe" -DVCPKG_ROOT_DIR=D:/mysdk/vcpkg -DPACKAGES_DIR=D:/mysdk/vcpkg/packages -DBUILDTREES_DIR=D:/mysdk/vcpkg/buildtrees -D_VCPKG_INSTALLED_DIR=D:/mysdk/vcpkg/installed -DDOWNLOADS=D:/mysdk/vcpkg/downloads -DVCPKG_MANIFEST_INSTALL=OFF -P "D:\mysdk\vcpkg\buildtrees\0.vcpkg_tags.cmake")
[DEBUG] cmd_execute_and_stream_data() returned 0 after 74249 us
The following packages will be built and installed:
intel-mkl[core]:x64-windows -> 2020.0.0
[DEBUG] Could not locate a complete Visual Studio instance
[DEBUG] The following paths were examined:
No suitable Visual Studio instances were found
[DEBUG] C:\A\1\70\s\src\vcpkg\vcpkgpaths.cpp(1033)
[DEBUG] Exiting after 513579 us (500202 us)
Ok.The reason is that my visual studio 2019 is not installed in %ProgramFiles(x86)%.
We'll have a discuss with it.
cc @strega-nil, should we handle this situation?
Hello I have the same issue like you, I've installed VScode on my Windows 10 before but I don't know why the problem is about VS. Can anybody help me? `C:\Users\dell\vcpkg>vcpkg install libsodium Computing installation plan... The following packages will be built and installed: libsodium[core]:x86-windows -> 1.0.18#5
We need vswhere.exe in order to find visual studio installations; we could in theory download vswhere, however I don't think it's something we want to do right now... @ras0219 any opinions?
@raisinbl could you run vcpkg install libsodium --debug
?
Hello I have the same issue like you, I've installed VScode on my Windows 10 before but I don't know why the problem is about VS.
@raisinbl Do you really mean Visual Studio Code? That's a great editor, but unlike Visual studio, it doesn't come with any compilers etc.
@strega-nil-ms here's my vcpkg install libsodium --debug
:
`
C:\Users\dell\vcpkg>vcpkg install libsodium --debug
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'manifests' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] BuiltinRegistry initialized with: ""
[DEBUG] Using vcpkg-root: C:\Users\dell\vcpkg
[DEBUG] Using installed-root: C:\Users\dell\vcpkg\installed
[DEBUG] BuiltinRegistry initialized with: ""
[DEBUG] Using buildtrees-root: C:\Users\dell\vcpkg\buildtrees
[DEBUG] Using downloads-root: C:\Users\dell\vcpkg\downloads
[DEBUG] Using packages-root: C:\Users\dell\vcpkg\packages
[DEBUG] Using scripts-root: C:\Users\dell\vcpkg\scripts
[DEBUG] Using ports-root: C:\Users\dell\vcpkg\ports
[DEBUG] Using versions-root: C:\Users\dell\vcpkg\versions
[DEBUG] Default binary cache path is: C:\Users\dell\AppData\Local\vcpkg\archives
Computing installation plan...
[DEBUG] CreateProcessW("C:\Users\dell\vcpkg\downloads\tools\cmake-3.21.1-windows\cmake-3.21.1-windows-i386\bin\cmake.exe" --version)
[DEBUG] cmd_execute_and_stream_data() returned 0 after 73975 us
[DEBUG] CreateProcessW("C:\Users\dell\vcpkg\downloads\tools\cmake-3.21.1-windows\cmake-3.21.1-windows-i386\bin\cmake.exe" -DVCPKG_ROOT_DIR=C:/Users/dell/vcpkg -DPACKAGES_DIR=C:/Users/dell/vcpkg/packages -DBUILDTREES_DIR=C:/Users/dell/vcpkg/buildtrees -D_VCPKG_INSTALLED_DIR=C:/Users/dell/vcpkg/installed -DDOWNLOADS=C:/Users/dell/vcpkg/downloads -DVCPKG_MANIFEST_INSTALL=OFF -P "C:\Users\dell\vcpkg\buildtrees\0.vcpkg_tags.cmake")
[DEBUG] cmd_execute_and_stream_data() returned 0 after 41062 us
The following packages will be built and installed:
libsodium[core]:x86-windows -> 1.0.18#5
@dg0yt yeah I mean Visual Studio Code, but last night I try to install Visual Studio but nothing progress
@raisinbl Could you run
"C:\Program Files (x86)\Microsoft Visual Studio/Installer/vswhere.exe" -all -prerelease -legacy -products * -format xml
in a cmd prompt?
@strega-nil-ms My cmd prompt:
C:\Users\dell>"C:\Program Files (x86)\Microsoft Visual Studio/Installer/vswhere.exe" -all -prerelease -legacy -products * -format xml
<?xml version="1.0"?>
<instances>
<instance>
<instanceId>2a6eb5b4</instanceId>
<installDate>2021-10-06T15:32:42Z</installDate>
<installationName>VisualStudio/16.11.4+31727.386</installationName>
<installationPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community</installationPath>
<installationVersion>16.11.31727.386</installationVersion>
<productId>Microsoft.VisualStudio.Product.Community</productId>
<productPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe</productPath>
<state>4294967295</state>
<isComplete>1</isComplete>
<isLaunchable>1</isLaunchable>
<isPrerelease>0</isPrerelease>
<isRebootRequired>0</isRebootRequired>
<displayName>Visual Studio Community 2019</displayName>
<description>Powerful IDE, free for students, open-source contributors, and individuals</description>
<channelId>VisualStudio.16.Release</channelId>
<channelUri>https://aka.ms/vs/16/release/channel</channelUri>
<enginePath>C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service</enginePath>
<releaseNotes>https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-v16.11#16.11.4</releaseNotes>
<thirdPartyNotices>https://go.microsoft.com/fwlink/?LinkId=660909</thirdPartyNotices>
<updateDate>2021-10-06T15:32:42.3770768Z</updateDate>
<catalog>
<buildBranch>d16.11</buildBranch>
<buildVersion>16.11.31727.386</buildVersion>
<id>VisualStudio/16.11.4+31727.386</id>
<localBuild>build-lab</localBuild>
<manifestName>VisualStudio</manifestName>
<manifestType>installer</manifestType>
<productDisplayVersion>16.11.4</productDisplayVersion>
<productLine>Dev16</productLine>
<productLineVersion>2019</productLineVersion>
<productMilestone>RTW</productMilestone>
<productMilestoneIsPreRelease>False</productMilestoneIsPreRelease>
<productName>Visual Studio</productName>
<productPatchVersion>4</productPatchVersion>
<productPreReleaseMilestoneSuffix>1.0</productPreReleaseMilestoneSuffix>
<productSemanticVersion>16.11.4+31727.386</productSemanticVersion>
<requiredEngineVersion>2.11.40.25675</requiredEngineVersion>
</catalog>
<properties>
<campaignId>2011</campaignId>
<channelManifestId>VisualStudio.16.Release/16.11.4+31727.386</channelManifestId>
<nickname></nickname>
<setupEngineFilePath>C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe</setupEngineFilePath>
</properties>
</instance>
</instances>
Ping @strega-nil-ms for response.
I'm so sorry, I missed this because I went out of office for a month; @Huarkiou if you're still around, can you run "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Auxiliary\Build\vcvarsall.bat"
, and then run cl
?
@Huarkiou ,Does this problem still exist? could you try @strega-nil-ms 's suggestion?
Please check the Visual Studio components in https://github.com/microsoft/vcpkg-tool/pull/314, or repair your Visual Studio using Visual Studio Installer.
We haven't been able to repro this; if more information comes up, or this issue appears again, please reopen.
Problem :
When I use command "vcpkg install" to install packages, it comes like
There are issues about this problem and the solution is to install VS2019's English language pack.But I have already installed this pack.Even if I reinstall VS2019, it still complains.I don't know how to solve this problem.
Dev Environment