SteveMacenski / spatio_temporal_voxel_layer

A new voxel layer leveraging modern 3D graphics tools to modernize navigation environmental representations
http://wiki.ros.org/spatio_temporal_voxel_layer
GNU Lesser General Public License v2.1
616 stars 183 forks source link

Installation Hiccups [Humble] on Jetson #296

Closed HappySamuel closed 2 months ago

HappySamuel commented 2 months ago

JETPACK: 5.1.2-b104 OS: Ubuntu 20.04 ROS2: Humble

After git clone the repo into colcon_ws/src, then git checkout humble, and then build the openvdb_vendor

cd openvdb_vendor && mkdir build && cd build
cmake ..
make -j$(nproc)
sudo make install

After building the openvdb_vendor, then return to colcon_ws and colcon build --symlink-install and get the following error. Any idea how shall i install TBB 2020.2 or higher version on ubuntu 20.04 ?

Screenshot from 2024-07-04 11-49-09

--- stderr: openvdb_vendor                                           
CMake Error at /usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find TBB: Found unsuitable version "2020.1", but required is at
  least "2020.2" (found /usr/include, found components: tbb)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindTBB.cmake:368 (find_package_handle_standard_args)
  openvdb/openvdb/CMakeLists.txt:133 (find_package)

Best Samuel

SteveMacenski commented 2 months ago

Humble supports 22.04, not 20.04, so I’m not sure. This is kind of the wild west if you want to use unsupported configurations unfortunately!

Docker might help here, but also note that openvdb_vendor required alot of memory to compile and I’m dubious that you could do it in the first place. Why not use docker + binaries instead?

HappySamuel commented 2 months ago

Found a solution for this TBB version issue, especially for Humble on Jetson Devices (Ubuntu 20.04)

Download following 2 files:

http://ftp.de.debian.org/debian/pool/main/t/tbb/libtbb2_2020.3-1_arm64.deb
http://ftp.de.debian.org/debian/pool/main/t/tbb/libtbb-dev_2020.3-1_arm64.deb

Install them with commands:

sudo dpkg -i libtbb2_2020.3-1_arm64.deb
sudo dpkg -i libtbb-dev_2020.3-1_arm64.deb

After upgrading the TBB version to 2020.3-1, then proceed to colcon_ws and colcon build --symlink-install

Best, Samuel