zed-ros2-wrapper icon indicating copy to clipboard operation
zed-ros2-wrapper copied to clipboard

Docker image build fail at zed_components

Open ruoshiwen opened this issue 8 months ago • 2 comments

Preliminary Checks

  • [X] This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • [X] This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

I was trying to build a docker image following instructions in docker folder.

Steps to Reproduce

  1. git clone --recursive [email protected]:stereolabs/zed-ros2-wrapper.git
  2. cd zed-ros2-wrapper/docker
  3. ./desktop_build_dockerfile_from_sdk_ubuntu_and_cuda_version.sh ubuntu22.04 cuda12.1.0 zedsdk4.1.2 ...

Expected Result

An image built

Actual Result

44.60 Starting >>> zed_components
44.66 -- The C compiler identification is GNU 11.4.0
44.72 -- The CXX compiler identification is GNU 11.4.0
44.73 -- Detecting C compiler ABI info
44.81 -- Detecting C compiler ABI info - done
44.81 -- Check for working C compiler: /usr/bin/cc - skipped
44.81 -- Detecting C compile features
44.81 -- Detecting C compile features - done
44.82 -- Detecting CXX compiler ABI info
44.89 -- Detecting CXX compiler ABI info - done
44.90 -- Check for working CXX compiler: /usr/bin/c++ - skipped
44.90 -- Detecting CXX compile features
44.90 -- Detecting CXX compile features - done
44.90 -- Looking for sgemm_
44.97 -- Looking for sgemm_ - not found
44.97 -- Looking for pthread.h
45.04 -- Looking for pthread.h - found
45.04 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
45.12 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
45.12 -- Found Threads: TRUE  
45.14 CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
45.14   Could NOT find BLAS (missing: BLAS_LIBRARIES)
45.14 Call Stack (most recent call first):
45.14   /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
45.14   /usr/share/cmake-3.22/Modules/FindBLAS.cmake:1337 (find_package_handle_standard_args)
45.14   /usr/local/zed/zed-config.cmake:36 (find_package)
45.14   CMakeLists.txt:81 (find_package)
45.14 
45.14 
45.14 CMake Error at CMakeLists.txt:81 (find_package):
45.14   Found package configuration file:
45.14 
45.14     /usr/local/zed/zed-config.cmake
45.14 
45.14   but it set ZED_FOUND to FALSE so package "ZED" is considered to be NOT
45.14   FOUND.
45.14 
45.14 
45.14 -- Configuring incomplete, errors occurred!
45.14 See also "/root/ros2_ws/build/zed_components/CMakeFiles/CMakeOutput.log".
45.14 See also "/root/ros2_ws/build/zed_components/CMakeFiles/CMakeError.log".
45.15 --- stderr: zed_components
45.15 CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
45.15   Could NOT find BLAS (missing: BLAS_LIBRARIES)
45.15 Call Stack (most recent call first):
45.15   /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
45.15   /usr/share/cmake-3.22/Modules/FindBLAS.cmake:1337 (find_package_handle_standard_args)
45.15   /usr/local/zed/zed-config.cmake:36 (find_package)
45.15   CMakeLists.txt:81 (find_package)
45.15 
45.15 
45.15 CMake Error at CMakeLists.txt:81 (find_package):
45.15   Found package configuration file:
45.15 
45.15     /usr/local/zed/zed-config.cmake
45.15 
45.15   but it set ZED_FOUND to FALSE so package "ZED" is considered to be NOT
45.15   FOUND.
45.15 
45.15 
45.15 ---
45.15 Failed   <<< zed_components [0.54s, exited with code 1]
45.17 
45.17 Summary: 1 package finished [14.0s]
45.17   1 package failed: zed_components
45.17   1 package had stderr output: zed_components
45.17   2 packages not processed
------
Dockerfile.desktop-humble:120
--------------------
 119 |     
 120 | >>> RUN /bin/bash -c "source /opt/ros/$ROS_DISTRO/setup.bash && \
 121 | >>>   apt-get update -y || true && \
 122 | >>>   rosdep install --from-paths src --ignore-src -r -y && \
 123 | >>>   colcon build --parallel-workers $(nproc) --symlink-install \
 124 | >>>   --event-handlers console_direct+ --base-paths src \
 125 | >>>   --cmake-args ' -DCMAKE_BUILD_TYPE=Release' \
 126 | >>>   ' -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs' \
 127 | >>>   ' -DCMAKE_CXX_FLAGS="-Wl,--allow-shlib-undefined"' " && \
 128 | >>>   rm -rf /var/lib/apt/lists/*
 129 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c /bin/bash -c \"source /opt/ros/$ROS_DISTRO/setup.bash &&   apt-get update -y || true &&   rosdep install --from-paths src --ignore-src -r -y &&   colcon build --parallel-workers $(nproc) --symlink-install   --event-handlers console_direct+ --base-paths src   --cmake-args ' -DCMAKE_BUILD_TYPE=Release'   ' -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs'   ' -DCMAKE_CXX_FLAGS=\"-Wl,--allow-shlib-undefined\"' \" &&   rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 1

ZED Camera model

ZED2i

Environment

Ubuntu 20.04
CPU amd
gpu nvidia 3060

Anything else?

No response

ruoshiwen avatar Jun 06 '24 11:06 ruoshiwen