Zed_components install failed

Hi, I was following the ROS2 setup tutorial (Getting Started with ROS 2 and ZED - Stereolabs). After performing the “colcon build” line, the zed_components package failed to install. The error message says that I’ve selected the 32bit version of Unix Makefiles and to please delete the cache and use the 64bit version. However, I don’t know how to delete the cache or switch to the 64bit version. How do you do that?

I’ve listed just the error message as well as the entire output below for reference. I’m using ROS2 Humble on Ubuntu 22.04 via WSL2 (Windows Subsystem for Linux 2). The camera I’ll be using is the Zed 2i.

Error Message

CMake Error at /mnt/c/Program Files (x86)/ZED SDK/zed-config.cmake:55 (message):
  You've selected the 32bit version of Unix Makefiles.

   Please delete the cache (file->Delete Cache) and use the 64bit version. (Unix Makefiles Win64)
Call Stack (most recent call first):
  CMakeLists.txt:81 (find_package)


CMake Error at CMakeLists.txt:81 (find_package):
  Found package configuration file:

    /mnt/c/Program Files (x86)/ZED SDK/zed-config.cmake

  but it set ZED_FOUND to FALSE so package "ZED" is considered to be NOT
  FOUND.

|
|
|
Entire Output

$ colcon build --symlink-install --cmake-args=-DCMAKE_BUILD_TYPE=Release

[1.819s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
        'examples_rclcpp_minimal_timer' is in: /opt/ros/humble
        'examples_rclpy_minimal_client' is in: /opt/ros/humble
        'examples_rclpy_executors' is in: /opt/ros/humble
        'examples_rclpy_minimal_action_client' is in: /opt/ros/humble
        'examples_rclcpp_minimal_client' is in: /opt/ros/humble
        'examples_rclpy_minimal_action_server' is in: /opt/ros/humble
        'examples_rclpy_minimal_service' is in: /opt/ros/humble
        'examples_rclcpp_minimal_subscriber' is in: /opt/ros/humble
        'examples_rclcpp_minimal_action_client' is in: /opt/ros/humble
        'examples_rclpy_minimal_publisher' is in: /opt/ros/humble
        'examples_rclcpp_minimal_composition' is in: /opt/ros/humble
        'examples_rclcpp_minimal_publisher' is in: /opt/ros/humble
        'examples_rclcpp_minimal_service' is in: /opt/ros/humble
        'examples_rclpy_minimal_subscriber' is in: /opt/ros/humble
        'examples_rclcpp_multithreaded_executor' is in: /opt/ros/humble
        'examples_rclcpp_minimal_action_server' is in: /opt/ros/humble
If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time.
If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.

If you understand the risks and want to override a package anyways, add the following to the command line:
        --allow-overriding examples_rclcpp_minimal_action_client examples_rclcpp_minimal_action_server examples_rclcpp_minimal_client examples_rclcpp_minimal_composition examples_rclcpp_minimal_publisher examples_rclcpp_minimal_service examples_rclcpp_minimal_subscriber examples_rclcpp_minimal_timer examples_rclcpp_multithreaded_executor examples_rclpy_executors examples_rclpy_minimal_action_client examples_rclpy_minimal_action_server examples_rclpy_minimal_client examples_rclpy_minimal_publisher examples_rclpy_minimal_service examples_rclpy_minimal_subscriber

This may be promoted to an error in a future release of colcon-override-check.
Starting >>> zed_interfaces
Starting >>> examples_rclcpp_async_client
Starting >>> examples_rclcpp_cbg_executor
Starting >>> examples_rclcpp_minimal_action_client
Starting >>> examples_rclcpp_minimal_action_server
Starting >>> examples_rclcpp_minimal_client
Starting >>> examples_rclcpp_minimal_composition
Starting >>> examples_rclcpp_minimal_publisher
Finished <<< examples_rclcpp_minimal_action_server [0.92s]
Finished <<< examples_rclcpp_async_client [1.10s]
Finished <<< examples_rclcpp_cbg_executor [1.11s]
Starting >>> examples_rclcpp_minimal_service
Finished <<< examples_rclcpp_minimal_client [1.12s]
Starting >>> examples_rclcpp_minimal_subscriber
Starting >>> examples_rclcpp_minimal_timer
Starting >>> examples_rclcpp_multithreaded_executor
Finished <<< examples_rclcpp_minimal_publisher [1.22s]
Finished <<< examples_rclcpp_minimal_action_client [1.42s]
Starting >>> examples_rclcpp_wait_set
Starting >>> examples_rclpy_executors
Finished <<< examples_rclcpp_minimal_composition [1.54s]
Starting >>> examples_rclpy_guard_conditions
Finished <<< examples_rclcpp_minimal_service [1.82s]
Finished <<< examples_rclcpp_multithreaded_executor [1.67s]
Starting >>> examples_rclpy_minimal_action_client
Finished <<< zed_interfaces [3.24s]
Finished <<< examples_rclcpp_minimal_timer [1.94s]
Starting >>> zed_components
Starting >>> examples_rclpy_minimal_action_server
Starting >>> examples_rclpy_minimal_client
Finished <<< examples_rclcpp_wait_set [1.98s]
Finished <<< examples_rclcpp_minimal_subscriber [2.27s]
Starting >>> examples_rclpy_minimal_publisher
Starting >>> examples_rclpy_minimal_service
--- stderr: examples_rclpy_executors
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< examples_rclpy_executors [3.37s]
--- stderr: examples_rclpy_guard_conditions
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< examples_rclpy_guard_conditions [3.23s]
Starting >>> examples_rclpy_minimal_subscriber
Starting >>> examples_rclpy_pointcloud_publisher
--- stderr: zed_components
CMake Error at /mnt/c/Program Files (x86)/ZED SDK/zed-config.cmake:55 (message):
  You've selected the 32bit version of Unix Makefiles.

   Please delete the cache (file->Delete Cache) and use the 64bit version. (Unix Makefiles Win64)
Call Stack (most recent call first):
  CMakeLists.txt:81 (find_package)


CMake Error at CMakeLists.txt:81 (find_package):
  Found package configuration file:

    /mnt/c/Program Files (x86)/ZED SDK/zed-config.cmake

  but it set ZED_FOUND to FALSE so package "ZED" is considered to be NOT
  FOUND.


---
Failed   <<< zed_components [2.93s, exited with code 1]
Aborted  <<< examples_rclpy_minimal_client [2.82s]
Aborted  <<< examples_rclpy_minimal_action_server [2.89s]
Aborted  <<< examples_rclpy_minimal_publisher [2.64s]
Aborted  <<< examples_rclpy_minimal_action_client [3.17s]
Aborted  <<< examples_rclpy_minimal_service [2.58s]
Aborted  <<< examples_rclpy_minimal_subscriber [0.84s]
Aborted  <<< examples_rclpy_pointcloud_publisher [0.77s]

Summary: 15 packages finished [7.56s]
  1 package failed: zed_components
  7 packages aborted: examples_rclpy_minimal_action_client examples_rclpy_minimal_action_server examples_rclpy_minimal_client examples_rclpy_minimal_publisher examples_rclpy_minimal_service examples_rclpy_minimal_subscriber examples_rclpy_pointcloud_publisher
  3 packages had stderr output: examples_rclpy_executors examples_rclpy_guard_conditions zed_components
  3 packages not processed

Hi @stalbot
Welcome to the Stereolabs community.

The problem is that you are trying to build a Linux package with the ZED SDK installed in the Windows OS.
You must install the ZED SDK also in Ubuntu in WSL2 and use this to build the ROS 2 Wrapper.

Your problem is similar to this:

I understand. I’ll install the ZED SDK within WSL2. Thanks!

Hmm, I’m still getting the same error even after installing ZED SDK 4.08 within Ubuntu in WSL2. I made sure to install the cuda toolkit and executed the ZED_SDK_Ubuntu22_cuda12.1_v4.0.8.zstd.run file in my root directory. Both were installed successfully. Below is the log of the ZED SDK installation. Any thoughts on what could still be wrong?

ZED SDK Installation Successful

$ ./ZED_SDK_Ubuntu22_cuda12.1_v4.0.8.zstd.run
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing 'ZED camera SDK by Stereolabs (Use 'sudo apt install zstd' if zstd is not found)'  100%
Ubuntu version 22.04 detected. OK
To continue you have to accept the EULA. Accept  [Y/n] ?y
Installing...
Installation path: /usr/local/zed
Checking CUDA version...
OK: Found CUDA 12.3
Do you want to install ZED Hub module ? [Y/n] ?y
Do you want to also install the static version of the ZED SDK (AI module will still require libsl_ai.so) [Y/n] ?y
Do you want to install the AI module (required for Object detection and Neural Depth, recommended), cuDNN 8.8 and TensorRT 8.6 will be installed [Y/n] ?y
Install samples (recommended) [Y/n] ?y
Installation path: /usr/local/zed/samples/
Do you want to auto-install dependencies (recommended) ? following packet will be installed via the package manager : libjpeg-turbo8 libturbojpeg libusb-1.0-0 libusb-1.0-0-dev libopenblas-dev libarchive-dev libv4l-0 curl unzip zlib1g mesa-utils libpng-dev python3-dev python3-pip python3-setuptools libglew-dev freeglut3-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5opengl5 libqt5svg5 [Y/n] ?y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libjpeg-turbo8 is already the newest version (2.1.2-0ubuntu1).
libjpeg-turbo8 set to manually installed.
libpng-dev is already the newest version (1.6.37-3build5).
libpng-dev set to manually installed.
libglew-dev is already the newest version (2.2.0-4).
libglew-dev set to manually installed.
libqt5svg5 is already the newest version (5.15.3-1).
libqt5svg5 set to manually installed.
qtchooser is already the newest version (66-2build1).
qtchooser set to manually installed.
curl is already the newest version (7.81.0-1ubuntu1.14).
libusb-1.0-0 is already the newest version (2:1.0.25-1ubuntu2).
libusb-1.0-0 set to manually installed.
libusb-1.0-0-dev is already the newest version (2:1.0.25-1ubuntu2).
libusb-1.0-0-dev set to manually installed.
python3-dev is already the newest version (3.10.6-1~22.04).
python3-dev set to manually installed.
python3-setuptools is already the newest version (59.6.0-1.2ubuntu0.22.04.1).
python3-setuptools set to manually installed.
zlib1g is already the newest version (1:1.2.11.dfsg-2ubuntu9.2).
zlib1g set to manually installed.
libqt5opengl5 is already the newest version (5.15.3+dfsg-2ubuntu0.2).
libqt5opengl5 set to manually installed.
qt5-qmake is already the newest version (5.15.3+dfsg-2ubuntu0.2).
qt5-qmake set to manually installed.
qtbase5-dev is already the newest version (5.15.3+dfsg-2ubuntu0.2).
qtbase5-dev set to manually installed.
qtbase5-dev-tools is already the newest version (5.15.3+dfsg-2ubuntu0.2).
qtbase5-dev-tools set to manually installed.
The following additional packages will be installed:
  libopenblas-pthread-dev libopenblas0 libopenblas0-pthread libv4lconvert0 mesa-utils-bin python3-wheel
Suggested packages:
  zip
The following NEW packages will be installed:
  freeglut3-dev libarchive-dev libopenblas-dev libopenblas-pthread-dev libopenblas0 libopenblas0-pthread libturbojpeg
  libv4l-0 libv4lconvert0 mesa-utils mesa-utils-bin python3-pip python3-wheel unzip
0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.1 MB of archives.
After this operation, 121 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 freeglut3-dev amd64 2.8.1-6 [126 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libarchive-dev amd64 3.6.0-1ubuntu1 [581 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libopenblas0-pthread amd64 0.3.20+ds-1 [6803 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libopenblas0 amd64 0.3.20+ds-1 [6098 B]
Get:5 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libopenblas-pthread-dev amd64 0.3.20+ds-1 [4634 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libopenblas-dev amd64 0.3.20+ds-1 [18.6 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libturbojpeg amd64 2.1.2-0ubuntu1 [175 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 libv4lconvert0 amd64 1.22.1-2build1 [82.4 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy/main amd64 libv4l-0 amd64 1.22.1-2build1 [44.9 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy/universe amd64 mesa-utils-bin amd64 8.4.0-1ubuntu1 [53.8 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-wheel all 0.37.1-2ubuntu0.22.04.1 [32.0 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-pip all 22.0.2+dfsg-1ubuntu0.4 [1305 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 unzip amd64 6.0-26ubuntu3.1 [174 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy/universe amd64 mesa-utils amd64 8.4.0-1ubuntu1 [1065 kB]
Fetched 15.1 MB in 9s (1616 kB/s)
Selecting previously unselected package freeglut3-dev:amd64.
(Reading database ... 137229 files and directories currently installed.)
Preparing to unpack .../00-freeglut3-dev_2.8.1-6_amd64.deb ...
Unpacking freeglut3-dev:amd64 (2.8.1-6) ...
Selecting previously unselected package libarchive-dev:amd64.
Preparing to unpack .../01-libarchive-dev_3.6.0-1ubuntu1_amd64.deb ...
Unpacking libarchive-dev:amd64 (3.6.0-1ubuntu1) ...
Selecting previously unselected package libopenblas0-pthread:amd64.
Preparing to unpack .../02-libopenblas0-pthread_0.3.20+ds-1_amd64.deb ...
Unpacking libopenblas0-pthread:amd64 (0.3.20+ds-1) ...
Selecting previously unselected package libopenblas0:amd64.
Preparing to unpack .../03-libopenblas0_0.3.20+ds-1_amd64.deb ...
Unpacking libopenblas0:amd64 (0.3.20+ds-1) ...
Selecting previously unselected package libopenblas-pthread-dev:amd64.
Preparing to unpack .../04-libopenblas-pthread-dev_0.3.20+ds-1_amd64.deb ...
Unpacking libopenblas-pthread-dev:amd64 (0.3.20+ds-1) ...
Selecting previously unselected package libopenblas-dev:amd64.
Preparing to unpack .../05-libopenblas-dev_0.3.20+ds-1_amd64.deb ...
Unpacking libopenblas-dev:amd64 (0.3.20+ds-1) ...
Selecting previously unselected package libturbojpeg:amd64.
Preparing to unpack .../06-libturbojpeg_2.1.2-0ubuntu1_amd64.deb ...
Unpacking libturbojpeg:amd64 (2.1.2-0ubuntu1) ...
Selecting previously unselected package libv4lconvert0:amd64.
Preparing to unpack .../07-libv4lconvert0_1.22.1-2build1_amd64.deb ...
Unpacking libv4lconvert0:amd64 (1.22.1-2build1) ...
Selecting previously unselected package libv4l-0:amd64.
Preparing to unpack .../08-libv4l-0_1.22.1-2build1_amd64.deb ...
Unpacking libv4l-0:amd64 (1.22.1-2build1) ...
Selecting previously unselected package mesa-utils-bin:amd64.
Preparing to unpack .../09-mesa-utils-bin_8.4.0-1ubuntu1_amd64.deb ...
Unpacking mesa-utils-bin:amd64 (8.4.0-1ubuntu1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../10-python3-wheel_0.37.1-2ubuntu0.22.04.1_all.deb ...
Unpacking python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../11-python3-pip_22.0.2+dfsg-1ubuntu0.4_all.deb ...
Unpacking python3-pip (22.0.2+dfsg-1ubuntu0.4) ...
Selecting previously unselected package unzip.
Preparing to unpack .../12-unzip_6.0-26ubuntu3.1_amd64.deb ...
Unpacking unzip (6.0-26ubuntu3.1) ...
Selecting previously unselected package mesa-utils.
Preparing to unpack .../13-mesa-utils_8.4.0-1ubuntu1_amd64.deb ...
Unpacking mesa-utils (8.4.0-1ubuntu1) ...
Setting up libopenblas0-pthread:amd64 (0.3.20+ds-1) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3 to provide /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblas.so.0 to provide /usr/lib/x86_64-linux-gnu/libopenblas.so.0 (libopenblas.so.0-x86_64-linux-gnu) in auto mode
Setting up unzip (6.0-26ubuntu3.1) ...
Setting up python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Setting up freeglut3-dev:amd64 (2.8.1-6) ...
Setting up mesa-utils-bin:amd64 (8.4.0-1ubuntu1) ...
Setting up python3-pip (22.0.2+dfsg-1ubuntu0.4) ...
Setting up libturbojpeg:amd64 (2.1.2-0ubuntu1) ...
Setting up libopenblas0:amd64 (0.3.20+ds-1) ...
Setting up libarchive-dev:amd64 (3.6.0-1ubuntu1) ...
Setting up libv4lconvert0:amd64 (1.22.1-2build1) ...
Setting up libopenblas-pthread-dev:amd64 (0.3.20+ds-1) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so to provide /usr/lib/x86_64-linux-gnu/libblas.so (libblas.so-x86_64-linux-gnu) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so to provide /usr/lib/x86_64-linux-gnu/liblapack.so (liblapack.so-x86_64-linux-gnu) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblas.so to provide /usr/lib/x86_64-linux-gnu/libopenblas.so (libopenblas.so-x86_64-linux-gnu) in auto mode
Setting up libv4l-0:amd64 (1.22.1-2build1) ...
Setting up libopenblas-dev:amd64 (0.3.20+ds-1) ...
Setting up mesa-utils (8.4.0-1ubuntu1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.4) ...
/sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Dependencies installation complete
Do you want to install the Python API (recommended) [Y/n] ?y
Please specify your python executable: python3
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.21.5)
Traceback (most recent call last):
  File "/usr/local/zed/get_python_api.py", line 5, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
Traceback (most recent call last):
  File "/usr/local/sl_hub/get_python_api.py", line 5, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

WARNING! Python API failed to install

The ZED Python API needs to be resetup to be available (using 'python /usr/local/zed/get_python_api.py' and 'python /usr/local/sl_hub/get_python_api.py')
Failed to send reload request: No such file or directory
/sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

Do you want to run the ZED Diagnostic to download all AI models [Y/n] ?y

Downloading all AI models
Downloading: MULTI CLASS DETECTION...
/usr/local/zed/resources/obje 100%[=================================================>]  35.84M  12.6MB/s    in 2.9s
Downloading: MULTI CLASS MEDIUM DETECTION...
/usr/local/zed/resources/obje 100%[=================================================>]  81.56M  13.7MB/s    in 7.8s
Downloading: MULTI CLASS ACCURATE DETECTION...
/usr/local/zed/resources/obje 100%[=================================================>] 136.05M  15.2MB/s    in 9.0s
Downloading: HUMAN BODY FAST DETECTION...
/usr/local/zed/resources/skel 100%[=================================================>]  90.32M  15.4MB/s    in 6.1s
Downloading: HUMAN BODY MEDIUM DETECTION...
Downloading: HUMAN BODY ACCURATE DETECTION...
Downloading: HUMAN BODY 38 FAST DETECTION...
/usr/local/zed/resources/skel 100%[=================================================>]  96.10M  15.1MB/s    in 6.6s
Downloading: HUMAN BODY 38 MEDIUM DETECTION...
Downloading: HUMAN BODY 38 ACCURATE DETECTION...
Downloading: PERSON HEAD DETECTION...
/usr/local/zed/resources/pers 100%[=================================================>]   4.61M  8.99MB/s    in 0.5s
Downloading: PERSON HEAD ACCURATE DETECTION...
/usr/local/zed/resources/pers 100%[=================================================>]  53.96M  11.1MB/s    in 4.7s
Downloading: REID ASSOCIATION...
/usr/local/zed/resources/pers 100%[=================================================>]   7.97M  3.85MB/s    in 2.1s
Downloading: NEURAL DEPTH...
/usr/local/zed/resources/neur 100%[=================================================>]  17.56M  11.6MB/s    in 1.5s
Do you want to run the ZED Diagnostic to optimize all AI models, it may take a very long time, up to multiple hours but will be done only once. Otherwise it will be optimized just in time when running the ZED SDK [Y/n] ?y

Optimizing all AI models
Optimizing: MULTI CLASS DETECTION...
 Optimizing objects_performance_3.2 |  100.0%[=============================>] Done ! in 4min 47s
Optimizing: MULTI CLASS MEDIUM DETECTION...
 Optimizing objects_medium_3.2 |  100.0%[=============================>] Done ! in 4min 4s
Optimizing: MULTI CLASS ACCURATE DETECTION...
 Optimizing objects_accurate_3.2 |  100.0%[=============================>] Done ! in 4min 32s
Optimizing: HUMAN BODY FAST DETECTION...
 Optimizing skeleton_body18_3.2 |  100.0%[=============================>] Done ! in 1min 40s
Optimizing: HUMAN BODY MEDIUM DETECTION...
 Optimizing skeleton_body18_3.2 |  100.0%[=============================>] Done ! in 2min 23s
Optimizing: HUMAN BODY ACCURATE DETECTION...
 Optimizing skeleton_body18_3.2 |  100.0%[=============================>] Done ! in 3min 1s
Optimizing: HUMAN BODY 38 FAST DETECTION...
 Optimizing skeleton_body38_3.5 |  100.0%[=============================>] Done ! in 0min 39s
Optimizing: HUMAN BODY 38 MEDIUM DETECTION...
 Optimizing skeleton_body38_3.5 |  100.0%[=============================>] Done ! in 0min 55s
Optimizing: HUMAN BODY 38 ACCURATE DETECTION...
 Optimizing skeleton_body38_3.5 |  100.0%[=============================>] Done ! in 1min 12s
Optimizing: PERSON HEAD DETECTION...
 Optimizing person_head_performance_2.4 |  100.0%[=============================>] Done ! in 1min 19s
Optimizing: PERSON HEAD ACCURATE DETECTION...
 Optimizing person_head_accurate_2.4 |  100.0%[=============================>] Done ! in 2min 52s
Optimizing: REID ASSOCIATION...
 Optimizing person_reid_1.4 |  100.0%[=============================>] Done ! in 1min 14s
Optimizing: NEURAL DEPTH...
 Optimizing neural_depth_2.0 |  100.0%[=============================>] Done ! in 4min 11s


ZED SDK installation complete, with 1 warning(s)

Same Error message as Before when performing colcon build

$ colcon build --symlink-install --cmake-args=-DCMAKE_BUILD_TYPE=Release
[1.637s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
        'examples_rclcpp_minimal_timer' is in: /opt/ros/humble
        'examples_rclpy_executors' is in: /opt/ros/humble
        'examples_rclpy_minimal_action_client' is in: /opt/ros/humble
        'examples_rclcpp_minimal_subscriber' is in: /opt/ros/humble
        'examples_rclpy_minimal_client' is in: /opt/ros/humble
        'examples_rclcpp_minimal_service' is in: /opt/ros/humble
        'examples_rclcpp_minimal_composition' is in: /opt/ros/humble
        'examples_rclcpp_minimal_client' is in: /opt/ros/humble
        'examples_rclcpp_minimal_publisher' is in: /opt/ros/humble
        'examples_rclpy_minimal_publisher' is in: /opt/ros/humble
        'examples_rclcpp_minimal_action_server' is in: /opt/ros/humble
        'examples_rclpy_minimal_action_server' is in: /opt/ros/humble
        'examples_rclpy_minimal_subscriber' is in: /opt/ros/humble
        'examples_rclcpp_minimal_action_client' is in: /opt/ros/humble
        'examples_rclpy_minimal_service' is in: /opt/ros/humble
        'examples_rclcpp_multithreaded_executor' is in: /opt/ros/humble
If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time.
If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.

If you understand the risks and want to override a package anyways, add the following to the command line:
        --allow-overriding examples_rclcpp_minimal_action_client examples_rclcpp_minimal_action_server examples_rclcpp_minimal_client examples_rclcpp_minimal_composition examples_rclcpp_minimal_publisher examples_rclcpp_minimal_service examples_rclcpp_minimal_subscriber examples_rclcpp_minimal_timer examples_rclcpp_multithreaded_executor examples_rclpy_executors examples_rclpy_minimal_action_client examples_rclpy_minimal_action_server examples_rclpy_minimal_client examples_rclpy_minimal_publisher examples_rclpy_minimal_service examples_rclpy_minimal_subscriber

This may be promoted to an error in a future release of colcon-override-check.
Starting >>> zed_interfaces
Starting >>> examples_rclcpp_async_client
Starting >>> examples_rclcpp_cbg_executor
Starting >>> examples_rclcpp_minimal_action_client
Starting >>> examples_rclcpp_minimal_action_server
Starting >>> examples_rclcpp_minimal_client
Starting >>> examples_rclcpp_minimal_composition
Starting >>> examples_rclcpp_minimal_publisher
Finished <<< examples_rclcpp_async_client [0.81s]
Starting >>> examples_rclcpp_minimal_service
Finished <<< examples_rclcpp_cbg_executor [0.93s]
Finished <<< examples_rclcpp_minimal_action_client [0.99s]
Finished <<< examples_rclcpp_minimal_action_server [1.00s]
Starting >>> examples_rclcpp_minimal_subscriber
Starting >>> examples_rclcpp_minimal_timer
Starting >>> examples_rclcpp_multithreaded_executor
Finished <<< examples_rclcpp_minimal_publisher [1.08s]
Starting >>> examples_rclcpp_wait_set
Finished <<< examples_rclcpp_minimal_client [1.29s]
Finished <<< examples_rclcpp_minimal_composition [1.36s]
Starting >>> examples_rclpy_executors
Starting >>> examples_rclpy_guard_conditions
Finished <<< zed_interfaces [2.64s]
Starting >>> zed_components
Finished <<< examples_rclcpp_minimal_service [1.93s]
Starting >>> examples_rclpy_minimal_action_client
Finished <<< examples_rclcpp_minimal_timer [1.77s]
Finished <<< examples_rclcpp_multithreaded_executor [1.80s]
Finished <<< examples_rclcpp_minimal_subscriber [2.02s]
Starting >>> examples_rclpy_minimal_action_server
Starting >>> examples_rclpy_minimal_client
Starting >>> examples_rclpy_minimal_publisher
Finished <<< examples_rclcpp_wait_set [2.33s]
--- stderr: examples_rclpy_executors
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< examples_rclpy_executors [2.19s]
Starting >>> examples_rclpy_minimal_service
Starting >>> examples_rclpy_minimal_subscriber
--- stderr: examples_rclpy_guard_conditions
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< examples_rclpy_guard_conditions [3.28s]
--- stderr: zed_components
CMake Error at /mnt/c/Program Files (x86)/ZED SDK/zed-config.cmake:55 (message):
  You've selected the 32bit version of Unix Makefiles.

   Please delete the cache (file->Delete Cache) and use the 64bit version. (Unix Makefiles Win64)
Call Stack (most recent call first):
  CMakeLists.txt:81 (find_package)


CMake Error at CMakeLists.txt:81 (find_package):
  Found package configuration file:

    /mnt/c/Program Files (x86)/ZED SDK/zed-config.cmake

  but it set ZED_FOUND to FALSE so package "ZED" is considered to be NOT
  FOUND.


---
Failed   <<< zed_components [2.46s, exited with code 1]
Aborted  <<< examples_rclpy_minimal_publisher [1.73s]
Aborted  <<< examples_rclpy_minimal_service [1.23s]
Aborted  <<< examples_rclpy_minimal_subscriber [1.15s]
Aborted  <<< examples_rclpy_minimal_action_server [1.86s]
Aborted  <<< examples_rclpy_minimal_client [1.80s]
Aborted  <<< examples_rclpy_minimal_action_client [2.18s]

Summary: 15 packages finished [6.43s]
  1 package failed: zed_components
  6 packages aborted: examples_rclpy_minimal_action_client examples_rclpy_minimal_action_server examples_rclpy_minimal_client examples_rclpy_minimal_publisher examples_rclpy_minimal_service examples_rclpy_minimal_subscriber
  3 packages had stderr output: examples_rclpy_executors examples_rclpy_guard_conditions zed_components
  4 packages not processed

You are still using the old configuration. After installing the ZED SDK on WSL2 you must clean the CMake cache of your ROS 2 workspace to reconfigure the linker.
Simply delete the 3 build folders: build, install, and log.
Run sudo rm -rf build install log in the root of your ROS 2 workspace, then try to compile again.

Thanks! That worked!

1 Like