Cura source code on Ubuntu15.04 compile script (Success)

Source: Internet
Author: User

Cura is a well-known 3D print slicing and control software. The new version uses QT and Python refactoring, the interface changes are very large, currently in development, there are many operational problems. Here is how to cura from the source code to compile, you can first experience the new version of the interface design and according to the needs of custom-made.

This integrates the relevant scripts together. A few important improvements have been made and the basic can be successfully run.

Official original script is here: Https://github.com/Ultimaker/cura-build

The main improvements include:

1, can automatically determine the directory, such as not automatically created, if any, to update the source code. The original script after the installation of the update needs to be manually step by step, very cumbersome.

2, change the gtest installation source to GitHub, the original is downloaded from Google, because the domestic visit does not cause compilation error.

3, Merge plugins directory, copy Uranium\plugins to Cura\plugins, avoid error of plugin.

Attention:

1, into Libarcus will Cmakelists.txt in the add_subdirectory (examples) This line comment out, or compile not past.
2, there are still some problems in Curaengine compilation, unable to perform slicing operation.

Save the following to cura.sh, and then sudo chmod +x cura.sh Add execute permissions, and then./cura.sh is OK. Required software will be automatically down, longer, and need to wait patiently.

#!/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&NBSP, .... /.. 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&NBSP, ....  -DCMAKE_INSTALL_PREFIX=/USR -DPYTHON_SITE_PACKAGES_DIR=/USR/LIB/PYTHON3.4/DIST-PACKAGESCMAKE&NBSP, ....  -dpython_site_packages_dir=/usr/lib/python3.4/dist-packagesmake -j4sudo make installcd &NBSP, .... /.. /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&NBSP, ....  MAKE -J4SUDO MAKE INSTALLCD&NBSP, .... /.. /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&nbsp ...  -dcmake_install_prefix=/usr -dpython_site_packages_dir=/usr/lib/python3.4/dist-packages - DURANIUM_PLUGINS_DIR=/USR/LIB/PYTHON3.4/DIST-PACKAGESCMAKE&NBSP, ....  -dpython_site_packages_dir=/usr/lib/python3.4/dist-packages -duranium_plugins_dir=/usr/lib/ Python3.4/dist-paCKAGESSUDO MAKE INSTALLCD&NBSP, .... /.. echo  "=================================" echo  "Install cura." if [ ! -d  "Cura"  ]; then    git clone https:// Github.com/ultimaker/cura.git    cd curaelse    cd cura     GIT PULL        FICD&NBSP, .... 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 source code on Ubuntu15.04 compile script (Success)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.