Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails! What are the PostgreSQL requirements? #22

Open
dancesWithCycles opened this issue Mar 2, 2023 · 1 comment
Open

Build fails! What are the PostgreSQL requirements? #22

dancesWithCycles opened this issue Mar 2, 2023 · 1 comment

Comments

@dancesWithCycles
Copy link

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!

@jmafc
Copy link

jmafc commented Oct 16, 2024

I believe this may be a problem with CMake rather than oatpp. FWIW, I just successfully built oatpp-postgresql 1.3.0 on Debian 12 against PG 16 using CMake 3.30, but I recall seeing something similar to what you report when building some other PG/CMake-dependent project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants