Error when starting LinuxCNC: “undefined symbol: kinematicsSwitch”

More
1 year 7 months ago #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:
Code:
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:

Attachment not found


Attachment not found


Attachment not found


Attachment not found


Attachment not found



Any help would be greatly appreciated!

Please Log in to join the conversation.

More
1 year 7 months ago #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:
Code:
[TRAJ] COORDINATES = X Y Z NO_FORCE_HOMING = 1 MAX_LINEAR_VELOCITY = 100.0 DEFAULT_VELOCITY = 50.0


Try changing it to:
Code:
[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

Please Log in to join the conversation.

More
1 year 7 months ago #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:
Code:
loadrt [KINS]KINEMATICS

That solved this issue for me.

Please Log in to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum