CM4/rPi4
cd /etc/ld.so.conf.d
xeno.conf
sudo nano xeno.conf
# xeno dynamic libs path
/usr/xenomai/lib/
sudo reboot now
sudo ldconfig -v
git clone https://github.com/George117/Xenomai_Hello_World
src
foldercd Xenomai_Hello_World/src
make
commandmake
sudo ./hello_world
If everything went fine you should see the famous Hello world
print.
sudo ./hello_world --version
If everything worked out so far, you should see the xenomai/cobalt version printed.
Note:
Maybe you already saw the the source code for the Hello World is just a printf
. The command line option version
comes directly from the xenomai libs. Read the below documentation for details.