oatpp / example-postgresql

A complete example of a "CRUD" service (UserService) built with Oat++ and using oatpp ORM with PostgreSQL.
https://oatpp.io/
Apache License 2.0
38 stars 19 forks source link

CMake Error during docker compose up #7

Open eoan-ermine opened 1 year ago

eoan-ermine commented 1 year ago
❯ docker compose up
[+] Building 1.2s (11/12)                                                                                                                                   
 => [service internal] load build definition from Dockerfile                                                                                           0.0s
 => => transferring dockerfile: 281B                                                                                                                   0.0s
 => [service internal] load .dockerignore                                                                                                              0.0s
 => => transferring context: 46B                                                                                                                       0.0s
 => [service internal] load metadata for docker.io/lganzzzo/alpine-cmake:latest                                                                        0.5s
 => [service 1/8] FROM docker.io/lganzzzo/alpine-cmake:latest@sha256:8558b04111c2796787268961f362d03ef257a92db6312b43abb3a1430de9a144                  0.0s
 => [service internal] load build context                                                                                                              0.0s
 => => transferring context: 7.03kB                                                                                                                    0.0s
 => CACHED [service 2/8] RUN apk add postgresql-dev                                                                                                    0.0s
 => CACHED [service 3/8] ADD . /service                                                                                                                0.0s
 => CACHED [service 4/8] WORKDIR /service/utility                                                                                                      0.0s
 => CACHED [service 5/8] RUN ./install-oatpp-modules.sh                                                                                                0.0s
 => CACHED [service 6/8] WORKDIR /service/build                                                                                                        0.0s
 => ERROR [service 7/8] RUN cmake ..                                                                                                                   0.7s
------                                                                                                                                                      
 > [service 7/8] RUN cmake ..:                                                                                                                              
0.154 -- The C compiler identification is GNU 6.4.0                                                                                                         
0.180 -- The CXX compiler identification is GNU 6.4.0                                                                                                       
0.183 -- Check for working C compiler: /usr/bin/cc                                                                                                          
0.213 -- Check for working C compiler: /usr/bin/cc -- works                                                                                                 
0.214 -- Detecting C compiler ABI info
0.244 -- Detecting C compiler ABI info - done
0.249 -- Detecting C compile features
0.342 -- Detecting C compile features - done
0.344 -- Check for working CXX compiler: /usr/bin/c++
0.377 -- Check for working CXX compiler: /usr/bin/c++ -- works
0.377 -- Detecting CXX compiler ABI info
0.410 -- Detecting CXX compiler ABI info - done
0.415 -- Detecting CXX compile features
0.563 -- Detecting CXX compile features - done
0.564 CMake Error at CMakeLists.txt:30 (find_package):
0.564   By not providing "Findoatpp.cmake" in CMAKE_MODULE_PATH this project has
0.564   asked CMake to find a package configuration file provided by "oatpp", but
0.564   CMake did not find one.
0.564 
0.564   Could not find a package configuration file provided by "oatpp" (requested
0.564   version 1.3.0) with any of the following names:
0.564 
0.564     oatppConfig.cmake
0.564     oatpp-config.cmake
0.564 
0.564   Add the installation prefix of "oatpp" to CMAKE_PREFIX_PATH or set
0.564   "oatpp_DIR" to a directory containing one of the above files.  If "oatpp"
0.564   provides a separate development package or SDK, be sure it has been
0.564   installed.
0.564 
0.564 
0.565 -- Configuring incomplete, errors occurred!
0.565 See also "/service/build/CMakeFiles/CMakeOutput.log".
------
failed to solve: process "/bin/sh -c cmake .." did not complete successfully: exit code: 1
eoan-ermine commented 1 year ago
CMake Error at cmake/project.cmake:1 (cmake_minimum_required):
  CMake 3.20 or higher is required.  You are running version 3.11.1
Call Stack (most recent call first):
  CMakeLists.txt:125 (include)