# Build error within Camera.hpp file

**URL:** <https://community.stereolabs.com/t/build-error-within-camera-hpp-file/10403>\
**Category:** C++\
**Tags:** jetson, ros2\
**Created:** [November 24, 2025, 2:39pm UTC](https://community.stereolabs.com/t/build-error-within-camera-hpp-file/10403 "2025-11-24T14:39:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giorgos](https://community.stereolabs.com/user_avatar/community.stereolabs.com/giorgos/32/5414_2.png) [@Giorgos](https://community.stereolabs.com/u/Giorgos)\
**Post date:** [November 24, 2025, 2:39pm UTC](https://community.stereolabs.com/t/build-error-within-camera-hpp-file/10403/1 "2025-11-24T14:39:16Z")

</div>

Dear support,

I get a weird build error of my ros2 package, that includes the Camera.hpp file, that I cannot explain. It is something I was not getting before, on a different container environment. Could there be some macro conflicts at play ? The error :

In file included from /workspaces/isaac\_ros-dev/src/zed\_cameras\_stereo/zed\_pointcloud\_pkg/include/calibration\_loader.hpp:4,  
from /workspaces/isaac\_ros-dev/src/zed\_cameras\_stereo/zed\_pointcloud\_pkg/src/calibration\_loader.cpp:1:  
/usr/local/zed/include/sl/Camera.hpp:1690:34: error: expected unqualified-id before ‘const’  
1690 | _FCT\_CPU\_GPU_ Vector2(const Vector2 &v) {  
| ^ ~~~~  
/usr/local/zed/include/sl/Camera.hpp:1690:34: error: expected ‘)’ before ‘const’  
1690 | _FCT\_CPU\_GPU_ Vector2(const Vector2 &v) {  
| ~^ ~~~~  
| )

Any ideas ? Thank you in advance.

---

<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:** [November 24, 2025, 2:50pm UTC](https://community.stereolabs.com/t/build-error-within-camera-hpp-file/10403/2 "2025-11-24T14:50:58Z")

</div>

Hi @Giorgos  
I suspect you are using a version of the ZED SDK not compatible with the Isaac ROS package that you installed.

How did you install Isaac ROS? Have you followed our guide?

> **[ZED Isaac™ ROS Integration Overview - Stereolabs](https://www.stereolabs.com/docs/isaac-ros)**
>
> NVIDIA® Isaac™ ROS (Robot Operating System) is a collection of NVIDIA® CUDA®-accelerated computing packages and AI models designed to streamline and expedite the development of advanced AI robotics …

---

<div class="post-metadata">

**Author:** ![Giorgos](https://community.stereolabs.com/user_avatar/community.stereolabs.com/giorgos/32/5414_2.png) [@Giorgos](https://community.stereolabs.com/u/Giorgos)\
**Post date:** [November 24, 2025, 2:59pm UTC](https://community.stereolabs.com/t/build-error-within-camera-hpp-file/10403/3 "2025-11-24T14:59:09Z")

</div>

Hi Myzar,

I am installing on top of isaac ros dev 3.2 my own custom image that combines both the Zed SDK & dependencies, and some other libraries that I need for my project. I could not find a better way to do this, because using the environment from your guide, I am missing some necessary libraries like onnx-runtime-gpu.

I have followed the guide carefully to tweak the install\_zed\_aarch64.sh, so there shouldn’t be a problem with the version I pull.

Side note : The AI is suggesting that the compilation error might be related to using C++20 standard, which “requires the constructor to have the unqualified type”, that is for instance, Vector2(..) instead of Vector2\< T \> (…) . I need to confirm this.

---

<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:** [November 24, 2025, 3:03pm UTC](https://community.stereolabs.com/t/build-error-within-camera-hpp-file/10403/4 "2025-11-24T15:03:22Z")

</div>

> [@Giorgos](#):
>
> Side note : The AI is suggesting that the compilation error might be related to using C++20 standard, which “requires the constructor to have the unqualified type”, that is for instance, Vector2(..) instead of Vector2(…) . I need to confirm this.

Please change the CMake configuration to use C++17 instead of C++20.

---

<div class="post-metadata">

**Author:** ![Giorgos](https://community.stereolabs.com/user_avatar/community.stereolabs.com/giorgos/32/5414_2.png) [@Giorgos](https://community.stereolabs.com/u/Giorgos)\
**Post date:** [November 24, 2025, 3:04pm UTC](https://community.stereolabs.com/t/build-error-within-camera-hpp-file/10403/5 "2025-11-24T15:04:04Z")

</div>

I cannot do that unfortunately, I am using features from c++ 20.

---

<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:** [November 24, 2025, 3:45pm UTC](https://community.stereolabs.com/t/build-error-within-camera-hpp-file/10403/6 "2025-11-24T15:45:36Z")

</div>

Are you using the latest ZED SDK v5.1.1?

---

<div class="post-metadata">

**Author:** ![Giorgos](https://community.stereolabs.com/user_avatar/community.stereolabs.com/giorgos/32/5414_2.png) [@Giorgos](https://community.stereolabs.com/u/Giorgos)\
**Post date:** [November 25, 2025, 7:21am UTC](https://community.stereolabs.com/t/build-error-within-camera-hpp-file/10403/7 "2025-11-25T07:21:39Z")

</div>

I am using ZED SDK v5.0

---

<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:** [November 25, 2025, 8:28am UTC](https://community.stereolabs.com/t/build-error-within-camera-hpp-file/10403/8 "2025-11-25T08:28:19Z")

</div>

Please update to [ZED SDK v5.1.](https://www.stereolabs.com/en-fr/developers/release)

 ![image](https://community.stereolabs.com/uploads/default/original/2X/3/330cf2cd2a352e6a5b675fb480ac39513a7aea16.png)

---

<div class="post-metadata">

**Author:** ![Giorgos](https://community.stereolabs.com/user_avatar/community.stereolabs.com/giorgos/32/5414_2.png) [@Giorgos](https://community.stereolabs.com/u/Giorgos)\
**Post date:** [November 25, 2025, 8:29am UTC](https://community.stereolabs.com/t/build-error-within-camera-hpp-file/10403/9 "2025-11-25T08:29:21Z")

</div>

oh cool, thanks! ~~
