# Build Error in zed\_components with ZED SDK 5.0.7 (Jetson Orin + ROS 2 Humble)

**URL:** <https://community.stereolabs.com/t/build-error-in-zed-components-with-zed-sdk-5-0-7-jetson-orin-ros-2-humble/10236>\
**Category:** ROS2\
**Tags:** sdk, zed-sdk, ros, jetson\
**Created:** [October 28, 2025, 10:48am UTC](https://community.stereolabs.com/t/build-error-in-zed-components-with-zed-sdk-5-0-7-jetson-orin-ros-2-humble/10236 "2025-10-28T10:48:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vansh\_agg](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/v/73ab20/32.png) [@vansh\_agg](https://community.stereolabs.com/u/vansh_agg)\
**Post date:** [October 28, 2025, 10:48am UTC](https://community.stereolabs.com/t/build-error-in-zed-components-with-zed-sdk-5-0-7-jetson-orin-ros-2-humble/10236/1 "2025-10-28T10:48:13Z")

</div>

**System Details:**

- **Platform:** Jetson Orin NX (JetPack 6 / Ubuntu 22.04)

- **ZED SDK Version:** 5.0.7 (ARM64 Tegra)

- **ROS 2 Distro:** Humble

- **Wrapper Version:** Latest `master` and also tried `ros2_humble` branch from `zed-ros2-wrapper`

**Build Command:**

```auto
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release

```

**Error Output:**

```auto
/home/v_agg/ros2_ws/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component_main.cpp: In member function ‘bool stereolabs::ZedCamera::startCamera()’:
/home/v_agg/ros2_ws/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component_main.cpp:2483:40: error: ‘DRIVER_FAILURE’ is not a member of ‘sl::ERROR_CODE’
 2483 | if (mConnStatus == sl::ERROR_CODE::DRIVER_FAILURE) {
      | ^ ~~~~~~~~~~~~~
/home/v_agg/ros2_ws/src/zed-ros2-wrapper/zed_components/src/zed_camera_one/src/zed_camera_one_component_main.cpp: In member function ‘bool stereolabs::ZedCameraOne::openZedCamera()’:
/home/v_agg/ros2_ws/src/zed-ros2-wrapper/zed_components/src/zed_camera_one/src/zed_camera_one_component_main.cpp:777:40: error: ‘DRIVER_FAILURE’ is not a member of ‘sl::ERROR_CODE’
  777 | if (_connStatus == sl::ERROR_CODE::DRIVER_FAILURE) {
      |                  

```

**Summary:**  
While building the `zed_components` package, the compiler fails because `sl::ERROR_CODE::DRIVER_FAILURE` is no longer defined in the latest ZED SDK (v5.0.7).  
It appears the wrapper code still references an older enum value that was removed or renamed in SDK v5.x.

**Steps Tried:**

- Confirmed `rosdep install` completed successfully.

- Cleaned workspace (`rm -rf build install log`).

- Tried both `master` and `ros2_humble` branches of the wrapper.

- Rebuilt with `colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release`.

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [October 29, 2025, 12:53pm UTC](https://community.stereolabs.com/t/build-error-in-zed-components-with-zed-sdk-5-0-7-jetson-orin-ros-2-humble/10236/2 "2025-10-29T12:53:12Z")

</div>

Hi @vansh_agg  
Please install the latest ZED SDK v5.1.  
The `master` branch always requires the latest version of the ZED SDK available in the download page, as indicated in the README.
