Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compile the Cura source code of 3D printing control software on UbuntuKylin15.04

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the 3D printing control software Cura source code how to compile on UbuntuKylin15.04, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

The version of Cura on Linux is always impossible to download, so you are ready to compile it yourself from the source code.

The following is the compilation script downloaded from https://github.com/ultimaker. There are some problems with the original script. I made some changes myself, as follows:

#! / 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 "cura_dev"] Then mkdir cura_devficd cura_devsudo apt-get install-y git cmake cmake-gui autoconf libtool python3-setuptools curl python3-pyqt5.* python3-numpy qml-module-qtquick-controlsgit clone https://github.com/Ultimaker/Cura.gitgit clone https://github.com/Ultimaker/Uranium.gitgit clone https://github.com/Ultimaker/CuraEngine.gitgit clone https://github.com/Ultimaker/libArcusgit clone https://github.com/Ultimaker/protobuf.gitcd protobuf./autogen.sh./configuremake-j4sudo Make installsudo ldconfigcd pythonpython3 setup.py buildsudo python3 setup.py installcd.. /.. cd libArcusif [!-d "build"] Then mkdir buildficd buildcmake.. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packagesmake-j4sudo make installcd. /.. / cd CuraEngineif [!-d "build"]; then mkdir buildficd buildcmake.. make-j4cd. /.. / cd Uraniumif [!-d "build"]; then mkdir buildficd buildcmake. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packages-DURANIUM_PLUGINS_DIR=/usr/lib/python3.4/dist-packagessudo make installcd.. /.. cp-rv Uranium/resources/* Cura/resources/sudo ln-s $PWD/CuraEngine/build/CuraEngine / usr/bin/CuraEnginecd Curapython3 cura_app.py#export PYTHONPATH=/usr/lib/python3/dist-packages

It has been running for a long time, but the result is not very good.

Error in compilation result:

QWidget: Must construct a QApplication before a QWidget./ubuntu-15.04-build-script.sh: line 62: 29168 abandoned (core dumped) python3 cura_app.py

Well, this is the latest development code! It's normal to make a mistake.

Create an issue on https://github.com/ultimaker/Cura and submit it to see who can solve the problem.

After waiting for two days, someone else reported the same mistake, but there was no solution. I have no choice but to do further research on my own.

Go to the python console and run the source code step by step. It is found that the object UM, which is the support library for Uranium, is mainly missing, and it is found to be installed in / usr/local/lib/python3/dist-packages.

Set up:

Export PYTHONPATH=/usr/local/lib/python3/dist-packages

Run it again with an error in OpenGL, which may be a problem with the VirtualBox virtual machine. We'll continue later.

Update all libraries, you can use this script:

#! / 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 ~ cd cura_devcd protobufgit pull./autogen.sh./configuremake-j4sudo make installsudo ldconfigcd pythonpython3 setup.py buildsudo python3 setup.py installcd.. /.. cd libArcusgit pullcd buildcmake.. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packagesmake-j4sudo make installcd. /.. / cd CuraEnginegit pullcd buildcmake.. make-j4cd. /.. / cd Uraniumgit pullcd buildcmake. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packages-DURANIUM_PLUGINS_DIR=/usr/lib/python3.4/dist-packagessudo make installcd.. /.. cp-rv Uranium/resources/* Cura/resources/sudo ln-s $PWD/CuraEngine/build/CuraEngine / usr/bin/CuraEnginecd Curapython3 cura_app.py

Libgl error, may be a problem with the virtual machine, try the physical machine next time.

Remove the "display-3D acceleration" of Virtualbox, and libgl will no longer make a mistake.

Thank you for reading this article carefully. I hope the article "how to compile the 3D print control software Cura source code on UbuntuKylin15.04" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

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: 0

*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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report