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
Steady talk.about the whole repository
Most recently taken up by
- IntelRealSense/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 realsenseai/librealsense
- NixOS/nixpkgs“librealsense: add missing support to udev rules”GitHub · Jan 6, 2026 · 2 reactions
- David-Martel/librealsense“fix(fw-update): stop device handles before logger teardown”GitHub · Jul 17, 2026 · 1 reactions
- Bradly187/Personal-Desktop-Agent“chore(deps): bump the python-minor-patch group across 1 directory with 8 updates”GitHub · Nov 2, 2026
- OpenGraphLabs/oglo-python“build(deps-dev): bump the python-dependencies group across 1 directory with 3 updates”GitHub · Nov 1, 2026
- huggingface/lerobot“docs: fix dead Isaac Teleop and RealSense links”GitHub · Oct 30, 2026
The biggest 5 of 34 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 34
Talked about on GitHub (34 times).
On GitHub · 34
- Jan 6, 2026librealsense: add missing support to udev rules — NixOS/nixpkgs2 reactions · 7 comments
- Jul 17, 2026fix(fw-update): stop device handles before logger teardown — David-Martel/librealsense1 reaction · 1 comment
- Nov 2, 2026chore(deps): bump the python-minor-patch group across 1 directory with 8 updates — Bradly187/Personal-Desktop-Agent0 reactions
- Nov 1, 2026build(deps-dev): bump the python-dependencies group across 1 directory with 3 updates — OpenGraphLabs/oglo-python0 reactions
- Oct 30, 2026docs: fix dead Isaac Teleop and RealSense links — huggingface/lerobot0 reactions · 1 comment
29 more on GitHub
- Oct 22, 2026build(deps): bump pyrealsense2 from 2.58.4.10922 to 2.59.1.11053 — nvidia-holoscan/holoscan-telesurgery0 reactions
- Oct 20, 2026[D585][GMSL_MUX] Support independent PD 15/30 FPS profiles — polejoe/librealsense0 reactions · 1 comment
- Oct 17, 2026Update pyrealsense2 requirement from >=2.55 to >=2.59.1.11053 — bnrohit/hybrid-rf-scanner0 reactions
- Oct 11, 2026librealsense 2.59.1 — Homebrew/homebrew-core0 reactions · 2 comments
- Oct 4, 2026pyrealsense2: Add version 2.58.4.10922 — riseproject-dev/python-wheels0 reactions · 1 comment
- Sep 23, 2026Add rocm-enabled librealsense package — gbionics/rock-the-conda0 reactions
- Sep 23, 2026Add librealsense — gbionics/rock-the-conda0 reactions · 3 comments
- Sep 14, 2026librealsense: update recipe to latest stable version 2.58.1 — conan-io/conan-center-index0 reactions · 1 comment
- Sep 14, 2026[RSDEV-14616] Use BA10 exclusively for D500 RGB calibration — realsenseai/realsense_mipi_platform_driver0 reactions · 3 comments
- Sep 5, 2026Update pyrealsense2 requirement from >=2.55 to >=2.58.4.10922 — bnrohit/hybrid-rf-scanner0 reactions · 1 comment
- Sep 2, 2026[RSDEV-14097] Expose D585 GMSL gyro sensitivity — realsenseai/realsense_mipi_platform_driver0 reactions
- Aug 31, 2026Package rocm variant of librealsense — conda-forge/librealsense-feedstock0 reactions · 1 comment
- Aug 30, 2026librealsense 2.58.4 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 28, 2026Fix RVIZ Vizualization of the RealSense D435i Camera Stability and Performance Via ROS Network — arcs-tmu/laika0 reactions
- Aug 15, 2026Update pyrealsense2 requirement from >=2.55 to >=2.58.3.10794 — bnrohit/hybrid-rf-scanner0 reactions · 1 comment
- Aug 5, 2026RSDEV-13232 Integrate D500 stream-group runtime — ghu3/librealsense0 reactions · 4 comments
- Aug 5, 2026Bake ROS 2, RealSense, SiMa CLI, and GitHub tooling into the ARM64 SDK image — sima-vertical-solutions/ros2-sdk0 reactions
- Jul 20, 2026Add python3-pyrealsense2-pip rosdep key to python.yaml — ros/rosdistro0 reactions · 1 comment
- Jul 19, 2026librealsense 2.58.3 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 9, 2026Support launching Docker GUI apps from Fedora Wayland via XWayland — amoffat/librealsense0 reactions
- Jul 6, 2026Add D401 GMSL dual-RGB support (POC) — ashrafk93/librealsense0 reactions
- Jun 29, 2026chore(deps): bump pyrealsense2 from 2.58.1.10581 to 2.58.2.10647 — AliaksandrNazaruk/janus-camera-stack0 reactions · 1 comment
- Jun 24, 2026Ashraf/zerocopy pr1 — ashrafk93/librealsense0 reactions
- Jun 12, 2026Add placeholder workflow to register build-deb-packages trigger — locusrobotics/librealsense0 reactions
- Mar 11, 2026Add aligned depth topic for RGBD sensor — gazebosim/gz-sim0 reactions · 1 comment
- Feb 17, 2026`pixel_to_real_world` service fails in real mode due to missing `/camera/depth/camera_info` publisher — Final-Project-ROS2/vision0 reactions
- Jan 27, 2026Reliability of the AI-Autostart — A13k5-5/COMP0016_2025_Team11_no-ui-game0 reactions · 1 comment
- Jan 24, 2026[day 1] — z18k/AI-Vision-Learning0 reactions
- Dec 4, 2025[realsense2] update to v2.56.5 — microsoft/vcpkg0 reactions · 2 comments
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
- IntelRealSense/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.

