Skip to content

Build fails! What are the PostgreSQL requirements? #22

@dancesWithCycles

Description

@dancesWithCycles

Hi folks,
Thank you so much for providing and maintaining this repository. I started building this oatpp module and got stuck at this place.

mkdir tmp && cd tmp
git clone --depth=1 https://github.com/oatpp/oatpp-postgresql
cd oatpp-postgresql/
mkdir build && cd build
cmake -DOATPP_DISABLE_ENV_OBJECT_COUNTERS=ON -DCMAKE_BUILD_TYPE=Release -DOATPP_BUILD_TESTS=OFF ..

Build feedback:

$ cmake -DOATPP_DISABLE_ENV_OBJECT_COUNTERS=ON -DCMAKE_BUILD_TYPE=Release -DOATPP_BUILD_TESTS=OFF ..
Finding oatpp in location=INSTALLED
OATPP_INCLUDE=/usr/local/include/oatpp-1.3.0/oatpp
OATPP_TEST_INCLUDE=/usr/local/include/oatpp-1.3.0/oatpp

############################################################################
## oatpp-postgresql module. Resolving dependencies...

CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find PostgreSQL (missing: PostgreSQL_TYPE_INCLUDE_DIR) (found
  version "15.1")
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.18/Modules/FindPostgreSQL.cmake:248 (find_package_handle_standard_args)
  CMakeLists.txt:95 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/begerad/git/github/dancesWithCycles/oatpp-ex-postgresql/tmp/oatpp-postgresql/build/CMakeFiles/CMakeOutput.log".

The development host is a GNU/Debian Buster with the following environment.

$ sudo apt install libpq-dev libpq5 libpqxx-dev --no-install-recommends
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libpqxx-dev is already the newest version (6.4.5-2).
libpq-dev is already the newest version (15.1-1.pgdg110+1).
libpq5 is already the newest version (15.1-1.pgdg110+1).
0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.

PostgreSQL version:

$ psql --version
psql (PostgreSQL) 13.9 (Debian 13.9-0+deb11u1)

Any idea, why this module is not resolving dependencies?

Is here a certain (newer than version 13.9) version of PostgreSQL required?

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions