Closed felipemendes1994 closed 1 year ago
Hello,
I've been trying to build a docker image of tilemaker, but I'm receiving the following error when generating docker image:
# docker build -t tilemaker . [+] Building 5.3s (13/19) => [internal] load .dockerignore 0.9s => => transferring context: 2B 0.0s => [internal] load build definition from Dockerfile 0.9s => => transferring dockerfile: 1.14kB 0.0s => [internal] load metadata for docker.io/library/debian:bullseye-slim 1.8s => [internal] load build context 0.0s => => transferring context: 2.64kB 0.0s => [src 1/11] FROM docker.io/library/debian:bullseye-slim@sha256:9bec46ecd98ce4bf8305840b021dda9b3e1f8494a0768c407e2b233180fa1466 0.0s => CACHED [src 2/11] RUN apt-get update && apt-get install -y --no-install-recommends build-essential liblua5.1-0 liblua5.1-0-dev libprotobuf-dev l 0.0s => CACHED [src 3/11] RUN apt-get update 0.0s => CACHED [src 4/11] COPY CMakeLists.txt / 0.0s => CACHED [src 5/11] COPY cmake /cmake 0.0s => CACHED [src 6/11] COPY src /src 0.0s => CACHED [src 7/11] COPY include /include 0.0s => CACHED [src 8/11] WORKDIR /build 0.0s => ERROR [src 9/11] RUN cmake -DTILEMAKER_BUILD_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ .. 2.1s ------ > [src 9/11] RUN cmake -DTILEMAKER_BUILD_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ ..: #0 0.656 -- The C compiler identification is GNU 10.2.1 #0 0.698 -- The CXX compiler identification is GNU 10.2.1 #0 0.703 -- Detecting C compiler ABI info #0 0.755 -- Detecting C compiler ABI info - done #0 0.763 -- Check for working C compiler: /usr/bin/cc - skipped #0 0.763 -- Detecting C compile features #0 0.763 -- Detecting C compile features - done #0 0.766 -- Detecting CXX compiler ABI info #0 0.825 -- Detecting CXX compiler ABI info - done #0 0.833 -- Check for working CXX compiler: /usr/bin/g++ - skipped #0 0.833 -- Detecting CXX compile features #0 0.833 -- Detecting CXX compile features - done #0 0.834 -- Staticly linking with Boost #0 0.841 -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.66") found components: system filesystem program_options iostreams #0 0.843 CMake Error at //CMakeLists.txt:36 (find_package): #0 0.843 Could not find a package configuration file provided by "Protobuf" with any #0 0.843 of the following names: #0 0.843 #0 0.843 ProtobufConfig.cmake #0 0.843 protobuf-config.cmake #0 0.843 #0 0.843 Add the installation prefix of "Protobuf" to CMAKE_PREFIX_PATH or set #0 0.843 "Protobuf_DIR" to a directory containing one of the above files. If #0 0.843 "Protobuf" provides a separate development package or SDK, be sure it has #0 0.843 been installed. #0 0.843 #0 0.843 #0 0.843 -- Configuring incomplete, errors occurred! #0 0.843 See also "/build/CMakeFiles/CMakeOutput.log". ------ Dockerfile:33 -------------------- 31 | WORKDIR /build 32 | 33 | >>> RUN cmake -DTILEMAKER_BUILD_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ .. 34 | RUN cmake --build . 35 | RUN strip tilemaker -------------------- ERROR: failed to solve: process "/bin/sh -c cmake -DTILEMAKER_BUILD_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ .." did not complete successfully: exit code: 1
Is there something I could to solve this?
This should be fixed now - sorry for the hassle.
Hi, @systemed ! No problem at all. I was able to build docker image by checking out to tag 2.4.0. Thanks for all your support.
Hello,
I've been trying to build a docker image of tilemaker, but I'm receiving the following error when generating docker image:
Is there something I could to solve this?