Hello, I am trying compile pgagent on Windows 11 using:
g++ (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders) 13.2.0
cmake gui 3.28.0. rc5
Boost 1.78
Postgresql 16
Visual Studio 17 2022
C:\Library>cmake pgAgent -B build
-- Building for: Visual Studio 17 2022
CMake Deprecation Warning at CMakeLists.txt:17 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 6.2.9200.
-- The C compiler identification is MSVC 19.38.33133.0
-- The CXX compiler identification is MSVC 19.38.33133.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at CMakeLists.txt:112 (FIND_PACKAGE):
Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Environment variable Boost_ROOT is set to:
C:\Library\boost
For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Boost toolset is unknown (compiler MSVC 19.38.33133.0)
-- Boost toolset is unknown (compiler MSVC 19.38.33133.0)
-- Boost toolset is unknown (compiler MSVC 19.38.33133.0)
-- Boost toolset is unknown (compiler MSVC 19.38.33133.0)
-- Boost toolset is unknown (compiler MSVC 19.38.33133.0)
-- Boost toolset is unknown (compiler MSVC 19.38.33133.0)
-- Boost toolset is unknown (compiler MSVC 19.38.33133.0)
-- Boost found.
-- Found Boost components:
filesystem;regex;date_time;thread;system
--
-- ================================================================================
-- Configuration summary:
--
-- Project : pgagent
-- Description : pgAgent is a job scheduling engine for PostgreSQL
-- Version : 4.2.1
--
-- PostgreSQL version string : PostgreSQL 16.0
-- PostgreSQL version parts : 16
-- PostgreSQL path : C:/Library/pgsql
-- PostgreSQL config binary : C:/Library/pgsql/bin/pg_config.exe
-- PostgreSQL include path : C:/Library/pgsql/include
-- PostgreSQL library path : C:/Library/pgsql/lib
-- PostgreSQL share path : C:/Library/pgsql/share
--
-- Boost version : 1.78.0
-- Boost path : C:/Library/boost/include/boost-1_78
-- Boost include directory : C:/Library/boost/include/boost-1_78
-- Boost library directory :
-- Boost Static linking : NO
-- ================================================================================
--
-- Configuring done (5.3s)
-- Generating done (0.1s)
-- Build files have been written to: C:/Library/build
After opening solution on Visual Studio to build, I get various errors:
Hello, I am trying compile pgagent on Windows 11 using:
g++ (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders) 13.2.0 cmake gui 3.28.0. rc5 Boost 1.78 Postgresql 16 Visual Studio 17 2022
After opening solution on Visual Studio to build, I get various errors: