Unable to compile peak-linux-driver on NVIDIA JTX2(64-bit ke
Posted: Tue 17. Oct 2017, 13:21
Hello @all,
I would like to use a PCAN-USB device to communicate with my motor control. Actually I use a NVIDIA Jetson TX2 with Ubuntu 16.04.
After the download, I tried to compile the driver:
The compilation process ends as follows:
I have unfortunately no idea what it can be and hope for your help.
Best regards
Mathias
I would like to use a PCAN-USB device to communicate with my motor control. Actually I use a NVIDIA Jetson TX2 with Ubuntu 16.04.
After the download, I tried to compile the driver:
Code: Select all
$ sudo apt-get install --reinstall linux-headers-`uname -r`
$ sudo apt-get install build-essential checkinstall
$ sudo apt-get install module-assistant
$ make -C driver
Code: Select all
make: Entering directory '/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver'
***
*** Host machine kernel version=4.4.38-tegra
*** Driver kernel version=4.4.38-tegra (4.4.38)
*** Path to kernel sources=/usr/src/linux-headers-4.4.38-tegra
*** use KBUILD=yes
*** cc version=5.4.0
***
make -C /usr/src/linux-headers-4.4.38-tegra SUBDIRS=/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver EXTRA_CFLAGS="-I/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver -DNO_DEBUG -DMODVERSIONS -DPARPORT_SUBSYSTEM -DUSB_SUPPORT -DPCI_SUPPORT -DPCIEC_SUPPORT -DISA_SUPPORT -DDONGLE_SUPPORT -DPCCARD_SUPPORT -DNO_NETDEV_SUPPORT -DNO_RT -Wno-date-time" V=0 modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.38-tegra'
CC [M] /home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver/src/pcan_main.o
scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: "(" unexpected
scripts/Makefile.build:261: recipe for target '/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver/src/pcan_main.o' failed
make[2]: *** [/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver/src/pcan_main.o] Error 2
Makefile:1414: recipe for target '_module_/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver' failed
make[1]: *** [_module_/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.38-tegra'
Makefile:418: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/home/nvidia/Desktop/CAN/peak-linux-driver-8.4.0/driver'
Best regards
Mathias