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

pgagent compile error windows #32

Open
retrogaming457 opened this issue Dec 7, 2023 · 0 comments
Open

pgagent compile error windows #32

retrogaming457 opened this issue Dec 7, 2023 · 0 comments

Comments

@retrogaming457
Copy link

retrogaming457 commented Dec 7, 2023

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:

Error        LNK2001	unresolved external symbol "public: virtual void __cdecl boost::detail::thread_data_base::notify_all_at_thread_exit(class boost::condition_variable *,class boost::mutex *)" (?notify_all_at_thread_exit@thread_data_base@detail@boost@@UEAAXPEAVcondition_variable@3@PEAVmutex@3@@Z)	pgagent	C:\Library\build\pgAgent.obj	1		


Error	LNK2001	unresolved external symbol "public: virtual __cdecl boost::detail::thread_data_base::~thread_data_base(void)" (??1thread_data_base@detail@boost@@UEAA@XZ)	pgagent	C:\Library\build\pgAgent.obj	1

Error	LNK2019	unresolved external symbol "__declspec(dllimport) bool __cdecl boost::filesystem::detail::create_directory(class boost::filesystem::path const &,class boost::filesystem::path const *,class boost::system::error_code *)" (__imp_?create_directory@detail@filesystem@boost@@YA_NAEBVpath@23@PEBV423@PEAVerror_code@system@3@@Z) referenced in function "bool __cdecl boost::filesystem::create_directory(class boost::filesystem::path const &)" (?create_directory@filesystem@boost@@YA_NAEBVpath@12@@Z)	pgagent	C:\Library\build\job.obj	1		
	
Error	LNK2019	unresolved external symbol "__declspec(dllimport) class boost::filesystem::file_status __cdecl boost::filesystem::detail::status(class boost::filesystem::path const &,class boost::system::error_code *)" (__imp_?status@detail@filesystem@boost@@YA?AVfile_status@23@AEBVpath@23@PEAVerror_code@system@3@@Z) referenced in function "bool __cdecl boost::filesystem::exists(class boost::filesystem::path const &)" (?exists@filesystem@boost@@YA_NAEBVpath@12@@Z)	pgagent	C:\Library\build\job.obj	1		

@retrogaming457 retrogaming457 changed the title pgagent compile error boost_thread_FOUND pgagent compile error windows Dec 11, 2023
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

1 participant