WetlingRealsenseES
Application Preview
Documentation
Official Realsense C++ Documentation: https://intelrealsense.github.io/librealsense/doxygen/annotated.html
Installation Guide
Adding Realsense SDK
- Create new Empty Visual C++ Project
- Go to View > Other Windows > Property Manager
- Click on "Add Existing Property Sheet" icon
- Navigate to "C:\Program Files (x86)\Intel RealSense SDK 2.0"
- Add intel.realsense.props, now #include <librealsense2/rs.h> can be used
Adding Custom Libraries
- Copy folder [realsense] into Project's File Explorer
- Copy folder [imgui] into Project's File Explorer
(NOTE: Copy the above files from Realsense\third-party\imgui instead of the official imgui release)
- Create new filters [realsense] & [imgui] and Add > Existing Items > Include all items in respective folders created earlier in steps 6 and 7
Adding OpenGL/GLFW Libraries
- Properties > VC++ > Include Directories > C:\Users\efoo1\Desktop\glfw-3.2.1.bin.WIN32\include
(NOTE: 64bit: C:\Users\efoo1\Desktop\glfw-3.2.1.bin.WIN64\include)
- Properties > VC++ > Library Directories > C:\Users\efoo1\Desktop\glfw-3.2.1.bin.WIN32\lib-vc2015
(NOTE: 64bit: C:\Users\efoo1\Desktop\glfw-3.2.1.bin.WIN64\lib-vc2015)
- Linker > Input > Additional Dependencies > glfw3.lib + opengl32.lib
Adding OpenCV Library
- Verify Visual Studio toolbar has Solution Configurations set to "Debug", and Solution Platforms to "x64"
(NOTE: New versions of OpenCV only supports x64 binaries)
- Project > Properties (Active(Debug)) > Configuration Properties > VC++ Directories > Include Directories > Add > C:\OpenCV-3.4.3\opencv\build\include
- Project > Properties (Active(Debug)) > Configuration Properties > VC++ Directories > Library Directories > Add > C:\OpenCV-3.4.3\opencv\build\x64\vc15\lib
- Open Windows File Explorer > C:\OpenCV-3.4.3\opencv\build\x64\vc15\lib > Copy the filename "opencv_world343d.lib"
- Visual Studio > Project > Properties > Configuration Properties > Linker > Input > Additional Dependencies > Edit > opencv_world343d.lib
If "fopen" error warning occurs, do the following to fix compiler:
- Select Project and click "Properties" from the context menu
- Go to Configuration Properties > C/C++ > Preprocessor
- Add ;_CRT_SECURE_NO_WARNINGS in the ProprocessorDefinitions field
GUI Progression