-
Notifications
You must be signed in to change notification settings - Fork 63
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
quick start guide? #363
Comments
Unfortunately, the documentation was never a strong suit for the Machinekit project and what is available on the https://www.machinekit.io page is in big part outdated. But, so far, it is the best what's available. Sorry. I haven't yet wrote (updated) the documentation for the CMake based buildsystem, so the only documentation is the [https://github.com/machinekit/machinekit-hal#getting-started](Getting Started) section in Maybe if you have some idea what you would like to read in such a Quick guide, I could splice something up real quick...? |
I cannot speak for rockandsalt, but I would be willing to help update the quick start guide so that it actually is functional. I see that the QSG states that in most cases we can just use:
The problem is that those packages are not found anywhere, and you give no instructions on how to get them linked through the sources.list or other files in the OS to get them up and running quickly. While I found some magical curl invocations to get it a little further down the road, I am still getting unable to locate libmachinekit-hal lots of other packages. Som guidance here would be nice. I'll search more in the issues and see if this is mentioned elsewhere, but a few extra dance steps in the QSG would have saved us some pain. Once I figure out how to get it installed via the prebuilt packages I'll add it and post a pull request. I will need to have anything I write verified as I've tried so many things that it by the time I get it to run I am not sure I will know how I got here... |
@cerna, to get started I was looking for a Helloworld example either using the hal or python interface. just to get a feel of the available function and the namespace (ie where things are). |
Here are some simple notes of all of the packages I had to add starting from a clean Bullseye install on a RPi-3B. The getting started guide needs instructions to get the following to work: The system does not find any of these. It is likely that I need to configure the machine to see the Cloudsmith repository, but there are no instructions for that, so I moved forward building by hand. As a note, once I got through the section on configuring and building using GNU make, I see that there is a section on bootstraping. If the intent there is to install the necessary packages (included below), then it would be nice to have that section moved up in the document BEFORE the step by step build instructions. Here are the packages I ended up installing. Some of them are likely redundent, but at least I got it to the point where it would build mostly through: Question: is there any reason that cmake 3.22 is required? It would make more sense to use the most recent stable cmake provided -- until 3.22 becomes available -- that or build a package on Coldsmith or elsewhere. Install the following packages (probably an over estimate): I will dig around and look at repurposing the RPi-4 I have on had to see if it will build out of the box. |
Here is another list of dependencies I missed in the copy-posta: |
and another one that did not show up until about 18% thought the build:
|
another clue... The original documents: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 43DDF224 I found I needed to modify the sourcces.list and keyring by: curl -1sLf 'https://dl.cloudsmith.io/public/machinekit/machinekit-hal/cfg/gpg/gpg.D35981AB4276AC36.key' | sudo apt-key --keyring /etc/apt/trusted.gpg.d/cloudsmith-apt-key.gpg add sudo sh -c A this point I was able to run: |
thanks everybody, I am going to check it out. |
@rockandsalt you might also want to check my cleaned up notes at https://github.com/ebo/machinekit-hal I think I still have a couple of minor bugs in the write (like setting -march which I am testing in the background). Like I said, in a pit I will put in a PR. If you would be so kind as to take a look and review my quick start docs and changes, that would be great to get a review before submitting the PR. |
In case it helps anyone, I was able to get all the machinekit-hal packages built using this documentation: The only change was the buildcontainerimage.py script is under the debian directory rather than the scripts directory. Also, be sure to replace the DISTRIBUTION, VERSION and ARCHITECTURE variables properly in the commands. Once I had all the packages, I installed them and their dependencies using:
At that point, you can fire up the real time environment and start tinkering (of course, there's no G code interpreter, trajectory planner, etc. from EMCApplication or machinekit-cnc):
This creates a single HAL component siggen.0, which can then be queried over time (or hooked up to a some kind of hardware component):
|
@jallwine, thaks for this. Was this part of the section with the docker build, or the run in place? I am wondering if we should scrape the old documentation and rework it in a docs directory? Just a thought. It will likely be a few days before I can break out more time for this. |
I followed the docker build instructions for getting the deb packages. |
Thanks. There are two sections there. Just wanted to be sure. I'll
see if I can break away some time this weekend to replicate.
…On Jan 20 2022 7:54 AM, John Allwine wrote:
I followed the docker build instructions for getting the deb packages.
|
Just quick FYI, the Machinekit-HAL should be able to run from the build directory (the one specified as The activation of the right environment happens by sourcing the You can the install that same build tree without unnecessary rebuilding. (It was one of the requirements for the rework.) |
I am interested in using machinekit-hal. But I have no idea where to start, the documentation links in the readme file redirects to a blog as stated here.
Is there any new documentation? I am somewhat familiar with linuxcnc but I have no idea how much machinekit-hal has diverged from it.
The text was updated successfully, but these errors were encountered: