Proxy variables required to setup before the installation -
setx -m ALL_PROXY http://proxy-xyz.com:10
setx -m http_proxy http://proxy-xyz.com:10
setx -m https_proxy https://proxy-xyz.com:10
This is step by step guide on how to setup intel realsense library for the realsense depth camera.
git clone [email protected]:IntelRealSense/librealsense.git
and or download and unzip the source code from here.cd librealsense/
, lets call this directory%LIBREALSENSE_DIR%
.mkdir build && cd build/
- For windows follow the steps given here and also do read this -> Intel Realsense Installation Guide.
cmake -G "Visual Studio 14 2015" -A "x64" "C:\xyz\Intel_Realsense\librealsense-2.30.0" -DCMAKE_INSTALL_PREFIX="C:\xyz\Intel_Realsense\librealsense-2.30.0\build"
cmake --build . --config Release --target install
run as administrator.cmake --build . --config Debug --target install
run as administrator.- Create
REALSENSE2_DIR
variable in the environment -setx -m REALSENSE2_DIR "C:\xyz\Intel_Realsense\librealsense-2.30.0\build\lib\cmake"
- Add to the
Path
variable -%REALSENSE2_DIR%\..\..\bin
.
To compile and run the project set up the Path
variables for the librealsense2
and OpenCV
libraries.
Install the latest version of cmake.
Then follow the steps -
cd $PROJECTDIR
mkdir build
cd build
cmake ..
cmake --build .