Illarion-eV / Illarion-Server

Server for the online RPG Illarion
http://illarion.org
GNU Affero General Public License v3.0
27 stars 19 forks source link

Improved cmake build instructions #38

Closed mkaring closed 3 years ago

mkaring commented 3 years ago

The server is not properly building with cmake.

fixes #35

vilarion commented 3 years ago

CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find PostgreSQL (missing: PostgreSQL_TYPE_INCLUDE_DIR) (found version "11.9 (Debian 11.9-0+deb10u1)") Call Stack (most recent call first): /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.13/Modules/FindPostgreSQL.cmake:175 (find_package_handle_standard_args) cmake/Modules/FindPqxx.cmake:2 (find_package) src/CMakeLists.txt:4 (find_package)

mkaring commented 3 years ago

@vilarion: Your environment is likely lacking the postgresql development dependency: postgresql-server-dev-all

vilarion commented 3 years ago

postgresql-server-dev-all should not be a required dependency, we are not working with libpq directly. Actually libpq-dev is installed, even. But it wants llvm-7 and clang-7 in addition to that, which seems incorrect.

vilarion commented 3 years ago

libpq-dev is already required by libpqxx-dev, but we don't need it directly.

mkaring commented 3 years ago

The FindPqxx.cmake script was wrong in depending on PostgreSQL.

vilarion commented 3 years ago

Rebased and merged.