Skip to content
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

Upgrading to VS2019, vcpkg fails with multiple error #1269

Open
ki82 opened this issue Nov 5, 2019 · 2 comments
Open

Upgrading to VS2019, vcpkg fails with multiple error #1269

ki82 opened this issue Nov 5, 2019 · 2 comments

Comments

@ki82
Copy link

@ki82 ki82 commented Nov 5, 2019

We updated from VS2017 to VS2019 and when rebuilding cpprestsdk it fails when trying to build vcpkg, see log below.

I think that we have installed "Visual Studio with the Desktop C++ workload and the Windows SDK for Desktop C++." we can successfully build many other projects with VS2019 on that machine.

We tried building both 2.10.14 and 2.10.13 with VS2019 and get the same error.

Any ideas?

Should cpprestsdk work fully with VS2019?

[11:26:40][:vcpkgInstallDeps] Starting process 'command 'cmd''. Working directory: C:\Teamcity\2\work\70788543fabe9b93\cpprestsdk\vcpkg Command: cmd /c call "%vs160comntools%\VsDevCmd.bat" & bootstrap-vcpkg.bat & vcpkg install --triplet x64-windows boost-system zlib boost-date-time boost-regex websocketpp
[11:26:40][:vcpkgInstallDeps] Successfully started process 'command 'cmd''
[11:26:40][:vcpkgInstallDeps] **********************************************************************
[11:26:40][:vcpkgInstallDeps] ** Visual Studio 2019 Developer Command Prompt v16.3.7
[11:26:40][:vcpkgInstallDeps] ** Copyright (c) 2019 Microsoft Corporation
[11:26:40][:vcpkgInstallDeps] **********************************************************************
[11:26:40][:vcpkgInstallDeps] 
[11:26:40][:vcpkgInstallDeps] Building vcpkg.exe ...
[11:26:40][:vcpkgInstallDeps] 
[11:26:40][:vcpkgInstallDeps]   pch.cpp
[11:26:42][:vcpkgInstallDeps]   archives.cpp
[11:26:42][:vcpkgInstallDeps]   checks.cpp
[11:26:42][:vcpkgInstallDeps]   chrono.cpp
[11:26:42][:vcpkgInstallDeps]   cofffilereader.cpp
[11:26:42][:vcpkgInstallDeps]   downloads.cpp
[11:26:42][:vcpkgInstallDeps]   enums.cpp
[11:26:42][:vcpkgInstallDeps]   files.cpp
[11:26:42][:vcpkgInstallDeps]   hash.cpp
[11:26:42][:vcpkgInstallDeps]   machinetype.cpp
[11:26:42][:vcpkgInstallDeps]   strings.cpp
[11:26:42][:vcpkgInstallDeps]   stringview.cpp
[11:26:42][:vcpkgInstallDeps]   system.cpp
[11:26:42][:vcpkgInstallDeps]   system.print.cpp
[11:26:42][:vcpkgInstallDeps]   binaryparagraph.cpp
[11:26:42][:vcpkgInstallDeps]   build.cpp
[11:26:42][:vcpkgInstallDeps]   commands.autocomplete.cpp
[11:26:42][:vcpkgInstallDeps]   commands.buildexternal.cpp
[11:26:42][:vcpkgInstallDeps]   commands.cache.cpp
[11:26:42][:vcpkgInstallDeps]   commands.ci.cpp
[11:26:42][:vcpkgInstallDeps]   commands.contact.cpp
[11:26:42][:vcpkgInstallDeps]   commands.cpp
[11:26:42][:vcpkgInstallDeps]   commands.create.cpp
[11:26:42][:vcpkgInstallDeps]   commands.dependinfo.cpp
[11:26:42][:vcpkgInstallDeps]   commands.edit.cpp
[11:26:42][:vcpkgInstallDeps]   commands.env.cpp
[11:26:42][:vcpkgInstallDeps]   commands.exportifw.cpp
[11:26:42][:vcpkgInstallDeps]   commands.import.cpp
[11:26:42][:vcpkgInstallDeps]   commands.integrate.cpp
[11:26:42][:vcpkgInstallDeps]   commands.list.cpp
[11:26:42][:vcpkgInstallDeps]   commands.owns.cpp
[11:26:42][:vcpkgInstallDeps]   commands.portsdiff.cpp
[11:26:42][:vcpkgInstallDeps]   commands.search.cpp
[11:26:42][:vcpkgInstallDeps] C:\Teamcity\2\work\70788543fabe9b93\cpprestsdk\vcpkg\toolsrc\include\vcpkg\base\files.h(15,18): error C2039: 'copy_options': is not a member of 'std::experimental::filesystem' (compiling source file ..\src\vcpkg\base\hash.cpp) [C:\Teamcity\2\work\70788543fabe9b93\cpprestsdk\vcpkg\toolsrc\vcpkglib\vcpkglib.vcxproj]
[11:26:42][:vcpkgInstallDeps] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\fstream(39): message : see declaration of 'std::experimental::filesystem' (compiling source file ..\src\vcpkg\base\hash.cpp) [C:\Teamcity\2\work\70788543fabe9b93\cpprestsdk\vcpkg\toolsrc\vcpkglib\vcpkglib.vcxproj]
[11:26:42][:vcpkgInstallDeps] C:\Teamcity\2\work\70788543fabe9b93\cpprestsdk\vcpkg\toolsrc\include\vcpkg\base\files.h(15,30): error C2873: 'copy_options': symbol cannot be used in a using-declaration (compiling source file ..\src\vcpkg\base\hash.cpp) [C:\Teamcity\2\work\70788543fabe9b93\cpprestsdk\vcpkg\toolsrc\vcpkglib\vcpkglib.vcxproj]

...........(so many errors)

C:\Teamcity\2\work\70788543fabe9b93\cpprestsdk\vcpkg\scripts\bootstrap.ps1 : Building vcpkg.exe failed. Please ensure you have installed Visual Studio with the Desktop C++ workload and the Windows SDK for Desktop C++.
@ki82
Copy link
Author

@ki82 ki82 commented Nov 19, 2019

Updating vspkg to 2019.10 solved these errors.

@JackBoosY
Copy link

@JackBoosY JackBoosY commented Jun 12, 2020

This function has been removed and fixed in the latest Visual Studio 2019.
Please update your Visual Studio.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.