在Docker中失败build立CuraEngine

我正在尝试为基于CentOS的CuraEngine构build一个DockerFile。 编译CuraEngine失败:

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...]() ^ 

我在网上search驱动我得出这样的结论:我无法编译CuraEngine,因为使用的编译器版本不是很好。

但我没有想到如何改变它。 安装devtoolset-3-gcc本来是要做这个工作的

这是我的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 

谢谢您的帮助