Error when starting LinuxCNC: “undefined symbol: kinematicsSwitch”

More
10 Mar 2025 15:06 #323611 by workshop54
Hi everyone,

I’ve been stuck on this issue for quite a while now and I cannot figure out what’s going wrong. I’m very new to LinuxCNC, but I’ve been programming for quite a few years (and I feel like a junior dev all over again! ).

I’m getting an error when trying to run LinuxCNC with my linuxcnc.ini file. I hope someone can help explain what’s going on and how to fix it.

Here is the output when I start LinuxCNC:
johan@LinuxCNC:~/linuxcnc/configs/maho_mh400e$ linuxcnc linuxcnc.ini
LINUXCNC - 2.9.4
Machine configuration directory is ‘/home/johan/linuxcnc/configs/maho_mh400e’
Machine configuration file is ‘linuxcnc.ini’
Starting LinuxCNC…
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./maho_mh400e.hal
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 192.168.1.121: INFO: Hardware address (MAC): 00:60:1b:18:80:0f
hm2_eth: discovered 7I94T
hm2/hm2_7i94.0: Low Level init 0.15
hm2/hm2_7i94.0: Smart Serial Firmware Version 43
Board hm2_7i94.0.7i77.0.1 Hardware Mode 0 = standard
Board hm2_7i94.0.7i77.0.1 Software Mode 0 = analogout_enables
hm2/hm2_7i94.0: 42 I/O Pins used:
...
motmod: dlopen: /usr/lib/linuxcnc/modules/motmod.so: undefined symbol: kinematicsSwitch
./maho_mh400e.hal:7: waitpid failed /usr/bin/rtapi_app motmod
./maho_mh400e.hal:7: /usr/bin/rtapi_app exited without becoming ready
./maho_mh400e.hal:7: insmod for motmod failed, returned -1
Shutting down and cleaning up LinuxCNC...
hm2_eth: in hm2_eth_reset
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
    /home/johan/linuxcnc_debug.txt
    /home/johan/linuxcnc_print.txt
as well as in the output of ‘dmesg’ and in the terminal.

Has anyone encountered this before? I suspect it’s related to the motmod module, but I’m not sure how to resolve it.

I’ve attached the relevant configuration and log files:

File Attachment:

File Name: linuxcnc_info.txt
File Size:3 KB

File Attachment:

File Name: linuxcnc.ini
File Size:1 KB

File Attachment:

File Name: maho_mh400e.hal
File Size:2 KB

File Attachment:

File Name: linuxcnc_debug.txt
File Size:0 KB

File Attachment:

File Name: linuxcnc_print.txt
File Size:1 KB


Any help would be greatly appreciated!
Attachments:

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

More
10 Mar 2025 16:22 - 10 Mar 2025 16:24 #323617 by Todd Zuercher
I think you might be missing some essential entries in the [TRAJ] section of your ini file and one that's there may be named wrong.

You have:
[TRAJ]

COORDINATES = X Y Z
NO_FORCE_HOMING = 1
MAX_LINEAR_VELOCITY = 100.0
DEFAULT_VELOCITY = 50.0


Try changing it to:
[TRAJ]

COORDINATES =  X Y Z
NO_FORCE_HOMING = 1
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 50.0
MAX_LINEAR_VELOCITY = 100.0
Last edit: 10 Mar 2025 16:24 by Todd Zuercher.

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

More
10 Mar 2025 19:17 - 10 Mar 2025 19:18 #323624 by workshop54
Thanks Todd,

It was actually much simpler. When watching the HAL tutorial from The Feral Engineer I noticed he had the following line at the top of his HAL file:
loadrt [KINS]KINEMATICS

That solved this issue for me.
Last edit: 10 Mar 2025 19:18 by workshop54.

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

Time to create page: 0.189 seconds
Powered by Kunena Forum