栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

Git Bash+vcpkg安装librealsense(Visual Studio环境开发)

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Git Bash+vcpkg安装librealsense(Visual Studio环境开发)

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档

Git Bash+vcpkg安装librealsense

一、vcpkg说明二、安装过程

1.安装vcpkg2.安装librealsense

一、vcpkg说明

vcpkg可以利用CMakeLists.txt安装c++开发的依赖库,使用Visual Studio打开vcpkg将自动读取里面安装的依赖库,那么无论在任何位置进行c++开发,都可以include已经用过vcpkg安装的依赖库。

二、安装过程 1.安装vcpkg

选择合适的文件夹,右键打开git bash

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh

使vcpkg适配VS

./vcpkg integrate install
2.安装librealsense
./vcpkg install realsense2

检查是否都安装完成

$ ./vcpkg integrate install

这个时候显示:

Applied user-wide integration for this vcpkg root.

All MSBuild C++ projects can now #include any installed libraries.
linking will be handled automatically.
Installing new libraries will make them instantly available.

CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=D:/MyGithub/vcpkg/scripts/buildsystems/vcpkg.cmake"

那么说明已经成功安装
检查一下已经安装的依赖项:

$ ./vcpkg list

将会出现如下依赖项列表

$ ./vcpkg list
realsense2:x86-windows                             2.50.0           Intel® RealSense™ SDK 2.0 is a cross-platform...
vcpkg-cmake-config:x64-windows                     2022-02-06
vcpkg-cmake:x64-windows                            2022-01-19
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/768861.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号