I am getting an error when running the ./configure step
configure: error: Failed to find Linux sources. Use --with-linux-dir!
I found the linux headers in another forum channel, but the linux headers do no not exist in the same location when running within this nvidia container.
Let me know if anyone has runinto a similiar issue.
Cheers,
Sahil
Hi @sahilbhakt, IIRC the containers don’t typically have the linux kernel headers added, because containers are supposed to be agnostic of the underlying kernel. It would seem that this ROS package builds a kernel module driver, and you would probably encounter additional issues in the container at the point of loading that kernel module (because again that’s not typically done within containers)
If you are able to run JetPack 6, it’s based on Ubuntu 22.04 which has tier-1 support in ROS - meaning it has their pre-built debian packages available for it in the ROS apt repository, and you can just install ROS the ‘normal way’ without needing my container (which builds ROS from source for distro versions which do not have tier-1 support)
I believe that should at least make it easier for you to deal with kernel modules, but do not personally have experience with EtherCAT driver on Jetson, so if you encounter issues specific to that you may want to search the forums or contact their support. Then again with some hacking of their setup scripts and mounted devices, you may very well be able to get it working inside container (or some combination of loading the built kernel module outside container), however this third-party software is outside my scope.