Install for CLI on RPI
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!
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/
(Edit: After a new install on another pi, looks like chown of .cargo is not necessary ...)
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
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 | shClone the svg2gcode github repo
sudo git clone https://github.com/sameer/svg2gcode.gitI 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 https://github.com/sameer/svg2gcode/issues/37#issuecomment-1518924208, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUVICCXTKZ5BFUKO54WNDDXCSISPANCNFSM6AAAAAAXH6LZRI. You are receiving this because you are subscribed to this thread.Message ID: @.***>