在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
谢谢您的帮助
- Docker centos:6用ec2 loadbalancer webdav服务器挂载webdav客户端
- 在docker centos容器上安装Oracle:磁盘空间不足
- 无法在Docker容器中执行二进制文件(“Operation not permitted”)
- 使用docker + systemctl操作不允许systemctl
- Dockerfile:Docker build不能下载软件包:centos-> yum,debian / ubuntu-> apt-get后面的内网
- 在docker容器中运行auditd
- 为什么在Docker中运行“tty”时会得到“不是tty”?
- docker-storage-setup软件包在我的rhel 7上不可用? 我如何得到它? 我需要使用设备映射器创build一个精简池。
- 在主机上挂载的目录不起作用或访问docker容器