Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
803 views
in Technique[技术] by (71.8m points)

docker - CMake Error: The Source directory does not appear to contain CMakeLists.txt for RUFUS

I'm getting errors trying to build a Docker image for RUFUS; it's related to CMakeLists.txt but not sure how to fix it:

Dockerfile

FROM ubuntu:latest


LABEL 
        version="1.0.0" 
        description="RUFUS image for use in Workflows"

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && 
apt-get install -y apt-utils 
libz-dev 
zlib1g-dev 
libbz2-dev 
liblzma-dev 
bc 
libncurses5-dev 
git 
build-essential 
g++ 
python 
gcc 
mono-mcs 
wget 
cmake

RUN mkdir -p /opt/tools
WORKDIR /opt/tools


# Download Bedtools 2.27.1
ENV VERSION 1.0
ENV NAME RUFUS
ENV URL "https://github.com/jandrewrfarrell/RUFUS/archive/V${VERSION}.tar.gz"
RUN wget -q -O - $URL | tar -zxv && 
cd ${NAME}-${VERSION} && 
mkdir build && cd build && 
cmake ../ -DCMAKE_C_COMPILER=$(which gcc) -DCMAKE_CXX_COMPILER=$(which g++) && 
make

docker build

sudo docker build -t rufus-v1.0 .

Most of the build seems to go okay, until the bwa part where I get the following error (truncated for convenience):

Error:

CMake Error: The source directory "/opt/tools/RUFUS-1.0/build/external" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make[2]: *** [externals/CMakeFiles/rufus_external_project.dir/build.make:111: externals/rufus_external_project-prefix/src/rufus_external_project-stamp/rufus_external_project-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:169: externals/CMakeFiles/rufus_external_project.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
The command '/bin/sh -c wget -q -O - $URL | tar -zxv && cd ${NAME}-${VERSION} && mkdir build && cd build && cmake ../ -DCMAKE_C_COMPILER=$(which gcc) -DCMAKE_CXX_COMPILER=$(which g++) && make' returned a non-zero code: 2
question from:https://stackoverflow.com/questions/65948810/cmake-error-the-source-directory-does-not-appear-to-contain-cmakelists-txt-for

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...