3D打印开源切片软件Cura配置步骤

Cura

====

Read this, it's important!

===========================

If you are reading this, then you are looking at the development version of Cura. If you just want to use Cura, take a look at the following location: https://daid.github.com/Cura

Development

===========

Cura is developed in Python with a C++ engine. The part you are looking at right now is the Python GUI.

The C++ engine is responsible for generating the actual toolpath. For development of the engine check out https://github.com/Ultimaker/CuraEngine

Issues

===========

Before posting issues (either Bugs, Feature requests or Requests for information) please read our policies carefully. These will be regulary updated and can be found at https://github.com/daid/Cura/wiki/Issue-policies

Packaging


Cura development comes with a script "package.sh", this script has been designed to run under *nix OSes (Linux, MacOS, FreeBSD). For Windows the package.sh script can be run from bash using git.

The "package.sh" script generates a final release package. You should not need it during development, unless you are changing the release process. If you want to distribute your own version of Cura, then the package.sh script will allow you to do that.

The "package.sh" script understands a number of envrionement variables defined at the top of the script. Review and adjust settings to match your needs.

Both MacOS and Linux require some extra instructions for development, as you need to prepare an environment. Look below at the proper section to see what is needed.

Fedora


Fedora builds Cura by using mock, thereby enabling it to build RPMs for

every distribution that mock has a configuration file for. In pratice

this means that Fedora can build RPMs for several versions of Fedora, CentOS

and RHEL.

Cura can be built under a regular user account, there is no need to have root

privileges. In fact, having root privileges is very much discouraged.

However, the user account under which the build is performed needs to be a

member of the 'mock' group. This is accomplished as follows:


sudo usermod -a -G mock "$(whoami)"

To install the software that is required to build Cura, run the following

commands:


sudo yum install -y git rpmdevtools rpm-build mock arduino# Ensure that the Arduino tools can be found by the buildsudo mkdir -p /usr/share/arduino/hardware/tools/avrsudo ln -sf /usr/bin /usr/share/arduino/hardware/tools/avr/bin

To build and install Cura, run the following commands:


# Get the Cura software, only required oncegit clone https://github.com/daid/Cura.git Cura# Build for the current systemcd Cura./package.sh fedora# Install on the current systemsudo yum localinstall -y scripts/linux/fedora/RPMS/Cura-*.rpm

Examples of building other configurations:


# Build for Fedora rawhide x86-64 and i386./package.sh fedora fedora-rawhide-x86_64.cfg fedora-rawhide-i386.cfg# Since only the basename of the mock configurations is used, this also works:./package.sh fedora /etc/mock/fedora-21-x86_64.cfg /etc/mock/fedora-rawhide-i386.cfg

Debian and Ubuntu Linux


To build and install Cura, run the following commands:


git clone https://github.com/daid/Cura.gitsudo apt-get install python-opengl python-numpy python-serial python-setuptools python-wxgtk2.8 curlcd Cura./package.sh debian_amd64          # or debian_i386 for 32bit# this will prompt for your root password to run dpkg-debsudo dpkg -i ./scripts/linux/cura*.deb

Mac OS X


The following section describes how to prepare working environment for developing and packaing for Mac OS X.

The working environment consist of build of Python, build of wxPython and all required Python packages.

We assume you already have Apple hardware with 64bit processor and you are familiar with tools like virtualenv, virtualenvwrapper and pip. Also ensure you have modern compiler installed.

Install Python

You'll need non-system, framework-based, universal with deployment target set to 10.6 build of Python 2.7

non-system: Output of

python -c "import sys; print sys.prefix"

should not start with "/System/Library/Frameworks/Python.framework/".

framework-based: Output of

python -c "import distutils.sysconfig as c; print(c.get_config_var('PYTHONFRAMEWORK'))"

should be non-empty string. E.g. Python.

universal: Output of

lipo -info `which python`

should include both i386 and x86_64. E.g "Architectures in the fat file: /usr/local/bin/python are: i386 x86_64".

deployment target set to 10.6: Output of

otool -l `which python`

should contain "cmd LC_VERSION_MIN_MACOSX ... version 10.6".

The easiest way to install it is via Homebrew using the formula from Cura's repo:

brew install --build-bottle --fresh Cura/scripts/darwin/python.rb --universal

Note if you already have Python installed via Homebrew, you have to uninstall it first.

You can also install official build.

Configure Virtualenv

Create new virtualenv. If you have virtualenvwrapper installed:

mkvirtualenv Cura

wxPython cannot be installed via pip, we have to build it from source by specifing prefix to our virtualenv.

Assuming you have virtualenv at ~/.virtualenvs/Cura/ and wxPython sources at ~/Downloads/wxPython-src-2.9.4.0/:

  1. cd into ~/Downloads/wxPython-src-2.9.4.0/ and configure the sources:

     ./configure \CFLAGS='-msse2 -mno-sse3 -mno-sse4' \CXXFLAGS='-msse2 -mno-sse3 -mno-sse4' \--disable-debug \--enable-clipboard \--enable-display \--enable-dnd \--enable-monolithic \--enable-optimise \--enable-std_string \--enable-svg \--enable-unicode \--enable-universal_binary=i386,x86_64 \--enable-webkit \--prefix=$HOME/.virtualenvs/Cura/ \--with-expat \--with-libjpeg=builtin \--with-libpng=builtin \--with-libtiff=builtin \--with-macosx-version-min=10.6 \--with-opengl \--with-osx_cocoa \--with-zlib=builtin
  2. make install

    Note to speedup the process I recommend you to enable multicore build by adding the -jcores flag:

    make -j4 install

    Chances are high that compilation will fail with type mismatch error in Obj-C code. If it's the case then apply a patch at scripts/darwin/wxPython-src-2.9.4.0.patch.

    If it won't fix all the errors, just modify source files manually by casting types to those expected by clang.

  3. cd into ~/Downloads/wxPython-src-2.9.4.0/wxPython/

  4. Build wxPython (Note python is the python of your virtualenv):

     python setup.py build_ext \BUILD_GIZMOS=1 \BUILD_GLCANVAS=1 \BUILD_STC=1 \INSTALL_MULTIVERSION=0 \UNICODE=1 \WX_CONFIG=$HOME/.virtualenvs/Cura/bin/wx-config \WXPORT=osx_cocoa
  5. Install wxPython (Note python is the python of your virtualenv):

     python setup.py install \--prefix=$HOME/.virtualenvs/Cura \BUILD_GIZMOS=1 \BUILD_GLCANVAS=1 \BUILD_STC=1 \INSTALL_MULTIVERSION=0 \UNICODE=1 \WX_CONFIG=$HOME/.virtualenvs/Cura/bin/wx-config \WXPORT=osx_cocoa
  6. Create file ~/.virtualenvs/Cura/bin/pythonw with the following content:

     #!/bin/bashENV=`python -c "import sys; print sys.prefix"`PYTHON=`python -c "import sys; print sys.real_prefix"`/bin/pythonexport PYTHONHOME=$ENVexec $PYTHON "$@"

At this point virtualenv is configured for wxPython development.

Remember to use python for pacakging and pythonw to run app for debugging.

Install Python Packages

Required python packages are specified in requirements.txt and requirements_darwin.txt

If you use virtualenv, installing requirements as easy as pip install -r requirements_darwin.txt

Install Arduino.app

Arduino.app is required to compile certain components used by Cura. Tested version on Mac OS X is 1.0.5 but recent releases should also work.

Package Cura into application

Ensure that virtualenv is activated, so python points to the python of your virtualenv (e.g. ~/.virtualenvs/Cura/bin/python). Use package.sh to build Cura:

./package.sh darwin

Note that application is only guaranteed to work on Mac OS X version used to build and higher, but may not support lower versions.

E.g. Cura built on 10.8 will work on 10.8 and 10.7, but not on 10.6. In other hand, Cura built on 10.6 will work on 10.6, 10.7 and 10.8.

FreeBSD


On FreeBSD simply use the Port Tree (cd /usr/ports/cad/cura) to create (make package) and install (make install) the package as root. Port will check for all necessary dependencies. You can also use the provided binary package with pkg install Cura.

If you want to create an archive for local use the package.sh freebsd script (as an ordinary user) will give you a tarball with the program.

转载于:https://www.cnblogs.com/JarvisCJ/p/7137285.html

3D打印开源切片软件Cura配置步骤相关推荐

  1. 3D打印开源软件Cura分析(1) 【转】

    http://www.sohu.com/a/236241465_100000368 Cura是Ultimaker公司开发的3D打印开源软件,在所有的3D打印开源软件中应属上乘之作,很有研究的价值.国内 ...

  2. 3d打印 开源_公开地图以实现可持续性,在农场进行3D打印以及更多开源新闻

    3d打印 开源 在本周的开源新闻摘要中,我们介绍了Ubuntu 15.04 Vivid Vervet的新版本,服务器场中的3D打印,实现可持续性的开放式地图等等. 开源新闻摘要:2015年4月18日至 ...

  3. 国产3D打印数据准备软件重磅发布新版本,助力2万用户效率提升

    正如3D打印技术参考在此前曾介绍过的,漫格科技推出的VoxelDance工业级3D打印准备软件工业用户量已超2万,并与国内重量级的增材制造OEM厂商,如铂力特.易加三维.汉邦科技.鑫精合.雷佳等均已达 ...

  4. puppet开源的软件自动化配置和部署工具——本质就是CS,服务端统一管理配置...

    1.  概述 puppet是一个开源的软件自动化配置和部署工具,它使用简单且功能强大,正得到了越来越多地关注,现在很多大型IT公司均在使用puppet对集群中的软件进行管理和部署,如google利用p ...

  5. 3d打印 开源_Hovalin:开源3D打印小提琴

    3d打印 开源 Twitter上最近关于开放源3D打印小提琴的消息使我寻找有关何瓦林的更多信息. 3D打印的宇宙大都与机器人和无人机有关,因此看到混合的小提琴让我停下来,对这个独特的项目感到好奇. 我 ...

  6. linux的3d软件下载,3d切片软件下载 FlashPrint(3D闪铸切片软件) V4.6.2 linux版 64位 下载-脚本之家...

    FlashPrint一款3D切片软件,该软件是由闪铸科技推出,此款为用户打造提供支持手动添加删除支撑.内外径补偿.2d转3d以及智能模型分割等功能,适用于win.mac.linux等操作系统,本站提供 ...

  7. 【VTK+增材CAM】3D打印模型切片

    目的 模型切片在3D打印喷头路径规划中是非常重要的一环.实现切片的算法有很多,主流的思想是平面与模型三角面片求交得到相交的线段,再将这些线段组织连接成折线轮廓,以便接下来进行切片层内的路径规划.下文将 ...

  8. 3D打印切片软件--cura的二次开发

    本来前段时间就要写的,只因为那会的收效比较小,有些东西还一窍不通,当然现在也还是有些不大明白,但是最起码刚刚跳出了cura主界面还是不枉这几天工作: 废话不多说了,就把最近我做过的东西,学到的东西以及 ...

  9. 3D打印切片软件cura的使用方法

    由于ANY CUBIC 无法在脱机的情况下打印stl文件,必须使用cura软件将STL文件转成gcode格式的文件. 使用的方法还是蛮简单的,具体如下: 1.下载cura 15.0.46并安装.密码: ...

最新文章

  1. Hibernate- 子查询
  2. 比特币诞生十周年:价格虽然成功,但中本聪愿景却未实现
  3. 100W无线电耦合功率测试实验
  4. java socket抓取资源_Java 通过 Socket 的形式抓取网页内容
  5. android 输入锁屏密码错误,安卓系统手机锁屏密码输错被停用了如何解决
  6. 深入理解JavaScript定时函数setTimeout
  7. IIS7 授权配置错误
  8. 【Web】让你的web页面滚动更有趣
  9. tensorflow学习(2.网络模型的存储以及提取)
  10. 一起来看流星雨剧情简介/剧情介绍/剧情分集介绍第三十集
  11. Linux 命令之 locate -- 文件查找工具(查找文件/搜索文件)
  12. 前端学习(1558):ng-repeat命令
  13. C语言中二维数组名与数组地址、首行地址、首行首元素地址关系与区别详解(初学者必须掌握)
  14. 高性能ORM 框架之 MySqlSugar
  15. CocoaPods安装记录
  16. ccna学习指南,入门必备
  17. mp3文件修复软件 linux,mp3音乐文件损坏修复软件 MP3 Repair Tool
  18. 由NTC电阻值 计算温度 C语言,NTC热敏电阻温度计算方法,Steinhart-Hart方程和B值法(转)...
  19. java自举_Javac为什么是由java写的?(关于自举)
  20. 最新注册谷歌账号详细步骤,解决“此电话号码无法验证”问题

热门文章

  1. 基于面部视频的实时心率检测系统 day four
  2. 汇编语言0x2c,ARM汇编语言(4) 指令、伪操作、伪指令学习
  3. 非线性规划(二): Matlab 求解约束极值问题
  4. 自然资源一体化平台(一站式服务平台)
  5. 在unity中创建python机器学习环境
  6. Java 对一组时间进行处理 提出连续的时间段
  7. Angular+PrimeNg 分页器给后端传参分页
  8. java 二维卡尔曼滤波_卡尔曼滤波 – Kalman Filtering
  9. 小哈机器人发布新品_小哈教育机器人H2是什么时候正式发布的?
  10. 怎么判断电脑是32位还是64位呢