vcpkg编译中各种错误

目录

 

1.安装

2.错误

2.1 出现boost-build安装失败。

2.2 下载Qt5时:building package atlmfc:x64-windows failed 

2.3 Value was null


1.安装

基本安装参见https://blog.csdn.net/cjmqas/article/details/79282847,

https://blog.csdn.net/zhangzq86/article/details/80442528

下载vcpkg,https://github.com/microsoft/vcpkg。

点击bootstrap-vcpkg.bat

等待,执行完后出现vcpkg.exe

然后就可以开始下载各种库(哭)了。

先是下载的boost

2.错误

2.1 出现boost-build安装失败。

按照网上的经验 https://blog.csdn.net/ufolr/article/details/78660700,http://www.bubuko.com/infodetail-2238260.html

先将vs的语言改成英文,再加了一个cmake的组件(https://blog.csdn.net/ufolr/article/details/78660700里面有提到),然后重新下载vcpkg,下载成功。

然后下载pcl的时候freetype库又报错,显示连接不上,解决办法,自己去网站上下载对应的压缩包(在D:\vcpkg\vcpkg-master\ports\freetype文件夹中的portfile.cmake中有告诉你下载的网址,照着去下载),然后放在D:\vcpkg\vcpkg-master\downloads里面,在重新下载这个库就好啦,这是会告诉你这个库已经下载好了,只需要配置环境就可以啦。

等我继续找到问题再来,希望不要来了

2.2 下载Qt5时:building package atlmfc:x64-windows failed 

2018.7.6

时隔15个小时,我胡汉三又回来了

等了两个小时,安装qt5时报错,如下

vcpkg编译中各种错误_第1张图片

大概的意思就是你的VS没有安装ATL或MFC的组件,然后打开VS installer,点击修改一看,果然,只安装了ATL没有MFC,然后勾选,安装,重新下载qt5咯(遇到的错误多了,自然就成了改错高手,然而浪费了大把大把出去浪的时间)

2.3 Value was null

或者是CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message): Command failed: ninja -v Working Directory: D:/OpenSource/vcpkg-master/buildtrees/sqlite3/x86-uwp-rel/vcpkg-parallel-configure Error code: 1 See logs for more information: D:\OpenSource\vcpkg-master\buildtrees\sqlite3\config-x86-uwp-out.log Call Stack (most recent call first): scripts/cmake/vcpkg_configure_cmake.cmake:297 (vcpkg_execute_required_process) ports/sqlite3/portfile.cmake:24 (vcpkg_configure_cmake) scripts/ports.cmake:90 (include) Error: Building package sqlite3:x86-uwp failed with: BUILD_FAILED Please ensure you're using the latest portfiles with `.\vcpkg update`, then submit an issue at https://github.com/Microsoft/vcpkg/issues including:

感谢评论区大哥的补充!

解决方案:可以通过添加一个VS的英文语言包,启动切换到英文版,就解决了

果然群众的力量是伟大的!

你可能感兴趣的:(vcpkg)