vcpkg 管理 PCL + VTK + Qt 开发三维点云可视化软件

使用 vcpkg 管理 PCL、VTK、Qt 进行三维点云可视化开发是 Windows 平台推荐的方案。核心要点 :PCL 的 visualization 模块默认不编译,必须显式指定 [vtk][visualization] 才能使用 PCLVisualizer;同时 VTK 需要与 Qt 一起编译才能获得 QVTKWidget 控件

已经提前下载和安装好了QT D:\Qt\6.10.3

为了便于访问git可以修改hosts文件

C:\Windows\System32\drivers\etc\hosts

在文件后面加上,也可以问大模型

bash 复制代码
# GitHub Hosts Start
140.82.113.4 github.com
140.82.113.4 www.github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.109.153 raw.githubusercontent.com
185.199.110.153 camo.githubusercontent.com
# GitHub Hosts End
bash 复制代码
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
bash 复制代码
# 先下载源码(避免网络问题中断编译)
.\vcpkg install pcl[vtk,qt,visualization]:x64-windows --only-downloads

# 正式安装(x64 平台)
.\vcpkg install pcl[vtk,qt,visualization]:x64-windows

这里主要是记录一下出现的一个问题

bash 复制代码
Downloading https://raw.githubusercontent.com/boostorg/boost/refs/tags/boost-1.91.0/LICENSE_1_0.txt -> boost-1.91.0-LICENSE_1_0.txt
error: curl operation failed with response code 404.
error: Not a transient network error, won't retry download from https://raw.githubusercontent.com/boostorg/boost/refs/tags/boost-1.91.0/LICENSE_1_0.txt
note: If you are using a proxy, please ensure your proxy settings are correct.
Possible causes are:
1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable to `https://address:port`.
This is not correct, because `https://` prefix claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr, etc...) is an HTTP proxy.
Try setting `http://address:port` to both HTTP_PROXY and HTTPS_PROXY instead.
2. If you are using Windows, vcpkg will automatically use your Windows IE Proxy Settings set by your proxy software. See: https://github.com/microsoft/vcpkg-tool/pull/77
The value set by your proxy might be wrong, or have same `https://` prefix issue.
3. Your proxy's remote server is out of service.
If you believe this is not a temporary download server failure and vcpkg needs to be changed to download this file from a different location, please submit an issue to https://github.com/Microsoft/vcpkg/issues

你遇到的 boost-cmake 安装失败问题,其根本原因在于 vcpkg 在尝试下载 Boost 库的许可证文件 (LICENSE_1_0.txt) 时,访问的 URL 返回了 404 错误

从日志信息 Downloading https://raw.githubusercontent.com/boostorg/boost/refs/tags/boost-1.91.0/LICENSE_1_0.txt -> boost-1.91.0-LICENSE_1_0.txt 可以看出,vcpkg 构造的下载链接格式不正确,导致无法从 GitHub 获取文件。

这个问题问了几个大模型没有解决,反而走了弯路。后来是通过手动下载链接下载后重命名解决的,这里面手动新建txt文件把内容手动复制进去会报hash检测不一致的问题,必须要下载然后重命名。

相关推荐
江畔柳前堤7 小时前
前台·中台·后台:2026年AI原生时代的架构全景图
开发语言·人工智能·算法·机器学习·架构·scala·ai-native
Figo_Cheung8 小时前
Figo基于RNC理论的宇宙演化第七纪元猜想
开发语言·php
泡海椒8 小时前
JQuick-Curl 二次开发:自定义解析器、扩展点开发指南,如何把框架能力真正变成团队资产
java·开发语言·okhttp·maven
WWJA王文举9 小时前
FreeRTOS事件组和任务通知详解:为什么任务通知比队列更轻量?
开发语言·php
wuyk55510 小时前
12.归并排序:分治思想的稳定排序算法
开发语言·数据结构·算法·排序算法
吴声子夜歌10 小时前
ApacheCommons——commons-text(模板替换与文本算法)
java·开发语言·算法·apache
quantdash_cc11 小时前
量化数据源怎么选:稳定性、实时性和数据完整性到底该如何权衡?
开发语言·python·数据分析·量化交易·股票数据·quantdash
萧瑟余晖11 小时前
Java深入解析篇五十四之对象模型详解
java·开发语言
张文是假的啊11 小时前
Java | record | Controller逻辑
java·开发语言
不甘先生12 小时前
Go 中 type、方法与指针接收者:从 str_name.Name() 看懂 Go 的类型系统
开发语言·后端·golang