UPDATE: The first post has been updated following upstream changes. It also covers addidional steps required to build DKMS drivers if you have Secure boot (UEFI) enabled on your PC.
Rod, Thanks for the update. I am trying again from the start on a i7 hp g2 mini. I have come across an error while compiling
Code:
cnc@cnc:~/dev/linuxcnc-ethercat$ sudo make install
make[1]: Entering directory '/home/cnc/dev/linuxcnc-ethercat/src'
mkdir -p /usr/lib/linuxcnc/modules
make[2]: Entering directory '/home/cnc/dev/linuxcnc-ethercat/src'
gcc -o lcec_conf.o -Os -g -I. -I/build/linuxcnc-vf7ZID/linuxcnc-2.9.0~pre1+git20230208.f1270d6ed7/src/include -DUSPACE -fno-fast-math -mieee-fp -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/usr/include/linuxcnc -DSIM -fPIC -URTAPI -U__MODULE__ -DULAPI -Os -c lcec_conf.c
In file included from lcec_conf.c:31:
lcec_conf.h:22:10: fatal error: ecrt.h: No such file or directory
22 | #include "ecrt.h"
| ^~~~~~~~
compilation terminated.
make[2]: *** [user.mk:22: lcec_conf.o] Error 1
make[2]: Leaving directory '/home/cnc/dev/linuxcnc-ethercat/src'
make[1]: *** [Makefile:11: install] Error 2
make[1]: Leaving directory '/home/cnc/dev/linuxcnc-ethercat/src'
make: *** [Makefile:11: install] Error 2
cnc@cnc:~/dev/linuxcnc-ethercat$ sudo find / -name "ecrt.h"
find: ‘/run/user/1000/doc’: Permission denied
/usr/src/ethercat-dkms-1.5.2/include/ecrt.h
cnc@cnc:~/dev/linuxcnc-ethercat$
I read the part you wrote "becasue you have not installed halcompile (in shipped in linuxcnc-uspace-dev)" but I for sure installed linuxcnc-uspace-dev. As you can see from the error, there is trouble finding ecrt.h even though the find command shows the file here /usr/src/ethercat-dkms-1.5.2/include/ecrt.h.
***EDIT... I forgot mention that i did try the spoiler and it didnt change anything also i tried adding a symbolic link with this line but the error is still the same
Code:
sudo ln -s /usr/src/ethercat-dkms-1.5.2/include/
Do you know where i should go from here?
thanks