ubuntu22.04环境编译CuraEngine5.4

该文详细介绍了如何准备CuraEngine的编译环境,包括安装Python3-pip和cmake,配置Conan,从GitHub克隆CuraEngine源码,以及编译release和Debug版本的步骤。特别提到了使用conaninstall命令来管理依赖,并指定了不同构建类型的设置。
摘要由CSDN通过智能技术生成

   准备编译环境

  a) 安装依赖:sudo apt install python3-pip ninja-build

  b) 安装cmake 3.26.4: sudo snap install cmake --classic

1、配置Conan

pip install conan==1.56
conan config install https://github.com/ultimaker/conan-config.git
conan profile new default --detect --force

2、下载CuraEngine代码

git clone https://github.com/Ultimaker/CuraEngine.git
cd CuraEngine

git checkout 5.4  #切换到5.4分支

3、编译release版本

conan install . --build=missing --update
# optional for a specific version: conan install . curaengine/<version>@<user>/<channel> --build=missing --update
cmake --preset release
cmake --build --preset release

Debug版本编译

conan install . --build=missing --update -s build_type=Debug -o curaengine:enable_testing=True
cmake --preset debug
cmake --build --preset debug

DUltimaker官方编译CuraEngine说明文档

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值