Closed SimonSchwaiger closed 1 year ago
Could you please double-check the following:
/usr/local/cuda-11.4/targets/aarch64-linux/include/nvToolsExt.h
exist on your host?
ls /usr/local/cuda-11.4/targets/aarch64-linux/include/nvToolsExt.h
build/
, log/
, install/
folders in the ROS workspace and build again?Thank you for the quick reply! I have verified that /usr/local/cuda-11.4/targets/aarch64-linux/include/nvToolsExt.h
exists on both the host and the container. Unfortunately, deleting the build
log
and install
directories and rebuilding does not fix the error.
I did some further debugging over the weekend to isolate, whether or not the issue stems from the Docker setup or something else. On the host, cuda-nvtx-11-4
seems to be installed correctly according to apt-cache, however, CMake fails to find nvToolsExt
even outside of the Docker container. CMake finds other components, such as cudart
for example, without any issue.
Just to be sure, does the corresponding .so
file also exist? /usr/local/cuda-11.4/targets/aarch64-linux/lib/nvToolsExt.so
Could you try uninstalling and reinstalling cuda-nvtx-11-4
via apt
?
I can confirm that the .so file did exist as well. Interestingly, I could not get the extensions to be detected and only a complete reflash of the Jetson's OS allowed me to solve the issue. The install procedure and utilised Jetpack version are the same as the previous install; only now nvtx is found without any problem.
Since I managed to get everything working, I will close the issue. Thank you again for your help and best regards.
This also happen when you building a package that already build in some other workspace so if you already build a package in some other workspace just source it and build the remaining packages.
I am also running into this same issue, however it is only affecting the rviz2 plugin
--- stderr: nvblox_rviz_plugin
/usr/bin/ld: cannot find -lnvToolsExt
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/nvblox_rviz_plugin.dir/build.make:308: libnvblox_rviz_plugin.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:138: CMakeFiles/nvblox_rviz_plugin.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Hello, I have been trying to follow the Tutorial For Realsense-based Reconstruction on a Jetson Xavier NX 16GB board running a freshly flashed Jetpack 5.1.1 install. As suggested by the tutorial, all components are set up in the dev Docker container on an external SSD and all dependencies are able to be resolved by rosdep.
However, when I try to build my ros 2 workspace using colcon, I get an error indicating that CMake can not find nvToolsExt. When running the Docker container and nvblox environment as shown in the tutorial, I get the following error:
I have verified that
cuda-nvtx-11-4
is installed on the host and that the shared objects relating to nvToolsExt as well asnvToolsExtCuda.h
are present. Furthemore, I did try to alter therun_dev.sh
script to mountlibnvToolsExt.so.1.0.0
andlibnvToolsExt.so.1
to the container in addition tolibnvToolsExt.so
, which is mounted by default.As a last resort, I have tried to manually set CUDA_nvToolsExt_LIBRARY statically in nvblox' CmakeLists.txt to point to the correct libraries. While the build progresses further than before, the linker produces the following error, saying that it can not link to nvToolsExt:
Unfortunately I have arrived at a dead end when researching solutions.
Any help would be greatly appreciated. Best regards and thank you in advance.
-- Edit: Attached CMake logfile from nvblox
steams.log