In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Cura source code on Ubuntu15.04 how to compile the script, the article introduces in great detail, has a certain reference value, interested friends must read it!
Cura is a famous 3D printing slice and control software. The new version is refactored with Qt and Python, and the interface has changed a lot. at present, it is still under development, and there are still a lot of running problems. Here is how to compile Cura from the source code, you can first experience the new version of the interface design and customize as needed.
This integrates all the relevant scripts. Several important improvements have been made and can basically be run successfully.
The official original script is here: https://github.com/Ultimaker/cura-build
Major improvements include:
1, you can automatically determine the directory, if not automatically created, if any, then update the source code. The update of the original script after installation needs to be done step by step by hand, which is very troublesome.
2. Change the installation source of gtest to github, which was originally downloaded from google. Due to the lack of domestic access, it will lead to compilation errors.
3. Merge the plugins directory and copy Uranium\ plugins to Cura\ plugins to avoid the error that the plug-in cannot be found.
Note:
1. Enter libArcus to comment out the line add_subdirectory (examples) in Cmakelists.txt, or you can't compile it.
2. At present, there are still some problems with CuraEngine compilation, and the slicing operation cannot be performed.
Save the following to cura.sh, then sudo chmod + x cura.sh adds execute permissions, and then. / cura.sh is Ok. The required software will be automatically downloaded for a long time 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 pullfiecho "Build Protobuf.". / autogen.sh./configure-- prefix=/usrmake-j4sudo make installsudo ldconfigcd pythonpython3 setup.py buildsudo python3 setup.py installcd. /.. 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. -DCMAKE_INSTALL_PREFIX=/usr-DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packagescmake.. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packagesmake-j4sudo make installcd. /.. / 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.. Make-j4sudo make installcd. /.. / 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. -DCMAKE_INSTALL_PREFIX=/usr-DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packages-DURANIUM_PLUGINS_DIR=/usr/lib/python3.4/dist-packagescmake.. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packages-DURANIUM_PLUGINS_DIR=/usr/lib/python3.4/dist-packagessudo make installcd.. /.. echo "=" echo "Install Cura." if [!-d "Cura"] Then git clone https://github.com/Ultimaker/Cura.git cd Curaelse cd Cura git pull ficd.. 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" = "above is all the content of the article" how Cura source code compiles scripts on Ubuntu15.04 " Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 210
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.