2021-06-01
作者:互联网
vcpkg使用教程
Windows 设置 vcpkg 环境
# 第一步git克隆下载 vcpkg
git clone https://github.com/Microsoft/vcpkg.git vcpkg_new
# 第二部编译生成vcpkg exe
pushd vcpkg_new
.\bootstrap-vcpkg.bat
# 第三步设置VS全局环境
vcpkg integrate install
使用教程(azure iot hub为例)
# 使用vcpkg安装 azure-iot-sdk-c 的包
vcpkg install azure-iot-sdk-c
# 可选,如果您需要使用 sdk 共享或恢复一个盒子而不构建它,则很有用
# 将 nuget 包本地导出
vcpkg export azure-iot-sdk-c --nuget
# Open a C SDK sample (assuming repo was cloned as follows: git clone https://github.com/Azure/azure-iot-sdk-c.git azureiotsdk_sample)
# (Building the SDK and samples can be found here https://github.com/Azure/azure-iot-sdk-c/blob/master/doc/devbox_setup.md)
pushd azureiotsdk_sample\iothub_client\samples\iothub_ll_c2d_sample\windows
start iothub_ll_c2d_sample.sln
<hit F5 to build and run>
标签:01,06,iot,sample,git,vcpkg,2021,azure,sdk 来源: https://blog.csdn.net/lx0307/article/details/117436395