This repository contains build scripts used to build Cura and all depenencies from scratch.
- Install CMake (available via homebrew or cmake.org)
- Install latest version of Xcode.
- Run these commands:
git clone git@github.com:Ultimaker/cura-build.git
cd cura-build
mkdir build
cd build
cmake ..
make
On Windows, the following dependencies are needed for building:
- CMake (http://www.cmake.org/)
- MinGW-W64 >= 4.9.04 (http://mingw-w64.org/doku.php)
- Python 3.4 (http://python.org/, note that using Python 3.5 is currently untested on Windows)
Additonally, for 32-bit builds:
- Perl (http://www.activestate.com/activeperl, Required to build Qt)
For 64-bit builds:
- PyQt 5.4 (https://riverbankcomputing.com/software/pyqt/download5, Building PyQt currently fails using MinGW 64-bit)
- Numpy from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy (Building numpy also fails with MinGW 64-bit)
For creating installer we use NSIS 3: http://nsis.sourceforge.net/Main_Page
Make sure these dependencies are available from your path.
To build, clone the repository, then create a build directory. From that directory, run "env_win32.bat" when doing 32-bit builds and "env_win64.bat" for 64-bit builds. Then run CMake using the MinGW Generator. Finally, call "mingw32-make" to build everything and "mingw32-make package" to build the installer.
cura-build can build Ubuntu/Debian packages of Cura.
Dependencies:
- python3 (>= 3.4.0)
- python3-pyqt5 (>= 5.4.0)
- python3-pyqt5.qtopengl (>= 5.4.0)
- python3-pyqt5.qtquick (>= 5.4.0)
- python3-pyqt5.qtsvg (>= 5.4.0)
- python3-numpy (>= 1.8.0)
- python3-serial (>= 2.6)
- python3-sip
- python3-opengl (>= 3.0)
- python3-setuptools
- python3-dev
- qml-module-qtquick2 (>= 5.4.0)
- qml-module-qtquick-window2 (>= 5.4.0)
- qml-module-qtquick-layouts (>= 5.4.0)
- qml-module-qtquick-dialogs (>= 5.4.0)
- qml-module-qtquick-controls (>= 5.4.0)
- zlib1g
- build-essential
- cmake
To build, make sure these dependencies are installed, then clone this repository and run the following commands from your clone:
mkdir build
cd build
cmake ..
make
make package