码迷,mamicode.com
首页 > 系统相关 > 详细

3D打印控制软件Cura源码在UbuntuKylin15.04上编译

时间:2015-07-23 15:58:58      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:

Cura在Linux上的版本总是下载不了,准备自己从源码进行编译。

下面是从https://github.com/ultimaker上下载的编译脚本。原始的脚本有一些问题,自己做了一些修改,如下:

#!/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 cura

#cd ~
mkdir dev
cd dev

sudo apt-get install -y git cmake cmake-gui autoconf libtool python3-setuptools curl python3-pyqt5.* python3-numpy qml-module-qtquick-controls
git clone https://github.com/Ultimaker/Cura.git
git clone https://github.com/Ultimaker/Uranium.git
git clone https://github.com/Ultimaker/CuraEngine.git
git clone https://github.com/Ultimaker/libArcus
git clone https://github.com/Ultimaker/protobuf.git

echo Build protobuf...
cd protobuf
./autogen.sh
./configure
make -j4
sudo make install
sudo ldconfig
cd python
python3 setup.py build
sudo python3 setup.py install
cd ../..
pwd

echo Build libArcus...
cd libArcus
mkdir build 
cd build
cmake .. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packages
make -j4
sudo make install
cd ../..
pwd

echo Build CureEngine...
cd CuraEngine
mkdir build
cd build
cmake ..
make -j4
cd ../..
pwd

echo Build Uranium
cd Uranium
mkdir build
cd build
cmake .. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packages -DURANIUM_PLUGINS_DIR=/usr/lib/python3.4/dist-packages
sudo make install
cd ../..
pwd

echo Build Final...
cp -rv Uranium/resources/* Cura/resources/
sudo ln -s $PWD/CuraEngine/build/CuraEngine /usr/bin/CuraEngine
cd Cura
python3 cura_app.py
pwd

编译结果出错:

QWidget: Must construct a QApplication before a QWidget
./ubuntu-15.04-build-script.sh: 行 62: 29168 已放弃               (核心已转储) python3 cura_app.py

谁干过这个,给指点指点。


3D打印控制软件Cura源码在UbuntuKylin15.04上编译

标签:

原文地址:http://my.oschina.net/u/2306127/blog/482848

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!