Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running the EMCApplication atop the Machinekit-HAL backend #1

Open
cerna opened this issue Jul 28, 2020 · 2 comments
Open

Running the EMCApplication atop the Machinekit-HAL backend #1

cerna opened this issue Jul 28, 2020 · 2 comments

Comments

@cerna
Copy link
Contributor

cerna commented Jul 28, 2020

This is preview/beta version

This repository is (somewhat working) culmination of long-standing discussions and struggles to get the Enhanced Motion Controller from LinuxCNC to run with Machinekit-HAL backend. (Most recently discussed in issue machinekit/machinekit-hal#267.)

Given the fact that most work in Machinekit went to the portion which then became the Machinekit-HAL and the CNC portion which consists of the Machinekit-CNC package started to rot away, porting the actively developed EMC was termed as the best option in the short run.

(This doesn't mean that the Machinekit-CNC project is dead. It is very much alive for anybody willing to spend the time and do some development. This is just another option to the myriad of others which can run atop the Machinekit-HAL.)

Current status can be previewed in Docker container with the following commands:

docker run --rm -it -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/dri:/dev/dri debian:buster
apt update
apt install sudo curl
echo "ALL ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers
adduser mk
su mk
curl -1sLf \
  'https://dl.cloudsmith.io/public/machinekit/machinekit/cfg/setup/bash.deb.sh' \
  | sudo -E bash
curl -1sLf \
  'https://dl.cloudsmith.io/public/machinekit/machinekit-hal/cfg/setup/bash.deb.sh' \
  | sudo -E bash
curl -1sLf \
  'https://dl.cloudsmith.io/public/machinekit/emcapplication/cfg/setup/bash.deb.sh' \
  | sudo -E bash
sudo apt install emcapplication
sudo -i
echo -e 'ANNOUNCE_IPV4=0\nANNOUNCE_IPV6=0' >> /etc/machinekit/machinekit.ini
exit
linuxcnc
@cerna
Copy link
Contributor Author

cerna commented Jul 28, 2020

Done

  • Build EMC against external HAL (by @zultron and @ArcEye)
  • Package as emcapplication when building with Machinekit-HAL (by @cerna)

Not done yet

  • Correctly exporting all variables when running tests and differentiating between Machinekit-HAL's and EMCApplication's runtests executable
  • Automatic building, testing and upload of packages to Machinekit/EMCApplication repository in CI/CD pipeline

@jallwine
Copy link

jallwine commented Oct 2, 2020

Thank you for all your efforts on getting EMCApplication working! Do you have a sense of how ready it is to use? One issue I've seen is the discrepancy between EMCApplication python modules being built for Python 2, whereas MachineKit-HAL is now Python 3. I recognize that this should be fixed in LinuxCNC, so I'll try to ask about this there. Are there any other known outstanding issues?

cerna pushed a commit to cerna/EMCApplication that referenced this issue Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants