Thanks nallath.
Any link to a how-to or some tips ?
To disable build with python on libArcus, simply change the line
option(BUILD_PYTHON "Build " ON) by
option(BUILD_PYTHON "Build " OFF) in CMakeLists.txt
Little up on this post, still not able to build curaEngine on my docker
In file included from /tmp/curabuild/CuraEngine/src/pathPlanning/Comb.h:11:0, from /tmp/curabuild/CuraEngine/src/LayerPlan.h:8, from /tmp/curabuild/CuraEngine/src/FffGcodeWriter.h:15, from /tmp/curabuild/CuraEngine/src/FffProcessor.h:5, from /tmp/curabuild/CuraEngine/src/commandSocket.cpp:7: /tmp/curabuild/CuraEngine/src/pathPlanning/../utils/LazyInitialization.h: In constructor 'cura::LazyInitialization<T, Args>::LazyInitialization(Args ...)': /tmp/curabuild/CuraEngine/src/pathPlanning/../utils/LazyInitialization.h:34:18: error: expected ',' before '...' token [args...]() ^
My search on the net drives me to this conclusion:
I'm not able to compile CuraEngine because the version of the compiler that is used is not the good one.
But I didn't figure how to change it.
devtoolset-3-gcc was supposed to do the job...
Here is my updated DockerFile:
# Dockerfile for CuraEngine FROM centos #Global prerequisites RUN yum install -y epel-release RUN yum install -y libtool gcc-c++ wget unzip make devtoolset-3-gcc git RUN mkdir -p /tmp/curabuild # Install Protobuf RUN cd /tmp/curabuild/ \ && wget -O protobuffv3.4.1.zip https://github.com/google/protobuf/archive/v3.4.1.zip \ && unzip protobuffv3.4.1.zip \ && cd /tmp/curabuild/protobuf-3.4.1/ \ && ./autogen.sh && ./configure \ && make -j4 \ && make install #Install Python 3 RUN yum install -y zlib-devel openssl-devel python34-dev #Install libArcus RUN yum install -y cmake python-devel sip-devel RUN cd /tmp/curabuild \ && git clone https://github.com/Ultimaker/libArcus.git \ && cd libArcus \ && sed -i '/option(BUILD_PYTHON "Build " ON)/c\option(BUILD_PYTHON "Build " OFF)' ./CMakeLists.txt \ && mkdir build && cd build \ && ls -la .. \ && cmake .. \ && make -j4 \ && make install RUN cd /tmp/curabuild \ #Install CuraEngine && git clone https://github.com/Ultimaker/CuraEngine.git \ && cd CuraEngine/ \ && mkdir build && cd build \ && cmake .. \ && make CXX=gcc-4.9 -j4
Edited by arnaudcosson
You are using gcc-4.9. I just checked, but i'm building the engine with gcc 6.4.1
Thanks for the information. I will try with this version
Recommended Posts
nallath 1,125
You can just build libArcus without python.
Link to post
Share on other sites