motion.so not found error ...

  • MusicCityMfg
  • MusicCityMfg's Avatar Topic Author
  • Away
  • New Member
  • New Member
More
01 Nov 2025 19:17 - 01 Nov 2025 19:29 #337666 by MusicCityMfg
motion.so not found error ... was created by MusicCityMfg
I have installed LinuxCNC ver 2.9.7 including linuxcnc-uspace. LinuxCNC seems to be running fine.

I'm trying to learn HAL and coded "loadrt motion" in my playground HAL file.

When I open my playground config in LinuxCNC, I keep getting the error: "motion: dlopen: /usr/lib/linuxcnc/modules/motion.so: cannot open shared object file: No such file or directory"

When I run "dpkg -l | grep linuxcnc", I see: "ii  linuxcnc-uspace  1:2.9.7  amd64 motion controller for CNC machines and robots"

When I view the "/usr/lib/linuxcnc/modules" directory there is a "motmod.so" file but no "motion.so" file.

It is my understanding that motmod.so was part of LinuxCNC v2.8 and older and motion.so is part of LinuxCNC v2.9 and up.

I am a new to and just learning LinuxCNC as I prepare for a manual lathe CNC conversion.

Am I doing something wrong? Is there an issue with my LinuxCNC install?

Thanks!
Last edit: 01 Nov 2025 19:29 by MusicCityMfg.

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

More
01 Nov 2025 19:26 #337668 by rodw
Replied by rodw on topic motion.so not found error ...
All the Sims work on 2.97 so I suspect the issue is in your hal file. share it and we can look or compare with one of the Sims.
The following user(s) said Thank You: MusicCityMfg

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

More
01 Nov 2025 19:31 - 01 Nov 2025 19:31 #337669 by Hakan
Replied by Hakan on topic motion.so not found error ...
The name is motmod.so
 
Last edit: 01 Nov 2025 19:31 by Hakan.
The following user(s) said Thank You: MusicCityMfg

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

More
01 Nov 2025 19:36 #337671 by Aciera
Replied by Aciera on topic motion.so not found error ...
'motion' is not a hal component so you cannot and need not load it in hal.
The following user(s) said Thank You: MusicCityMfg

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

  • MusicCityMfg
  • MusicCityMfg's Avatar Topic Author
  • Away
  • New Member
  • New Member
More
01 Nov 2025 19:38 #337672 by MusicCityMfg
Replied by MusicCityMfg on topic motion.so not found error ...

All the Sims work on 2.97 so I suspect the issue is in your hal file. share it and we can look or compare with one of the Sims.
 

Thank you, attached is my HAL file.
Attachments:

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

  • MusicCityMfg
  • MusicCityMfg's Avatar Topic Author
  • Away
  • New Member
  • New Member
More
01 Nov 2025 19:41 #337673 by MusicCityMfg
Replied by MusicCityMfg on topic motion.so not found error ...
Thank you @Aviera and @Hakan! I will try that.

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

More
02 Nov 2025 11:45 #337704 by rodw
Replied by rodw on topic motion.so not found error ...
Review this working hal file against yours
github.com/rodw-au/showstopper/blob/master/my_Plasma.hal
nowhere is there a loadrt motion command
The following user(s) said Thank You: MusicCityMfg

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

  • MusicCityMfg
  • MusicCityMfg's Avatar Topic Author
  • Away
  • New Member
  • New Member
More
03 Nov 2025 01:58 - 03 Nov 2025 02:03 #337743 by MusicCityMfg
Replied by MusicCityMfg on topic motion.so not found error ...
Thanks for reviewing my HAL file. So I learned that there is no "motion" component. Instead, it is the "motmod" component I should be trying to load.

My bigger mistake was trying to code a HAL file by hand from scratch. I learned that I can use LinuxCNC to create a configuration which generates the ".ini" and ".hal" files. And then I can modify those if they require any other changes.

Like I said in my earlier post, I'm just learning LinuxCNC now. And on top of that, I'm trying to understand HAL, and what Mesa cards I need to buy, and what components I need for the lathe CNC conversion. I am drinking from a fire hose!

Thanks again for your help!
Last edit: 03 Nov 2025 02:03 by MusicCityMfg.
The following user(s) said Thank You: tommylight

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
03 Nov 2025 02:21 #337744 by tommylight
Replied by tommylight on topic motion.so not found error ...

My bigger mistake was trying to code a HAL file by hand from scratch.

That is never a mistake, it hugely pays off later and makes things ... well, simple.

I am drinking from a fire hose!

Isn't it refreshing ! :)

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

Time to create page: 0.073 seconds
Powered by Kunena Forum