CuraEngine on linux
mmiscool wrote 09/12/2017 at 22:17 • 1 pointHello,
I am trying to get cura engine up and running on linux but there is little in the way of documentation.
Is there any one who is an expert who could give me hand?
The main thing I need is to be able to control it though the command line and be able to turn support on / off and vary the infill %.
I also need to retrieve the x,y,z size of the model (To check if it will fit on the print bed) and the amount of filament used.
I have gotten all these thing working with Slic3r but have been unable to crack the cura nut.
Any help would be appreciated.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Have you ever thought of just installing Octoprint on the linux distro you are using rather than trying to run it command line? (then use a webGUI)
https://github.com/foosel/OctoPrint/wiki/Setup-on-a-Raspberry-Pi-running-Raspbian
(or any other linux distro)
Sure GUI's are always easier and command line is fun, but like you said...all those daggum options are a pain
Also found some scripts that might be helpful
https://github.com/ErwinRieger/ddprint
Are you sure? yes | no
Its the bit about all those json files I don't get.
There is barly any documentation about how to use it and if I install cura I can't figure out how to export the slicer settings to one of those config files.
Are you sure? yes | no
Yeah. All those json files are confusing.
Are you sure? yes | no
it looks like it is working for me, but you have to make sure i didnt botch the instructions.
Are you sure? yes | no
see if this helps
cd ~/
mkdir curaEngine && cd curaEngine
# Download this: https://github.com/google/protobuf/releases/download/v3.4.0/protobuf-cpp-3.4.0.tar.gz
# extract protobuf folder into curaEngine folder
cd protobuf-3.4.0
sudo apt-get install autoconf automake libtool curl make g++ unzip python3-pip cmake python3-sip-dev
./autogen.sh
./configure
make
make check
sudo make install
sudo ldconfig # refresh shared library cache.
pip3 install sip
cd ..
git clone https://github.com/Ultimaker/libArcus
cd libArcus
mkdir build && cd build
cmake ..
make
sudo make install
cd ../..
git clone https://github.com/Ultimaker/CuraEngine.git
mkdir build && cd build
cmake ..
make
sudo make install
#############################################################################################
jeramy@jeramy-pc2:~/libarcus/CuraEngine$ CuraEngine
Cura_SteamEngine version DEV
Copyright (C) 2017 Ultimaker
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
usage:
CuraEngine help
Show this help message
CuraEngine connect <host>[:<port>] [-j <settings.def.json>]
--connect <host>[:<port>]
Connect to <host> via a command socket, instead of passing information via the command line
-j<settings.def.json>
Load settings.json file to register all settings and their defaults
-v
Increase the verbose level (show log messages).
-m<thread_count>
Set the desired number of threads. Supports only a single digit.
CuraEngine slice [-v] [-p] [-j <settings.json>] [-s <settingkey>=<value>] [-g] [-e<extruder_nr>] [-o <output.gcode>] [-l <model.stl>] [--next]
-v
Increase the verbose level (show log messages).
-m<thread_count>
Set the desired number of threads.
-p
Log progress information.
-j
Load settings.def.json file to register all settings and their defaults.
-s <setting>=<value>
Set a setting to a value for the last supplied object, extruder train, or general settings.
-l <model_file>
Load an STL model. -g
Switch setting focus to the current mesh group only.
Used for one-at-a-time printing.
-e<extruder_nr>
Switch setting focus to the extruder train with the given number.
--next
Generate gcode for the previously supplied mesh group and append that to the gcode of further models for one-at-a-time printing.
-o <output_file>
Specify a file to which to write the generated gcode.
The settings are appended to the last supplied object:
CuraEngine slice [general settings] -g [current group settings] -e0 [extruder train 0 settings] -l obj_inheriting_from_last_extruder_train.stl [object settings] --next [next group settings]
... etc.
In order to load machine definitions from custom locations, you need to create the environment variable CURA_ENGINE_SEARCH_PATH, which should contain all search paths delimited by a (semi-)colon.
Are you sure? yes | no