library #include <rtdm/driver.h> failed in "make xeno and rtai" step

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
Florian95
Posts: 2
Joined: Tue 28. Nov 2023, 13:25

library #include <rtdm/driver.h> failed in "make xeno and rtai" step

Post by Florian95 » Tue 28. Nov 2023, 13:28

Hello,
I got the following issue while following the steps for installing PEAK.
make xeno
make[1]: Entering directory '/home/utilisateur/Downloads/peak-linux-driver-8.16.0/driver'
make RT=XENOMAI3
make[2]: Entering directory '/home/utilisateur/Downloads/peak-linux-driver-8.16.0/driver'
***
*** Making the Xenomai 3.x version of the pcan driver
***
*** Host OS Release=Ubuntu v20.04
*** Host machine kernel version=5.15.0-89-generic
*** Driver kernel version=5.15.0-89-generic (5.15.0)
*** Path to kernel sources=/usr/src/linux-headers-5.15.0-89-generic
*** use KBUILD=yes
*** use DKMS=
*** gcc version=9
***
make -C /usr/src/linux-headers-5.15.0-89-generic EXTRA_CFLAGS="-I/home/utilisateur/Downloads/peak-linux-driver-8.16.0/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DNO_USB_SUPPORT -DPCI_SUPPORT -DNO_PCIEC_SUPPORT -DISA_SUPPORT -DNO_DONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNO_NETDEV_SUPPORT -DXENOMAI3 -I/usr/xenomai/include/trank -D__XENO_COMPAT__ -I/usr/xenomai/include/cobalt -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -fasynchronous-unwind-tables -D__COBALT__ -I/usr/xenomai/include/alchemy -Wno-date-time" V=0 modules M=/home/utilisateur/Downloads/peak-linux-driver-8.16.0/driver
make[3]: Entering directory '/usr/src/linux-headers-5.15.0-89-generic'
CC [M] /home/utilisateur/Downloads/peak-linux-driver-8.16.0/driver/src/pcan_main.o
In file included from /home/utilisateur/Downloads/peak-linux-driver-8.16.0/driver/src/pcan_main.c:36:
/home/utilisateur/Downloads/peak-linux-driver-8.16.0/driver/src/pcan_common.h:301:10: fatal error: rtdm/driver.h: No such file or directory
301 | #include <rtdm/driver.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [scripts/Makefile.build:297: /home/utilisateur/Downloads/peak-linux-driver-8.16.0/driver/src/pcan_main.o] Error 1
make[3]: *** [Makefile:1909: /home/utilisateur/Downloads/peak-linux-driver-8.16.0/driver] Error 2
make[3]: Leaving directory '/usr/src/linux-headers-5.15.0-89-generic'
make[2]: *** [Makefile:523: all] Error 2
make[2]: Leaving directory '/home/utilisateur/Downloads/peak-linux-driver-8.16.0/driver'
make[1]: *** [Makefile:807: xeno] Error 2
make[1]: Leaving directory '/home/utilisateur/Downloads/peak-linux-driver-8.16.0/driver'
make: *** [Makefile:110: xeno] Error 2

I would like to mention that i am getting this failure also in "make rtai" step.
Can you please guide me step by step how can I fix the issue?
Thank you!

User avatar
S.Grosjean
Software Development
Software Development
Posts: 356
Joined: Wed 4. Jul 2012, 17:02

Re: library #include <rtdm/driver.h> failed in "make xeno and rtai" step

Post by S.Grosjean » Tue 28. Nov 2023, 14:07

Hello,

After configuring and building your Xenomai kernel, have you correctly installed the libraries?
— Stéphane

Florian95
Posts: 2
Joined: Tue 28. Nov 2023, 13:25

Re: library #include <rtdm/driver.h> failed in "make xeno and rtai" step

Post by Florian95 » Wed 29. Nov 2023, 14:53

Hello,
What libraries should be updated?
Also, xenomai is no more installed by it is showed in the documentation/steps to do.

User avatar
S.Grosjean
Software Development
Software Development
Posts: 356
Joined: Wed 4. Jul 2012, 17:02

Re: library #include <rtdm/driver.h> failed in "make xeno and rtai" step

Post by S.Grosjean » Wed 29. Nov 2023, 15:46

Hello,

This driver only supports the RTDM interface, as offered by RTAI and Xenomai 3.x.

There is no Xenomai 4 EVL driver support at the moment.

Regards,
— Stéphane

Post Reply