Tag: cmake

在docker中使用cmake构build错误

我目前正在尝试使用Docker设置Gazebo模拟。因为我想使用由Alessio Rocchi制作的自定义Gazebo版本,我正在构build源代码的所有内容。 但是,当试图build立一切,我得到以下错误代码: cc1plus: warning: /tmp/gazebo/deps/klampt/Simulation/include: No such file or directory cc1plus: warning: /etc/klampt/Library/KrisLibrary: No such file or directory In file included from /tmp/gazebo/deps/klampt/Simulation/ODECustomGeometry.cpp:1:0: /tmp/gazebo/deps/klampt/Simulation/ODECustomGeometry.h:4:34: fatal error: geometry/AnyGeometry.h: No such file or directory #include <geometry/AnyGeometry.h> ^ compilation terminated. deps/klampt/CMakeFiles/gazebo_klampt.dir/build.make:54: recipe for target 'deps/klampt/CMakeFiles/gazebo_klampt.dir/Simulation/ODECustomGeometry.cpp.o' failed make[2]: *** [deps/klampt/CMakeFiles/gazebo_klampt.dir/Simulation/ODECustomGeometry.cpp.o] Error 1 CMakeFiles/Makefile2:388: recipe for target 'deps/klampt/CMakeFiles/gazebo_klampt.dir/all' failed […]

如何将cmake集成到gitlab存储库中以实现持续集成(CI)

在GCC的Docker Image的帮助下,我能够运行C ++程序并使用Gi​​tLab CI单元进行构build和testing。 但现在我想在Docker中使用cmake而不是g ++来编译程序。 如何更改'.gitlab-ci.yml'文件以支持cmake。 当前文件:.gitlab-ci.yml image: gcc before_script: – apt-get install –yes cmake libmatio-dev libblas-dev libsqlite3-dev libcurl4-openssl-dev – apt-get install –yes libarchive-dev liblzma-dev build: script: – ./runner.sh – ./bin/hello ./runner.sh cmake -H. -Bbuild cmake –build build — -j3

Docker opencv3 Cmake错误

我试图用docker构build一个启用了ffmpeg的Python3 + OpenCV3环境。 由于我也想用GPU来加速模型,所以我使用了NVIDIA的docker镜像。 这是我的Dockerfile: FROM nvidia/cuda:8.0-cudnn5-devel … … ############################################# # OpenCV 3 w/ Python 2.7 from Anaconda ############################################# RUN cd ~/ &&\ git clone https://github.com/opencv/opencv.git &&\ git clone https://github.com/opencv/opencv_contrib.git &&\ cd opencv && mkdir build && cd build && \ cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/opt/opencv \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D […]

CMake在ubuntu 16.04 docker映像上自动生成了Makefile,并将“//”前置于目标

我有一个docker形象build立如下: FROM ubuntu:latest MAINTAINER xyz COPY apt.conf /etc/apt/ RUN apt-get -y update RUN apt-get -y install cmake RUN apt-get -y install libc++-dev RUN apt-get -y install build-essential RUN apt-get -y install beignet opencl-headers RUN apt-get -y install mlocate RUN updatedb RUN mkdir /usr/local/code COPY code /usr/local/code RUN mkdir /usr/local/build RUN cmake /usr/local/code/ CMD make CMake自动生成的Makefile的目标如下: […]

从git克隆构build代码的Docker文件

我从github克隆了一个FreeCAD的副本,我正在尝试创build一个docker文件,以便我可以在本地机器上开发它。 目标是: 我有我的机器上git的代码的本地副本 我可以对代码进行修改 我可以构builddebugging和发布图像(我是否需要创build两个单独的图像?) 有权访问我的机器上的代码,以便我可以使用git进行源代码pipe理 这是我的Dockerfile的内容: # Get base image FROM phusion/baseimage # Use baseimage-docker's init system. CMD ["/sbin/my_init"] # Get the build pre-requisites RUN apt-get update RUN apt-get install -y build-essential cmake python python-matplotlib libtool RUN apt-get install -y libcoin80-dev libsoqt4-dev RUN apt-get install -y libxerces-c-dev libboost-dev libboost-filesystem-dev RUN apt-get install -y libboost-regex-dev […]