# 一、安装驱动器
> intel_rs_dcm_r200_2.2.98.5272.exe
# 二、安装SDK 2016 R3工具包
> intel_rs_sdk_mw_core_offline_11.0.27.1384.exe
# 三、安装OpenCV
> opencv-3.4.1-vc14_vc15.exe
# 三、环境部署
## 1、VS2017环境配置
> 打开项目属性
> C/C++》附加包含目录
```
C:\Program Files (x86)\Intel\RSSDK\sample\common\include
C:\Program Files (x86)\Intel\RSSDK\include
C:\Program Files (x86)\Intel\RSSDK\include\service
C:\Program Files (x86)\Intel\RSSDK\include\utilities
```
> 链接器》常规》附加库目录
```
C:\Program Files (x86)\Intel\RSSDK\lib\Win32
C:\Program Files (x86)\Intel\RSSDK\sample\common\lib\win32\v110
```
> 链接器》输入》附加依赖项
```
libpxc_d.lib
libpxcutils_d.lib
```
## 2、编写测试代码
```
#include <windows.h>
#include <iostream>
#include "pxcsensemanager.h"
using namespace std;
int main(int argc, char*argv[]) {
cout << "Hello RealSense R200 !" << endl;
return EXIT_SUCCESS;
}
```
## 3、编译运行
![](https://img.kancloud.cn/6d/00/6d00991f7693634b9454a91517c8ee89_563x341.png)
![](https://img.kancloud.cn/df/5f/df5fc087471ee68bf8131ca204e62694_624x333.png)