Skip to content

Instantly share code, notes, and snippets.

@wooyey
Last active December 14, 2022 14:05
Show Gist options
  • Save wooyey/3940f66b5b2cfbbb1f5421b8016f2e38 to your computer and use it in GitHub Desktop.
Save wooyey/3940f66b5b2cfbbb1f5421b8016f2e38 to your computer and use it in GitHub Desktop.
Lib RealSense Compilation

CUDA compilation

Ubuntu 18.04

apt-get update \
apt-get install git libssl-dev libusb-1.0-0-dev libudev-dev pkg-config libgtk-3-dev \
  libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev \
  wget nvidia-cuda-dev nvidia-cuda-toolkit
wget https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-x86_64.tar.gz
tar zxvf cmake-3.25.1-linux-x86_64.tar.gz
cp -R ./cmake-3.25.1-linux-x86_64/* /usr/
git clone https://github.com/IntelRealSense/librealsense.git
cd librealsense && mkdir build && cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=true -DBUILD_WITH_CUDA=true -DCMAKE_CUDA_ARCHITECTURES="60" -DOpenGL_GL_PREFERENCE=GLVND -DBUILD_WITH_CPU_EXTENSIONS=true

References

  • Check for CUDA architecture code here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment