Ubantu18.04下使用docker编译CuraEngine4.4
Ubantu18.04环境
文章目录
一、话不多说,直接上Github链接
github:
git clone https://github.com/LF00/curaengine-dockerfile.git
码云:
git clone https://gitee.com/jasonchen955/curaengine-dockerfile.git
二、使用步骤
1.构建Docker文件
docker build . -t cura
2.运行脚本
docker run -it cura /bin/bash
3.进入CuraEngine目录
cd /CuraEngine/build
4.获取打印机配置文件和.stl文件
wget https://raw.githubusercontent.com/Ultimaker/Cura/4.4/resources/definitions/fdmprinter.def.json
wget https://raw.githubusercontent.com/Ultimaker/Cura/4.4/resources/definitions/fdmextruder.def.json
wget https://raw.githubusercontent.com/Ultimaker/Cura/4.4/resources/definitions/prusa_i3.def.json
wget https://raw.githubusercontent.com/KrisRoofe/curaengine-dockerfile/master/herringbone-gear-large.stl
5.使用Cura引擎切片
./CuraEngine slice -p -j ./fdmprinter.def.json -j prusa_i3.def.json -l herringbone-gear-large.stl -o herringbone-gear-large.gcode
总结
Ubantu18.04下使用docker编译CuraEngine4.4