error can't find component

More
28 Dec 2021 17:03 #230153 by mikeross
Hi,I need some help as I can't seem to figure out what I broke.  I've been working on my toolchanger.comp and now after running:
sudo halcompile --install toolchanger.comp in terminal and getting the following:

Compiling realtime toolchanger.c
Linking toolchanger.so
cp toolchanger.so /usr/lib/linuxcnc/modules/

I can't run Linuxcnc and get an error:
HAL: ERROR: function 'toolchanger' not found
./Emco-Compact5-2021.hal:25: addf failed

This is happening on all my previous files too that used to work?  any ideas?  The comp file is defined as a singleton, and as I said, none of the versions I have from previously work..attached are my ini, hal, comp and the error report
Attachments:

Please Log in or Create an account to join the conversation.

More
28 Dec 2021 17:55 #230155 by roland
Replied by roland on topic error can't find component
this is probably due to the missing line
function _;
in your toolchanger.comp

see linuxcnc.org/docs/html/hal/comp.html

Please Log in or Create an account to join the conversation.

More
28 Dec 2021 18:31 #230158 by mikeross
Replied by mikeross on topic error can't find component
thanks - that fixed that error.

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum