forked from Ultimaker/cura-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu-15.04-build-script.sh
executable file
·51 lines (44 loc) · 1.3 KB
/
ubuntu-15.04-build-script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/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 -p 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
cd protobuf
./autogen.sh
./configure
make -j4
sudo make install
sudo ldconfig
cd python
python3 setup.py build
sudo python3 setup.py install
cd ../..
cd libArcus
mkdir build && cd build
cmake .. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.5/dist-packages
make -j4
sudo make install
cd ../../
cd CuraEngine
mkdir build && cd build
cmake ..
make -j4
cd ../../
cd Uranium
mkdir build && cd build
cmake .. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.5/dist-packages -DURANIUM_PLUGINS_DIR=/usr/lib/python3.5/dist-packages
sudo make install
cd ../..
ln -s $PWD/Uranium/resources/* Cura/resources/.
ln -s $PWD/Uranium/plugins/* Cura/plugins/.
mkdir bin
ln -s $PWD/CuraEngine/build/CuraEngine bin/CuraEngine
cd Cura
python3 cura_app.py