NVIDIA-ISAAC-ROS / isaac_ros_nitros

NVIDIA Isaac Transport for ROS package for hardware-acceleration friendly movement of messages
Other
95 stars 18 forks source link

Colcon build fails inside of dockerfile #27

Closed mstiehm-NF closed 1 year ago

mstiehm-NF commented 1 year ago

Hi. I am trying to build this inside of a dockerfile to have the executable as part of my image and I am unable to build this package. It fails with:

--- stderr: isaac_ros_nitros
/usr/bin/ld: cannot find -lnvToolsExt
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/isaac_ros_nitros_exe.dir/build.make:162: isaac_ros_nitros_exe] Error 1
make[1]: *** [CMakeFiles/Makefile2:185: CMakeFiles/isaac_ros_nitros_exe.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
---
Failed   <<< isaac_ros_nitros [2min 31s, exited with code 2]

I am running the build on my jetson and have tried adding these lines to make sure the libraries are available during build, but and having no luck.

VOLUME ["/usr/local/cuda-11.4/targets/aarch64-linux/lib/"]
VOLUME ["/usr/local/cuda-11.4/targets/aarch64-linux/include/"]

ENV LD_LIBRARY_PATH /usr/local/cuda-11.4/targets/aarch64-linux/lib/:$LD_LIBRARY_PATH

Other isaac_ros packages are building just fine though. Is there a way to make sure that the nvToolsExt gets linked correctly?

mstiehm-NF commented 1 year ago

Ah, I see #20 I will try that and see if it works

swapnesh-wani-nvidia commented 1 year ago

@mstiehm-NF, does solution to #20 worked for you?

mstiehm-NF commented 1 year ago

We ended up adding all the individual files from run_dev and it worked.