# Error building zed\_components in wsl2

**URL:** <https://community.stereolabs.com/t/error-building-zed-components-in-wsl2/11039>\
**Category:** Docker\
**Tags:** sdk, windows\
**Created:** [March 18, 2026, 1:47pm UTC](https://community.stereolabs.com/t/error-building-zed-components-in-wsl2/11039 "2026-03-18T13:47:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scruz10FAU](https://community.stereolabs.com/user_avatar/community.stereolabs.com/scruz10fau/32/5162_2.png) [@scruz10FAU](https://community.stereolabs.com/u/scruz10FAU)\
**Post date:** [March 18, 2026, 1:47pm UTC](https://community.stereolabs.com/t/error-building-zed-components-in-wsl2/11039/1 "2026-03-18T13:47:22Z")

</div>

I am trying to build zed\_components in wsl2 running ubuntu 22.04.4 LTS to be used in IsaacSIM. I have successfully installed zedSDK 5.2.2 based on the following output:

`admin@docker-desktop:/workspaces/isaac_ros-dev$ /usr/local/zed/tools/ZED_Explorer --version`  
`Stereolabs ZED SDK Version : 5.2.2`

Despite this, the build keeps failing citing an error about CAMERA\_TYPE not being declaring. What do I need to do in order to build properly? My output is shown below:

```bash
admin@docker-desktop:/workspaces/isaac_ros-dev$ colcon build --symlink-install --cmake-args=-DCMAKE_BUILD_TYPE=Release --packages-up-to zed_wrapper
Starting >>> zed_components
[Processing: zed_components]
--- stderr: zed_components
 * ISAAC ROS Nitros transport is available
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_one_component.cpp: In member function ‘bool stereolabs::ZedCameraOne::startCamera()’:
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_one_component.cpp:778:44: error: no matching function for call to ‘sl::InputType::setFromSerialNumber(int&, sl::BUS_TYPE)’
  778 | _initParams.input.setFromSerialNumber(_camSerialNumber, sl::BUS_TYPE::GMSL);
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/zed/include/sl/CameraOne.hpp:76,
                 from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/zed_camera_one_component.hpp:23,
                 from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_one_component.cpp:15:
/usr/local/zed/include/sl/Camera.hpp:1085:14: note: candidate: ‘void sl::InputType::setFromSerialNumber(unsigned int)’
 1085 | void setFromSerialNumber(unsigned int camera_serial_number);
      | ^ ~~~~~~~~~~~~~~~~~~
/usr/local/zed/include/sl/Camera.hpp:1085:14: note: candidate expects 1 argument, 2 provided
/usr/local/zed/include/sl/Camera.hpp:1095:14: note: candidate: ‘void sl::InputType::setFromSerialNumber(sl::String)’
 1095 | void setFromSerialNumber(sl::String serial_number);
      | ^ ~~~~~~~~~~~~~~~~~~
/usr/local/zed/include/sl/Camera.hpp:1095:14: note: candidate expects 1 argument, 2 provided
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_one_component.cpp:780:73: error: ‘sl::CAMERA_TYPE’ has not been declared
  780 | _initParams.input.setFromCameraID(_camId, sl::BUS_TYPE::GMSL, sl::CAMERA_TYPE::MONO);
      | ^ ~~~~~~~~~~
gmake[2]: *** [CMakeFiles/zed_camera_one_component.dir/build.make:132: CMakeFiles/zed_camera_one_component.dir/src/zed_camera/src/zed_camera_one_component.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:192: CMakeFiles/zed_camera_one_component.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake: *** [Makefile:146: all] Error 2
---
Failed <<< zed_components [47.2s, exited with code 2]

Summary: 0 packages finished [47.6s]
  1 package failed: zed_components
  1 package had stderr output: zed_components
  1 package not processed

```

---

<div class="post-metadata">

**Author:** ![mattrouss](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mattrouss/32/2452_2.png) [@mattrouss](https://community.stereolabs.com/u/mattrouss)\
**Post date:** [March 20, 2026, 9:57am UTC](https://community.stereolabs.com/t/error-building-zed-components-in-wsl2/11039/2 "2026-03-20T09:57:28Z")

</div>

Hi @scruz10FAU,

This looks like your zed-ros2-wrapper version is not up to date.

Can you please make sure you are using the laster master branch of the [zed-ros2-wrapper](https://github.com/stereolabs/zed-ros2-wrapper/tree/master)?
