VS2019创建自己的项目使用Realsense2.0 SDK+PCL

源码来自RealSense源码包 librealsense/wrappers/pcl/pcl/rs-pcl.cpp

头文件需要改一个:

#include "example.hpp" 

添加realsense SDK中的属性文件和pcl属性文件:

VS2019创建自己的项目使用Realsense2.0 SDK+PCL

intel.realsense0属性,添加example.hpp所在路径:

VS2019创建自己的项目使用Realsense2.0 SDK+PCL

出现类似错误:

main.obj : error LNK2019: 无法解析的外部符号 glfwInit,该符号在函数 "public: __cdecl window::window(int,int,char const *)" ([email protected]@[email protected]@Z) 中被引用

解决:打开glfw-imgui0属性:连接器加入glfw-imgui.lib

VS2019创建自己的项目使用Realsense2.0 SDK+PCL

VS2019创建自己的项目使用Realsense2.0 SDK+PCL