debian 系系统编译 CuraEngine 引擎
摘要:CuraEngine是一个功能强大、快速、强劲的3D模型切片引擎.Cura就是采用了CuraEngine引擎的.
本文的操作环境为deepin 15.7,编译CuraEngine的版本为2.4
1. 安装 cmake
sudo apt install cmake
2. 安装 Protobuf >= 3.0.0
2.1 安装 libtool
sudo apt install libtool
2.2 安装 autoconf
sudo apt install autoconf
2.3 clone 代码,–depth=1.clone 最近一次提交的,可以减少 clone 时间
git clone https://github.com/protocolbuffers/protobuf.git --depth=1
2.4 进入到 protobuf 目录。执行
./autogen.sh
2.5
./configure
2.6
make
2.7
sudo make install
3. 安装 libArcus
3.1 安装 python3-dev
sudo apt install python3-dev
3.2 安装 python3-sip-dev
sudo apt install python3-sip-dev
3.3 安装 libprotobuf-dev
sudo apt install libprotobuf-dev
3.4 clone 代码
git clone https://github.com/Ultimaker/libArcus.git --depth=1
3.5 进入到 libArcus 目录,执行
mkdir build && cd build
cmake ..
3.6
make
3.7
sudo make install
4. 编译 CuraEngine
4.1 clone 代码。此处编译 2.4 版本,-b 指定版本
git clone https://github.com/Ultimaker/CuraEngine.git -b 2.4 --depth=1
4.2
mkdir build && cd build
4.3
cmake ..
4.4
make