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

Fails to build with VS2019 - #91

Open
mjs513 opened this issue Jan 10, 2023 · 1 comment
Open

Fails to build with VS2019 - #91

mjs513 opened this issue Jan 10, 2023 · 1 comment

Comments

@mjs513
Copy link

mjs513 commented Jan 10, 2023

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
Copy link
Author

mjs513 commented Jan 10, 2023

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]



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