-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Build Configuration
Sergey Dorodnicov edited this page Oct 26, 2017
·
10 revisions
Intel RealSense SDK is using CMake eco-system to offer useful customization to customers who wish to build the SDK from source.
For example, to generate makefile with
BUILD_EXAMPLES
flag turned-on, use the following command line:cmake .. -DBUILD_EXAMPLES=true
Alternatively, usecmake-gui
utility to configure and generate your build files.
Flag | Description | Default |
---|---|---|
BUILD_EXAMPLES | Build SDK examples and tools | false |
BUILD_GRAPHICAL_EXAMPLES | Controls the-subset of examples and tools dependent on OpenGL . Disabling this option will reduce the set of tools and examples to rs-save-to-file , rs-terminal , rs-enumerate-devices and rs-fw-logger . Recommended for headless systems without the graphic subsystem |
true |
BUILD_UNIT_TESTS | Build the full suite of unit-tests for the SDK | true |
BUILD_WITH_OPENMP | When enabled, YUY to RGB conversion and Depth-Color spatial alignment will take advantage of multiple-cores using OpenMP . This can reduce latency at expense of greater CPU utilization |
true |
ENFORCE_METADATA | Having UVC per-frame metadata requires building with Windows SDK installed. When this flag is disabled, the resulting binary might not be capable of properly parsing UVC metadata if Windows SDK was not installed during the build. If this flag is true, not having Windows SDK install will break the build | false |
BUILD_PYTHON_BINDINGS | Build Python bindings for the SDK. Requires Python to be installed. See wrapper page for more information | false |
BUILD_NODEJS_BINDINGS | Build Node.js bindings for the SDK. Requires Node.js to be installed. See wrapper page for more information | false |
FORCE_LIBUVC | Setting this flag to true will configure the underlying backend to use libuvc . This backend is default for Mac OS, but can be configured on other OS-s as well. libuvc can serve as a more robust alternative to the native backend, however, it has well known limitations and is not recommended to be used in end-products |
false |
TRACE_API | When this flag is enabled, all API-calls will be written to the log at INFO severity. This will include any errors, duration, input and output parameters as well as the return value. Entry and exit from API calls will be documented as well at DEBUG severity. Enabling this feature will result in severe performance penalty |
false |
HWM_OVER_XU | When this option is enabled, hardware commands will be dispatched through extension-unit (XU) transfer protocol. When disabled (and assuming the hardware supports it) the SDK will talk to the hardware directly using libusb / WinUSB
|
true |
BUILD_SHARED_LIBS | When enabled the output of the library will be a dynamic link library (DLL) or a shared object (SO). When disabled the output will be a static library (LIB/A) | true |
CMAKE_BUILD_TYPE | Desired build time. To take advantage of compiler optimizations set to "Release" or "RelWithDebInfo" | Debug |
Intel® RealSense™ SDK Wiki
- Home
- Troubleshooting Q&A
- Release Notes
- API Changes
- API How-To
- Build Configuration
- Overview of Depth from Stereo
- Post-Processing
- Sample Data for SDK examples
- D400 Series Visual Presets
- Projection in RealSense SDK 2.0
- API Documentation
- About Android Support
- RealSense with Raspberry Pi 3
- RealSense with Raspberry Pi 4
- RealSense with NVidia Jetson
- Using Two Cameras with ROS
- Frame Buffering Management
- Supported Matrix
- Docker