motion.so not found error ...

More
11 months 4 weeks ago #337666 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!

Please Log in to join the conversation.

More
11 months 4 weeks ago #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.

Please Log in to join the conversation.

More
11 months 4 weeks ago #337669 by Hakan
Replied by Hakan on topic motion.so not found error ...
The name is motmod.so
 

Please Log in to join the conversation.

More
11 months 4 weeks ago #337671 by Aciera
'motion' is not a hal component so you cannot and need not load it in hal.

Please Log in to join the conversation.

More
11 months 4 weeks ago #337672 by MusicCityMfg

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.

Please Log in to join the conversation.

More
11 months 4 weeks ago #337673 by MusicCityMfg
Thank you @Aviera and @Hakan! I will try that.

Please Log in to join the conversation.

More
11 months 4 weeks ago #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

Please Log in to join the conversation.

More
11 months 4 weeks ago #337743 by MusicCityMfg
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!

Please Log in to join the conversation.

More
11 months 4 weeks ago #337744 by tommylight

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 to join the conversation.

Time to create page: 0.095 seconds
Powered by Kunena Forum