Cura源码在Ubuntu15.04上如何编译脚本
发表于:2025-12-02 作者:千家信息网编辑
千家信息网最后更新 2025年12月02日,这篇文章主要介绍Cura源码在Ubuntu15.04上如何编译脚本,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!Cura是著名的3D打印切片和控制软件。新的版本采用Qt和Pyt
千家信息网最后更新 2025年12月02日Cura源码在Ubuntu15.04上如何编译脚本
这篇文章主要介绍Cura源码在Ubuntu15.04上如何编译脚本,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
Cura是著名的3D打印切片和控制软件。新的版本采用Qt和Python进行了重构,界面变化也非常大,目前还在开发中,运行问题还有不少。这里介绍如何从源代码进行Cura的编译,可以抢先体验新版的界面设计和根据需要进行订制。
这个把相关的脚本都集成到一起了。做了几个重要的改进,基本可以成功运行了。
官方原脚本在这里:https://github.com/Ultimaker/cura-build
主要的改进包括:
1、可以自动判断目录,如没有自动创建,如有则进行源码更新。原脚本安装后更新需要手工一步步进行,很麻烦。
2、改变gtest的安装源到github,原来的是从google下载,由于国内访问不到会导致编译出错。
3、合并 plugins目录,将Uranium\plugins复制到Cura\plugins下,避免找不到插件的错误。
注意:
1、进libArcus将Cmakelists.txt里的add_subdirectory(examples)这一行注释掉,要不编译不过去。
2、目前CuraEngine编译还有些问题,无法执行切片操作。
把下面的内容保存到cura.sh,然后sudo chmod +x cura.sh添加执行权限,然后./cura.sh就Ok了。需要的软件会自动下,时间较长,需要耐心等待。
#!/bin/bash# This is a script which get the latest git repo and build them.## Tested under ubuntu 15.04, lower versions don't have PyQT 5.2.1 which is required by curacd ~if [ ! -d "dev" ]; then mkdir devficd devsudo apt-get install -y git cmake cmake-gui autoconf libtool python3-setuptools curl python3-pyqt5.* python3-numpy qml-module-qtquick-controls#protobuf.#https://github.com/google/protobuf.gitecho "================================="echo "Install Protobuf."if [ ! -d "protobuf" ]; then git clone https://github.com/Ultimaker/protobuf.git cd protobufelse cd protobuf git pull fiecho "================================="echo "get gtest."if [ ! -d "gtest" ]; then git clone https://github.com/kgcd/gtest.gitelse git pullfiecho "================================="echo "get gmock."if [ ! -d "gmock" ]; then git clone https://github.com/krzysztof-jusiak/gmock.gitelse git pull fiecho "Build Protobuf."./autogen.sh./configure --prefix=/usrmake -j4sudo make installsudo ldconfigcd pythonpython3 setup.py buildsudo python3 setup.py installcd ../..echo "================================="echo "Install libArcus."if [ ! -d "libArcus" ]; then git clone https://github.com/Ultimaker/libArcus cd libArcuselse cd libArcus git pull fiif [ ! -d "build" ]; then mkdir buildficd build#cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packagescmake .. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packagesmake -j4sudo make installcd ../../echo "================================="echo "Install CuraEngine."if [ ! -d "CuraEngine" ]; then git clone https://github.com/Ultimaker/CuraEngine.git cd CuraEngineelse cd CuraEngine git pull fiif [ ! -d "build" ]; then mkdir buildficd build#cmake .. -DCMAKE_INSTALL_PREFIX=/usrcmake .. make -j4sudo make installcd ../../echo "================================="echo "Install Uranium."if [ ! -d "Uranium" ]; then git clone https://github.com/Ultimaker/Uranium.git cd Uraniumelse cd Uranium git pull fiif [ ! -d "build" ]; then mkdir buildficd build#cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packages -DURANIUM_PLUGINS_DIR=/usr/lib/python3.4/dist-packagescmake .. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packages -DURANIUM_PLUGINS_DIR=/usr/lib/python3.4/dist-packagessudo make installcd ../..echo "================================="echo "Install Cura."if [ ! -d "Cura" ]; then git clone https://github.com/Ultimaker/Cura.git cd Curaelse cd Cura git pull ficd ..echo "Build finished."echo "============================================================================"echo "Merge Resource into Cura/resources/"cp -rv Uranium/resources/* Cura/resources/echo "Merge Plugins into Cura/plugins/"cp -rv Uranium/plugins/* Cura/plugins/echo "Link:"$PWD"/CuraEngine/build/CuraEngine"sudo ln -s $PWD/CuraEngine/build/CuraEngine /usr/bin/CuraEngineecho "Starting Cura......"cd Curapython3 cura_app.pyecho "You need add to /etc/profile:export PYTHONPATH=/usr/lib/python3/dist-packages"echo "============================================================================="
以上是"Cura源码在Ubuntu15.04上如何编译脚本"这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注行业资讯频道!
编译
脚本
源码
内容
界面
目录
篇文章
软件
问题
更新
运行
著名
重要
成功
耐心
一行
价值
兴趣
官方
小伙
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
滨湖区互联网智能科技产品是什么
网络安全教育家长应该怎么做
0基础如何软件开发
软件开发在医院值得吗
全国著名网络安全干警
ios如何编程软件开发
aix 服务器进程状态查看
网上外卖系统数据库设计
伊犁软件开发规定
一份网络安全秘籍
mysql数据库查询好慢
数据库编译按钮
软件开发过程中的下游成果
枣庄智慧乡镇软件开发
郑州畅玩网络技术有限公司
三级小说软件开发
青岛网络安全答题
数据服务器管理的好处
福建应用软件开发排名
互联网和科技结合
审核软件开发过程
软件开发转技术还是转管理好
工业互联网科技公司郭玉宾
access由于数据库
所有数据库
正规数据库备份收费
新乡市鹏鹏网络技术有限公司
网络安全行业企业有多少家
数据库和vs的下载顺序
陈兴蜀 获网络安全