Giter Site home page Giter Site logo

weimingyu / cura-build Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ultimaker/cura-build

0.0 1.0 0.0 2.5 MB

Build scripts for Cura

License: GNU Affero General Public License v3.0

CMake 53.83% NSIS 15.69% Shell 24.54% Batchfile 0.43% Python 5.52%

cura-build's Introduction

cura-build

This repository contains build scripts used to build Cura and all dependencies from scratch.

The build has a number of dependencies. Ideally, these dependencies should be installed by the cura-build-environment repository. Even with cura-build-environment though, some things may still be missing from your system that we haven't thought of.

(WIP) Build with docker (for Linux AppImage only)

To build Linux AppImage with docker, you first need to have a working cura-build-environment docker image. Please check the WIP_fix_docker branch in cura-build-environment repository.

Assume that you have a working cura-build-environment docker image tagged as cura-build-env:centos7. To build an AppImage, run:

./scripts/build.sh

If the build is successful, the resulting AppImage will placed in the appimages/ directory.

To configure your AppImage build, you can use the following environment variables:

  • CURA_VERSION_MAJOR: Major version number of Cura (default 4)
  • CURA_VERSION_MINOR: Minor version number of Cura (default 1)
  • CURA_VERSION_PATCH: Patch version number of Cura (default 99)
  • CURA_VERSION_EXTRA: Extra version string of Cura, which will be appended after x.y.z with -<extra> (default docker)
  • CURA_BUILD_NAME: FIXME: default to docker, probably no use.
  • CURA_SDK_VERSION: SDK version of Cura in the form of semantic versioning (default 6.0.0)
  • CURA_CLOUD_API_ROOT: Root URL of Cura Cloud API (default https://api.ultimaker.com)
  • CURA_CLOUD_API_VERSION: Cura Cloud API version to use (default 1)
  • CURA_CLOUD_ACCOUNT_API_ROOT: Root URL of Cura Cloud Account API (default https://account.ultimaker.com)

OS X

  1. Install CMake (available via homebrew or cmake.org)
  2. Install latest version of Xcode.
  3. On Mac OS X > 10.10, execute command: brew link openssl --force
  4. Because Fortran is necessary: brew install gcc
  5. Run these commands:
git clone [email protected]:Ultimaker/cura-build.git
cd cura-build
mkdir build
cd build
cmake ..
make

Windows

On Windows, the following dependencies are needed for building:

Make sure these dependencies are available from your path.

REM 64-bit
git clone [email protected]:Ultimaker/cura-build.git
cd cura-build
mkdir build
cd build
..\env_win64.bat
cmake -G "MinGW Makefiles" ..
mingw32-make
mingw32-make package

Before make package - copy arduino to cura-build/

Ubuntu/Linux

cura-build can build AppImage packages of Cura. The following dependencies are required:

To build, make sure these dependencies are installed, then clone this repository and run the following commands from your clone:

git clone http://github.com/Ultimaker/cura-build.git
cd cura-build
mkdir build
cd build
cmake ..
make
make package

CentOS/Linux

cura-build can build CentOS/RHEL packages of Cura.

Dependencies:

  • gcc-gfortran
  • python34.x86_64
  • python34-devel.x86_64
  • python34-numpy.x86_64
  • pyserial.noarch
  • PyOpenGL.noarch
  • python34-setuptools.noarch
  • wxPython.x86_64
  • libstdc++-static.x86_64
  • libstdc++-devel.x86_64
  • openssl.x86_64
  • openblas-devel.x86_64
  • python34-numpy-f2py.x86_64

To build, make sure these dependencies are installed, then clone this repository and run the following commands from your clone:

sudo yum install gcc-gfortran python34.x86_64 python34-devel.x86_64 python34-numpy.x86_64 pyserial.noarch PyOpenGL.noarch python34-setuptools.noarch wxPython.x86_64 libstdc++-static.x86_64 libstdc++-devel.x86_64 openssl.x86_64 openblas-devel.x86_64 python34-numpy-f2py.x86_64
  1. download and install scipy from https://github.com/scipy/scipy/releases be sure to use python 3.5, eg. using sudo python3 setup.py 2. install (version in repository is for python 2.7)
  2. download and install CMake from https://cmake.org/download/ and configure CMake to use ssl
  3. download and install Qt5 from https://www.qt.io/download/
  4. download and install PyQt5 from https://www.riverbankcomputing.com/software/pyqt/download5
  5. download and install sip from https://www.riverbankcomputing.com/software/sip/download make sure the verion is 4.18 or newer

Alternative method for installing python at: https://edwards.sdsu.edu/research/installing-python3-4-and-the-scipy-stack-on-centos/ . Make sure, that the PYTHONPATH can find dist-packages.

git clone http://github.com/Ultimaker/cura-build.git
cd cura-build
mkdir build
cd build
cmake ..
make
make package

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.