build
Skill9.1k starsChanged 27 days agoApache-2.0View on GitHub
Build librealsense with CMake on Windows, Linux or macOS - configure, compile, build flags, specific targets, Python bindings, DDS. Use before configuring or compiling the project.
169 other projects use a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- realsenseai/librealsenseword for word, first seen Nov 16, 2026
- mannobeats/hyper-tastetheir own version, first seen Nov 16, 2026
- jayden-dang/skillstheir own version, first seen Nov 16, 2026
- colinc86/glosstheir own version, first seen Nov 16, 2026
- wald21x6-ops/builder-kittheir own version, first seen Nov 16, 2026
- mategog/dev-teamtheir own version, first seen Nov 16, 2026
Who's talking about IntelRealSense/librealsense
- A Hacker News story“Best RealSense replacements?”Hacker News · Aug 18, 2021 · 96 points
- realsenseai/librealsense“`librealsense.intel.com` domain no longer resolves — installation instructions in `distribution_linux.md` …”GitHub · Nov 11, 2025 · 20 reactions
- conan-io/conan-center-index“[request] some of most relevant c++ libraries in github (by number of stars)”GitHub · Jan 8, 2020 · 16 reactions
- realsenseai/librealsense“I have written a set of instructions to install librealsense and pyrealsense2 on the Jetson NX”GitHub · Nov 5, 2020 · 15 reactions
- realsenseai/librealsense“ uvcvideo: Failed to query (GET_CUR) UVC control 1 on unit 3: -32 (exp. 1024).”GitHub · Nov 22, 2019 · 11 reactions
The biggest 5 of 81 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 81
Talked about on GitHub, Stack Overflow and Hacker News (81 times).
On GitHub · 48
- Nov 11, 2025`librealsense.intel.com` domain no longer resolves — installation instructions in `distribution_linux.md` fail on Ubuntu 22.04 — realsenseai/librealsense20 reactions · 8 comments
- Jan 8, 2020[request] some of most relevant c++ libraries in github (by number of stars) — conan-io/conan-center-index16 reactions · 132 comments
- Nov 5, 2020I have written a set of instructions to install librealsense and pyrealsense2 on the Jetson NX — realsenseai/librealsense15 reactions · 16 comments
- Nov 22, 2019 uvcvideo: Failed to query (GET_CUR) UVC control 1 on unit 3: -32 (exp. 1024). — realsenseai/librealsense11 reactions · 34 comments
- Nov 30, 2018Installation SDK on the Mac — realsenseai/librealsense11 reactions · 11 comments
43 more on GitHub
- Feb 10, 2020Official support for ROS2 — realsenseai/librealsense8 reactions · 25 comments
- May 26, 2021(Resolved) Apt server is broken/down, gives 403 Forbidden (May 2021) — realsenseai/librealsense7 reactions · 30 comments
- Feb 1, 2020T.265: My experience after about 3 months — realsenseai/librealsense7 reactions · 13 comments
- Jul 18, 2022Announcement: Engineering beta support for Ubuntu 22.04 / ROS2 Humble now available — realsenseai/librealsense6 reactions
- Nov 22, 2018Can not build SDK2.0 from source on MacOS Mojave — realsenseai/librealsense6 reactions · 17 comments
- Aug 25, 2021Prebuilt pyrealsense2 for macOS released — realsenseai/librealsense5 reactions · 8 comments
- Apr 1, 2021Implementation with D435 and T265 INTEL cameras for STEREO-INERTIAL — UZ-SLAMLab/ORB_SLAM35 reactions · 16 comments
- Apr 25, 2019Feature request: HDR mode — realsenseai/librealsense5 reactions · 42 comments
- Apr 8, 20182.10.3 patch-realsense-ubuntu-xenial.sh fails with — realsenseai/librealsense5 reactions · 14 comments
- Apr 4, 2019Get number of frames in bag file using pyrealsense2 — realsenseai/librealsense4 reactions · 12 comments
- Mar 7, 2019Release intel-realsense-dfu for bionic — realsenseai/librealsense4 reactions · 8 comments
- Feb 13, 2018Add RSSDK 2.0 (librealsense2) grabber — PointCloudLibrary/pcl4 reactions · 79 comments
- Jan 16, 2025Document how to use the device on WSL — robotology/yarp-device-realsense23 reactions · 6 comments
- Jan 30, 2023Avoid to call wait_for_frames in the get functions for the RealSense class — gbionics/bipedal-locomotion-framework3 reactions · 3 comments
- Mar 8, 2022Unreal Engine 4.27 support — realsenseai/librealsense3 reactions · 2 comments
- Aug 3, 2020add enable (SetBool) service for disabling/enabling sensor streams — realsenseai/realsense-ros2 reactions · 5 comments
- Jan 8, 2019fix nite2 support, fix intrinsics — realsenseai/librealsense2 reactions · 1 comment
- Nov 24, 2024Patch librealsense v2.44.0 to include `<chrono>` for `system_clock` — isl-org/Open3D1 reaction · 1 comment
- Feb 8, 2023librealsense2: Update to librealsense 2.53.1 — realsenseai/meta-intel-realsense1 reaction
- May 26, 2021Fix librealsense installation in CI — gbionics/bipedal-locomotion-framework1 reaction
- Dec 6, 2020Upgrade librealsense2 to 2.40.0 — bytedeco/javacpp-presets1 reaction
- Sep 19, 2018Add librealsense2 dependency to package.xml — realsenseai/realsense-ros1 reaction · 2 comments
- Jun 8, 2018videoio: update librealsense to API 2.0 — opencv/opencv1 reaction
- Feb 9, 2018Fix illegal RosBag keys by replacing spaces with underscores — realsenseai/librealsense1 reaction · 4 comments
- Oct 30, 2026docs: fix dead Isaac Teleop and RealSense links — huggingface/lerobot0 reactions · 1 comment
- May 31, 2026react-viewer: auto-detect device hot-plug via ctx callback — AviaAv/librealsense0 reactions · 1 comment
- May 20, 2026testing stuff — AviaAv/librealsensesays it tested it0 reactions · 7 comments
- Mar 20, 2026Added throttle of logs — MuLTechnologies/librealsense0 reactions
- Jul 22, 2025Add support to use system provided nlohmann_json library if requested — realsenseai/librealsense0 reactions · 7 comments
- Jul 22, 2025librealsense-gui: 2.56.3 -> 2.57.7 — NixOS/nixpkgs0 reactions · 8 comments
- Jul 9, 2025Improved support to build libraries in shared mode — realsenseai/librealsense0 reactions · 7 comments
- Jan 27, 2025Handle D430GMSL PID for fw update — gwen2018/librealsense0 reactions
- Feb 14, 2024Cant build with message Could NOT find PythonInterp (missing: PYTHON_… — realsenseai/librealsense0 reactions · 3 comments
- Nov 17, 2023Manual acquisitions — secomind/librealsense0 reactions
- Nov 17, 2023implement periodic acquisitions with thread — secomind/librealsense0 reactions
- Jun 17, 2023android-examples-recording-plus — realsenseai/librealsense0 reactions · 3 comments
- Apr 27, 2023Re-use device buffer in yuy2 cuda helper — realsenseai/librealsense0 reactions · 2 comments
- May 16, 2022Dispatcher deadlock workaround — realsenseai/librealsense0 reactions · 8 comments
- Apr 23, 2022PLY vertices data on a single line — realsenseai/librealsense0 reactions · 1 comment
- May 10, 2021Explicitly set OPENSSL_ROOT_DIR in libcurl build — realsenseai/librealsense0 reactions · 3 comments
- Feb 5, 2020Enable linear interpolate of Gyro and Accel data over IMU topic — intel/ros2_intel_realsense0 reactions · 1 comment
- Jan 24, 2020Publish messages using frame timestamp — intel/ros2_intel_realsense0 reactions · 1 comment
- Dec 5, 2019Add Dockerfile for reproducible builds — intel/ros2_intel_realsense0 reactions · 1 comment
On Stack Overflow · 30
- May 15, 2018error: Updating from such a repository can't be done securely, and is therefore disabled by default5 votes · 3 answers
- Nov 6, 2020RGB image captured by Intel realsense camera is dark (using python code)4 votes
- Oct 29, 2019Pointcloud and RGB Image alignment on RealSense ROS4 votes
- Jun 6, 2018Pyrealsense2 (Librealsense SDK 2.0): choose cam from Serial Number3 votes · 1 answer
- Mar 26, 2018Face landmark detection using Intel RealSense Compatiblity SDK3 votes
25 more on Stack Overflow
- Feb 14, 2018Windows Hello API3 votes
- Aug 5, 2020How to align already captured RGB and Depth images2 votes
- Nov 26, 2019Intel RealSense Depth Camera D435i noises and mounds2 votes · 1 answer
- Jan 13, 2019Machine Learning: Question regarding processing of RGBD streams and involved components2 votes
- Aug 22, 2018Error running RealSense D435 on Ubuntu 16.04(4.4.0-131-generic)2 votes
- May 17, 2018intel real sense sdk programming in vs20152 votes
- Jul 25, 2023Depth camera not calibrated when using from pyrealsense1 vote
- Sep 9, 2022Realsense D435 change resolution in MATLAB1 vote
- Oct 28, 2021How to install pyrealsense2 on Mac Os?1 vote
- Jul 9, 2021Realsense D435 change resolution in MATLAB1 vote · 2 answers
- Mar 5, 2021Translate Region of Interest from RGB video to Depth video using OpenCV1 vote
- Oct 6, 2020threshold depth distance in image opencvsharp c# intel realsense1 vote
- Dec 10, 2018RGB image with depth info1 vote
- Jul 5, 2018mapping depth image to color image with realsense2 about opencv1 vote · 2 answers
- Apr 2, 2023Advanced depth visualisation Intel Realsense camera in python0 votes
- Dec 4, 2022Cannot get intelrealsense to compile from source on a Raspi4 8GB0 votes
- Sep 7, 2022On Raspberry Pi 4 with Ubuntu 22.04 don't work ioctl0 votes
- Jun 21, 2022Intel realsense R200: Errors when running 'make'0 votes
- Oct 6, 2021Intel Realsense - unable to read bag file0 votes
- Jun 23, 2021Intel RealSense - Align depth and color in two numpy arrays0 votes
- Oct 8, 2020Display point cloud continuous c# Intel Realsense0 votes · 1 answer
- May 20, 2020Pointer Exception while getting RGB values from (video) frame Intel Realsense0 votes · 2 answers
- Mar 15, 2019Save WriteableBitmap C# WPF video stream to file0 votes
- Dec 12, 2018How to know the orientation angle of real Sense depth Camera?0 votes
- Nov 2, 2016Error while compiling librealsense in clion0 votes
On Hacker News · 3
- Aug 18, 2021Best RealSense replacements?96 points · 82 comments
- Jan 21, 2016RealSense open source library released by Intel for Linux OS X and Windows2 points
- Jan 22, 2016LibrealSense: Cross-platform camera capture from Intel1 point
Used with
Projects with it also use backprop, finances and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JuliusBrusseeSkillbackprop
Bug → spec protocol. When a bug is found or a test fails, trace the cause, decide whether a new §V invariant would catch recurrence, append to §B. This is the one non-obvious thing SDD does that plan-then-execute doesn't. Triggers on test failure, bug report, post-mortem, or explicit user ask.
Also in 4 projects that use this
GerardoRdz96Skillfinances
Use when Gera talks about his money — logging an expense ("I spent X on Y"), checking where he stands this pay-period, closing a period, planning debt payoff, onboarding his financial picture, or asking for budgeting/finance opinions. Servy's financial brain. Triggers — "I spent", "log this expense", "where am I this period", "close the period", "how's my budget", "debt plan", "should I pay off", "finances onboard", "/finances".
Also in 3 projects that use this
cpiprintSkillfavicon
Generate favicons from a source image
Also in 3 projects that use this
madeehahassanSkillGo-Live
Pre-launch checklist. Use before making any app public, sharing a link externally, or announcing a product launch. Adapts to Claude Code, claude.ai, and Cowork.
Also in 3 projects that use this
JuliusBrusseeSkilldeepen
Optional design-improvement pass for when you have spare usage to drain. Finds the shallowest modules in the code the spec touches, researches a deeper design, and proposes refactors that shrink interfaces and hide decisions — behavior held constant, tests green before and after. Proposes §I/§V/§T edits, never silent rewrites. Triggers when the user says "deepen this", "improve the design", "this module feels shallow", "pull complexity down", "use spare budget on the codebase", or invokes /ck:deepen. Leans on the codebase-design skill's deep-module vocabulary when present.
Also in 3 projects that use this
synaptiaiSkillgate
Create a BDSK review_gate artifact. Defines a checkpoint that controls whether generated output may proceed toward acceptance. Use when defining quality, security, or scope gates for execution plans.
Also in 5 projects that use this
Other versions169 projects use a version of this.
Word for word · 1
- realsenseai/librealsense★ 9.1k100% same
Edited · 0
None found.
Wrote their own version · 168
- FalkorDB/FalkorDB★ 11ksame name
- microsoft/microsoft-ui-xaml★ 8.6ksame name
- NexaAI/nexa-sdk★ 8.5ksame name
- hathach/tinyusb★ 7.3ksame name
- parcadei/Continuous-Claude★ 3.9ksame name
- parcadei/Continuous-Claude-v2★ 3.9ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- pytorch/TensorRT★ 3ksame name
- oxsecurity/megalinter★ 2.7ksame name
- iPlug2/iPlug2★ 2.4ksame name
158 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- add-apiSkill
- cpp-codingSkill
- file-creationSkill
- pr-createSkill
- pr-reviewSkill
- pytest-infraSkill
- testingSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 154 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
Note: Always use --parallel flag on Windows for faster parallel builds.
- Very specific: line 160
All flags are defined in CMake/lrs_options.cmake.
“Common” is measured: kept by at least 6 in 10 of the 154 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Building librealsense
Prerequisites
Minimum Versions
- CMake: 3.10 (3.16.3 if using
-DBUILD_WITH_DDS=ON) - C++ Standard: The core library requires C++14; the public API/interface requires only C++11
- Defined in
CMake/lrs_macros.cmakeviatarget_compile_features(... PRIVATE cxx_std_14)andINTERFACE cxx_std_11 - The internal
rsutilslibrary (underthird-party/rsutils/) also requires C++14
- Defined in
Platform-Specific Requirements
| Platform | Compiler / Toolchain | Notes |
| Windows 10/11 | Visual Studio 2019 or 2022 (MSVC) | CI uses windows-2025 runners |
| Ubuntu 20.04 | GCC | Supported |
| Ubuntu 22.04 | GCC | Primary Linux target |
| Ubuntu 24.04 | GCC | Also tested in CI |
| Ubuntu 26.04 | GCC | Supported |
| macOS 15+ | Clang (Xcode) | Tested in CI on macos-15 |
| NVIDIA Jetson | GCC (ARM64, L4T) | See doc/installation_jetson.md |
| Raspberry Pi | GCC (ARM) | See doc/installation_raspbian.md |
| Android | NDK (r20b+) | Cross-compilation; see doc/android.md |
Windows Build (Visual Studio)
Full Build
mkdir build; cd build
cmake .. -G "Visual Studio 17 2022" -A x64
cmake --build . --config Release --parallel
# Or open build/realsense2.sln in Visual StudioNote: Always use --parallel flag on Windows for faster parallel builds.
Build Specific Target
To build only a specific target:
cmake --build . --config Release --parallel --target <target-name>Examples:
# Build only the core library
cmake --build . --config Release --parallel --target realsense2
# Build only the viewer
cmake --build . --config Release --parallel --target realsense-viewerInstall
cmake --build . --config Release --parallel --target installLinux Build
Full Build
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)Build Specific Target
To build only a specific target:
make <target-name>
# Or with cmake:
cmake --build . --target <target-name>Examples:
# Build only the core library
make realsense2
# Build only the viewer
make realsense-viewerList Available Targets
make helpInstall
sudo make installmacOS Build
Note: macOS requires FORCE_RSUSB_BACKEND=ON.
Full Build
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DFORCE_RSUSB_BACKEND=ON
make -j$(sysctl -n hw.ncpu)Build Specific Target
To build only a specific target:
make <target-name>
# Or with cmake:
cmake --build . --target <target-name>Examples:
# Build only the core library
make realsense2
# Build only the viewer
make realsense-viewerList Available Targets
make helpInstall
sudo make installCommon Target Reference
| Target | Description |
realsense2 | Core library only |
realsense-viewer | Viewer application |
rs-enumerate-devices | Device enumeration tool |
rs-fw-update | Firmware update tool |
pyrealsense2 | Python bindings |
Common CMake Build Flags
All flags are defined in CMake/lrs_options.cmake.
Rule: When adding a new CMake build flag, always declare it with
option()inCMake/lrs_options.cmake— never inline in a subdirectoryCMakeLists.txt. This keeps all flags discoverable in one place and ensures they appear incmake-gui/ccmakeregardless of which subdirectory is being configured.
| Flag | Default | Description |
BUILD_SHARED_LIBS | ON | Build as shared library (OFF for static) |
BUILD_EXAMPLES | ON | Build example applications |
BUILD_GRAPHICAL_EXAMPLES | ON | Build viewer & graphical tools (requires GLFW) |
BUILD_UNIT_TESTS | OFF | Build unit tests (requires Python 3, downloads test data) |
BUILD_PYTHON_BINDINGS | OFF | Build Python bindings (pybind11) |
BUILD_CSHARP_BINDINGS | OFF | Build C# (.NET) bindings |
BUILD_WITH_DDS | OFF | Enable DDS (FastDDS) support; requires CMake 3.16.3 |
FORCE_RSUSB_BACKEND | OFF | Use RS USB backend (required for macOS/Android, optional for Linux) |
BUILD_TOOLS | ON | Build tools (fw-updater, enumerate-devices, etc.) |
BUILD_WITH_CUDA | OFF | Enable CUDA support |
BUILD_EASYLOGGINGPP | ON | Build EasyLogging++ for logging |
BUILD_WITH_STATIC_CRT | ON | Link against static CRT (Windows/MSVC) |
CHECK_FOR_UPDATES | ON (OFF on macOS) | Enable checking for SDK updates |
ENABLE_CCACHE | ON | Use ccache if available |
BUILD_GLSL_EXTENSIONS | ON | Build GLSL extensions API |
BUILD_RS2_ALL | ON | Build realsense2-all static bundle (when BUILD_SHARED_LIBS=OFF) |
BUILD_ASAN | OFF | Enable AddressSanitizer |
ENABLE_SECURITY_FLAGS | OFF | Enable additional compiler security flags |
BUILD_WITH_CLOSE_RANGE_DEPTH | OFF | Enable Improved Close Range Depth in viewer (Jetson only); requires librealsense2-enhanced-depth installed on every system that runs the binary — do not distribute this binary to systems without the package |
Example: Build with Python Bindings and Tests
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DBUILD_PYTHON_BINDINGS=ON \
-DBUILD_UNIT_TESTS=ON
cmake --build . --config ReleaseOn Windows, always add --parallel:
cmake --build . --config Release --parallelExample: Build with DDS Support
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_DDS=ONRequires CMake >= 3.16.3. FastDDS and its dependencies will be automatically downloaded and built.
Key Build Outputs
- Library:
librealsense2.so/realsense2.dll/librealsense2.dylib - Viewer:
realsense-viewer(whenBUILD_GRAPHICAL_EXAMPLES=ON) - Python module:
pyrealsense2.*.pyd/pyrealsense2.*.so(whenBUILD_PYTHON_BINDINGS=ON) - Test executables: Various
test-*binaries under the build directory (whenBUILD_UNIT_TESTS=ON)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

