-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Install for CLI on RPI #37
Comments
I haven't found any documentation on the install, but here is what I was able to make work. Install rust and cargo with this script per https://doc.rust-lang.org/cargo/getting-started/installation.html Clone the svg2gcode github repo I had to set permissions of directories or else I was getting a Permission denied (os error 13): (Edit: After a new install on another pi, looks like chown of .cargo is not necessary ...)
Note, on the first run of the cargo svg2gcode, it will take a long time as it builds the project. Afterwards, it is quick. Example CLI call if running from the root directory with example of an svg file in the desktop with an output to the desktop:
|
Hi MadTooler,
This installation process is pretty standard if you are familiar with Rust. It is a little confusing if you aren't so I created the web version. I'll add some info to the readme.
There are some pre-built binaries but not for aarch64 yet. https://github.com/sameer/svg2gcode/releases/tag/v0.0.6
On Sun, Apr 23, 2023, at 04:36, MadTooler wrote:
I haven't found any documentation on the install, but here is what I was able to make work.
Install rust and cargo with this script per https://doc.rust-lang.org/cargo/getting-started/installation.html
`curl https://sh.rustup.rs -sSf | sh`
Clone the svg2gcode github repo
`sudo git clone https://github.com/sameer/svg2gcode.git`
I had to set permissions of directories or else I was getting a Permission denied (os error 13):
`sudo chown -R $(whoami) /home/pi/svg2gcode/`
and again here, but I am not sure this one was needed:
`sudo chown -R $(whoami) /home/pi/.cargo/`
Note, on the first run of the cargo svg2gcode, it will take a long time as it builds the project. Afterwards, it is quick.
Example CLI call if running from the root directory with example of an svg file in the desktop with an output to the desktop:
``cargo run --manifest-path svg2gcode/Cargo.toml --release -- /home/pi/Desktop/drawing.svg --off 'M5' --on 'M4' -o /home/pi/out.gcode`
`
…
—
Reply to this email directly, view it on GitHub <#37 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACUVICCXTKZ5BFUKO54WNDDXCSISPANCNFSM6AAAAAAXH6LZRI>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
I am still not anymore familiar with rust as I only run your project from within it. When updating to your latest git, what all needs to be run? Thanks. |
I tried to pull without success. I eventually deleted the svg2gcode directory and re cloned. |
Hey, sorry I missed this! Running the below should be sufficient to get the CLI built and running locally
|
I would like to run the CLI on a raspberry pi 4b running Pi OS 64bit. Is there any documentation of the installation of svg2gcode for this purpose?
For running CLI, is there documentation of the parameters?
Thanks!
The text was updated successfully, but these errors were encountered: