
[英]Compiling PCL 1.7 on Ubuntu 16.04 , errors in CMake generated Makefile
[英]CMake autogenerated Makefile on ubuntu 16.04 docker image prepending “//” to targets
我有一个如下构建的docker镜像:
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具有以下全部目标:
all:$(MAKE)-f CMakeFiles / Makefile2 // all
为什么CMake之前添加了这个额外的“//”?
运行make失败,因为它无法找到与目标// all关联的规则
make[1]: *** No rule to make target '//all'. Stop.
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
使用Ubuntu(没有“//”)在不同机器上自动生成的相同Makefile工作正常。 请指教。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.