准备工作,安装好Ubuntu后,修改源设置,见 https://blog.csdn.net/randyran/article/details/86564754 中的第1步,以加快apt-get install X的速度。

CuraEngine编译

1. 编译安装protobuf

(1)安装必要工具
sudo apt-get install autoconf automake libtool curl make g++ git
(2)下载 protobuf 库
git clone https://github.com/protocolbuffers/protobuf
(3) cd protobuf
(4) git submodule update --init --recursive
(5) ./autogen.sh
(6) ./configure
(7) make -j4
(8) make check
(9) sudo make install
(10) sudo ldconfig #refresh shared library cache

2. 安装CMake

(1) sudo apt-get install build-essential
(2) wget http://www.cmake.org/files/v3.13/cmake-3.13.3.tar.gz
(3) tar xvf cmake-3.13.3.tar.gz
(4) cd cmake-3.13.3
(5) ./configure
(6) make -j4
(7) sudo apt-get install checkinstall
(8) sudo checkinstall
(9) sudo make install

3. 安装python3.6及python3.6-dev(Ubuntu18.04自带Python3.6)

(1) sudo add-apt-repository ppa:jonathonf/python-3.6,随后按Enter确认
(3) sudo apt-get update
(4) sudo apt-get install python3.6
(5) sudo apt-get install python3.6-dev

4. 安装python3-sip-dev

sudo apt-get install python3-sip-dev

5. 编译libArcus库

git clone https://github.com/Ultimaker/libArcus.git
cd libArcus
mkdir build && cd build
cmake ..
make
sudo make install

6. 升级至C++11(如果是Ubuntu16及以上的用户可以略过此步骤)

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9 gcc-4.9-multilib g++-4.9 g++-4.9-multilib
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90
sudo update-alternatives --config gcc
sudo update-alternatives --config g++

7. 编译安装CuraEngine

git clone https://github.com/Ultimaker/CuraEngine.git
cd CuraEngine
mkdir build && cd build
cmake ..
make

(参考 https://blog.csdn.net/phmatthaus/article/details/84143704 )

Cura编译

本调试环境为Ubuntu 18.04 + Python 3.6 + Pycharm,环境配置见 https://blog.csdn.net/randyran/article/details/86564754

1. 安装依赖库(git cmake已经在编译CuraEngine时安装了)

sudo apt-get install zlib1g-dev
sudo apt-get install python3-scipy python3-pip
sudo pip3 install Shapely -i https://pypi.tuna.tsinghua.edu.cn/simple
sudo pip3 install pyserial PyQt5==5.10 -i https://pypi.tuna.tsinghua.edu.cn/simple

2. 安装SIP

(1) 下载SIP 4.19.2+
https://www.riverbankcomputing.com/software/sip/download
(2) 解压
tar xvf sip-4.19.13.tar.gz
(3) In the Terminal, navigate to the extracted folder:
$ cd [SIP PATH]
(4) Next, we will install SIP by running the following commands:
$ python3 configure.py
$ make
$ sudo make install

3. Savitar(目前使用的3.6 branch,master 4.0未测试)

(1) clone the libSavitar repository to a directory of your choosing (replace [LIBSAVITAR PATH]):
$ git clone https://github.com/Ultimaker/libSavitar.git [LIBSAVITAR PATH]
(2) Go to the repository directory, and create a build directory and switch to it:
$ cd [LIBSAVITAR PATH]
$ mkdir build && cd build
(3) Configure and build libSavitar using the following commands:
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$VIRTUAL_ENV -DCMAKE_PREFIX_PATH=$VIRTUAL_ENV -DBUILD_STATIC=ON -DBUILD_PYTHON=ON -DBUILD_EXAMPLES=OFF ..
$ make -j4
$ sudo make install

4. Charon

clone the libCharon repository to a directory of your choosing (replace [LIBCHARON PATH]):
$ git clone https://github.com/Ultimaker/libCharon.git
[LIBCHARON PATH]
Go to the repository directory, and create a build directory and switch to it:
$ cd [LIBCHARON PATH]
$ mkdir build && cd build
Configure and build libCharon using the following commands:
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$VIRTUAL_ENV -DCMAKE_PREFIX_PATH=$VIRTUAL_ENV ..
$ make -j4
$ sudo make install

5. CuraEngine

Clone the CuraEngine repository to a directory of your choosing (replace [CURAENGINE PATH]):
$ git clone https://github.com/Ultimaker/CuraEngine.git [CURAENGINE PATH]
Go to the repository directory, and create a build directory and switch to it:
$ cd [CURAENGINE PATH]
$ mkdir build && cd build
Configure and build CuraEngine using the following commands:
$ cmake ..
$ make -j4
$ sudo make install

6. Cura & Uranium

Clone the Cura, Uranium, and fdm_materials repositories to directories of your choosing (replace [CURA PATH], [URANIUM PATH], and [FDM_MATERIALS PATH]):
$ git clone https://github.com/Ultimaker/Cura.git [CURA PATH]
$ git clone https://github.com/Ultimaker/Uranium.git [URANIUM PATH]
$ git clone https://github.com/Ultimaker/fdm_materials.git [FDM_MATERIALS PATH]

7. 链接模块及库

在Cura目录下执行“Open in Terminal”,依次执行步骤将模块和库软链接至Cura目录下

(1)Charon
ln -s /lib/python3/dist-packages/Charon .
(2)Uranium目录下的UM
ln -s /home/[你的用户名]/Uranium/UM .
(3)Arcus
ln -s /usr/local/lib/python3/dist-packages/Arcus.so .
(4)Savitar
ln -s /lib/python3/dist-packages/Savitar.so .
(5)CuraEngine
ln -s /home/ryl/CuraEngine/build/CuraEngine .

8. 将材质配置文件拷贝至Cura/resources/materials目录下

mkdir resources/materials
ln -s [FDM_MATERIALS PATH] resources/materials/fdm_materials
至此,就可以在Pycharm中run cura_app.py了。
Happy enjoy!

CuraEngine和Cura配置(Ubuntu18.04环境)相关推荐

  1. Ubuntu18.04环境下I219-LM网卡不能识别问题解决

    Ubuntu18.04环境下I219-LM网卡不能识别问题解决 背景介绍 硬件信息 驱动信息 解决过程 解决方案 注意事项 背景介绍 使用的某品牌的PC机,CPU型号为I5-1145G7(笔记本)或者 ...

  2. 解决ubuntu18.04环境下无法调整分辨率的问题

    解决ubuntu18.04环境下无法调整分辨率的问题 问题来源 一般ubuntu环境下不能调整分辨率主要是因为显卡驱动出问题,所以本文通过执行显卡驱动相关的操作解决分辨率的问题. 解决问题 如果电脑上 ...

  3. J1900 安装以及配置ubuntu18.04(1)

    安装以及配置ubuntu18.04(1) 前言 安装系统 配置系统 1.开启ssh 2.开启vnc 3.挂载硬盘 4.开机自启动程序 前言 J1900可以做什么?听过的人已经明白了,听不懂的人还要研究 ...

  4. ubuntu18.04环境下配置opencv c++环境(make实现cpp编译)

    安装环境:ubuntu18.04 opencv包:opencv-3.4.15 1.确保你的ubuntu可以联网 大多数如果初始不是ubuntu等linux系统,有可能本来支持windows,但是换了l ...

  5. 问题记录 | 配置ubuntu18.04+cuda9.0+cudnn服务器tensorflow-gpu深度学习环境

    因为实验室服务器资源有限,我被分配的服务器经常变化,但是常常就分到连显卡驱动以及cuda都没有装的服务器,真的很头疼,我已经配了四五台了,特此记录一下,以便以后直接照版本安装. Install nvi ...

  6. 深度学习环境配置 (Ubuntu18.04 + CUDA10.0 + cuDNN7.6.5 + TensorFlow2.0)

    @ Bergen, Norway 第一次安装 CUDA 的过程简直抓狂,中间出现了很多次莫名其妙的 bug,踩了很多坑.比如装好了 CUDA 重启后进不去桌面系统了,直接黑屏.比如鼠标键盘都不 wor ...

  7. jeston nano开发板 在ubuntu18.04环境下搭建的ROS和arduino小车

    一.准备安装Ubuntu系统 (在vmware上安装)#方便后面的调试 首先,需要我们去官网下载镜像文件,但是由于官方的服务器搭建在境外,因此我们更倾向于使用国内镜像进行下载,比如清华大学镜像,一般来 ...

  8. Ubuntu18.04环境下安装ERPNext 12

    前言 之前提到准备安装ERPNext进行测试,看看是否符合公司的业务形式和需求.在先后尝试了CentOS 8,Ubuntu20.04后,均未成功,因此将目标定在了CentOS 7上.结果,尝试一番又以 ...

  9. 双目立体视觉(2)- ZED2 SDK配置 Ubuntu18.04 + ROS melodic

    ZED2 SDK 官方网站: https://www.stereolabs.com/developers/release/3.1/ 目录 1. 安装Ubuntu18.04+ROSmelodic 2. ...

  10. 树莓派4B配置ubuntu18.04.5

    1 SD Card Formatter格式化sd卡 2 Win32DiskImager 烧录镜像 ubuntu-18.04.5-preinstalled-server-arm64+raspi3 3 在 ...

最新文章

  1. 【面试招聘】聊聊求职过程中的技术面试
  2. 以下十种性格的人不适合做程序员,你​赞同吗? ​
  3. 如何调度spark程序_如何定时,周期性的运行程序?Python APScheduler实现任务灵活调度...
  4. LeetCode 1452. 收藏清单(std::includes判断子集)
  5. hadoop 2.5.0安装和配置
  6. LINUX REDHAT第九单元文档
  7. 事件Event:带你体验鸿蒙轻内核中一对多、多对多任务同步
  8. 厉害|高通正利用“AI Engine”加速AI从云端走向终端应用和落地!
  9. 勒索病毒运营团伙的运作流程
  10. 实体经济不改变经营思路和销售模式
  11. 浪潮服务器bios设置 改硬盘接口,bios设置中更改硬盘接口模式为ide的方法
  12. 函数声明和函数表达式的区别
  13. 幅频特性曲线protues_频率响应,幅频特性,增益与相位裕量,波特图
  14. 有python基础学java要多久_零基础自学Java要多久
  15. Python的raw string原始字串转化为string一般字符串,还有结尾插入‘\‘的方法,还有把string转化为raw string
  16. C++学习日记——头文件的编写
  17. 一元享移动怎么样_中国移动终于认怂?29元享100G流量还不限速,网友:后悔携号转网了...
  18. 【企业微信实现免密登录以及发送消息(企业内部应用)】
  19. CTime和COleDateTime区别 比较
  20. 运维与Python之间有着怎样的联系?

热门文章

  1. php后端开发要学会哪些,PHP程序员需要学什么_后端开发
  2. 精进1-如何反思 by采铜
  3. 服务器vga接显示器无信号,显示器用HDMI转VGA接口后,无信号怎么解决
  4. 负载均衡器ribbon和LoadBalancer
  5. 世界杯最野蛮大战,巴西付出惨重代价步入四强
  6. vue v-modle修饰符.number .trim
  7. 单片机——BH1750光照传感器篇
  8. element-ui+vue给登录界面创建一个走马灯幻灯片切换
  9. 3D扁平化高绩效五项管理PPT模板
  10. 计算机基础及ms office应用,计算机基础及MS Office应用知识