xsens / xsens_mti_ros_node

ROS node driver for Xsens devices.
84 stars 49 forks source link

Nvidia jetson orin nano, fail to build xsens_mt #77

Open FRENMBU opened 5 months ago

FRENMBU commented 5 months ago

I attempted to follow the tutorial for using the Xsens IMU with Nvidia, which can be found at https://base.movella.com/s/article/Interfacing-MTi-devices-with-the-NVIDIA-Jetson-1605870420176?language=en_US.

However, the IMU does not appear as a USB device in the /dev/ttyUSB directory. Consequently, I attempted to address this issue by referring to the problem discussed in this GitHub issue: https://github.com/xsens/xsens_mti_ros_node/issues/53.

However, I encountered another problem while building the xsens_mt package:

ni@ubuntu:~/xsens_mt$ sudo make HAVE_LIBUSB=1
make -C /lib/modules/5.15.122-tegra/build SUBDIRS=/home/ni/xsens_mt modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.122-tegra-ubuntu22.04_aarch64/3rdparty/canonical/linux-jammy/kernel-source'
  HOSTCC  scripts/sorttable
scripts/sorttable.c:34:10: fatal error: tools/be_byteshift.h: No such file or directory
   34 | #include <tools/be_byteshift.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.host:95: scripts/sorttable] Error 1
make[1]: *** [Makefile:1250: scripts] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.122-tegra-ubuntu22.04_aarch64/3rdparty/canonical/linux-jammy/kernel-source'
make: *** [Makefile:7: default] Error 2

I am using a Jetson Orin Nano with JetPack 6 and kernel version 5.15.122-tegra.