ros / bond_core

Maintains a bond (i.e. heart beat ) between ROS nodes and provides feedback when the bond is broken
http://www.ros.org/wiki/bond_core
35 stars 63 forks source link

Fails to build with VS2019 - #91

Open mjs513 opened 1 year ago

mjs513 commented 1 year ago

While building the Nav2 package on a Win10x64 for Ros2 Humble I downloaded bond_core ROS2 branch and received the following error message from VS2019

CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Call Stack (most recent call first):
  C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FindPkgConfig.cmake:70 (find_package_handle_standard_args)
  CMakeLists.txt:19 (find_package)

This seems similar to one of the comments in issue #69 by @SteveMacenski

Any help would be appreciated.

mjs513 commented 1 year ago

Some added info from the cmake error log for bondcpp

Determining if the include file pthread.h exists failed with the following output:
Change Dir: C:/dev/bondcpp_ws/build/bondcpp/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_c7de3.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

  Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  CheckIncludeFile.c

  cl /c /I"C:\vcpkg\installed\x64-windows\include" /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_c7de3.dir\Debug\\" /Fd"cmTC_c7de3.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue C:\dev\bondcpp_ws\build\bondcpp\CMakeFiles\CMakeTmp\CheckIncludeFile.c

C:\dev\bondcpp_ws\build\bondcpp\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\dev\bondcpp_ws\build\bondcpp\CMakeFiles\CMakeTmp\cmTC_c7de3.vcxproj]