Okay Thank you. And for the other axes I take yvel and zvel?
Would recommend
yvel_cmd and
zvel_cmd, but any name will do as long as they are unique.
@deroj: I changed a small bit in my modified halcompile to show the errors (added
print("EXTRA_CFLAGS += -Wall", file=f) to line 1117). Now I can reproduce the warnings you got. Going to solve these warnings, as I believe in clean code is better code. But, how did you get those warnings on your system, did you change halcompile as well or have a certain setting somewhere? Otherwise this is also a difference between the 2.8-family and 2.9.
Edit:
I solved now all compiler warnings in the code in the branch
7-resolve-compiler-warnings. I will leave the option -Wall as default to see any new warnings. In my opinion the driver should compile without any warning.
I also started on testing why the code fails to link on LinuxCNC 2.9. Created a new development container with Debian Bullseye and LinuxCNC 2.9.0-pre1, et voila, I can reproduce the error:
Code:
halcmd: loadrt litexcnc
Note: Using POSIX non-realtime
litexcnc: dlopen: /opt/linuxcnc/rtlib/litexcnc.so: undefined symbol: json_object_array_length
<stdin>:1: waitpid failed /opt/linuxcnc/bin/rtapi_app litexcnc
<stdin>:1: /opt/linuxcnc/bin/rtapi_app exited without becoming ready
<stdin>:1: insmod for litexcnc failed, returned -1
halcmd: Note: Using POSIX non-realtime
Now have to solve this one...