Robotics StackExchange | Archived questions

Could NOT find Boost (missing: python3) (found version "1.76.0") Windows 10

Hi everyone,

I need help solving this cmake boost python3 find problem when trying to compile cv_bridge. The colcon error message:

> colcon build --symlink-install --merge-install
...    
--- stderr: cv_bridge
    CMake Error at C:/Program Files/CMake/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
      Could NOT find Boost (missing: python3) (found version "1.76.0")
    Call Stack (most recent call first):
      C:/Program Files/CMake/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
      C:/Program Files/CMake/share/cmake-3.22/Modules/FindBoost.cmake:2360 (find_package_handle_standard_args)
      CMakeLists.txt:32 (find_package)

What I have tried:


 if(NOT ANDROID)
      list(APPEND Boost_INCLUDE_DIRS "C:/Program Files/boost/boost_1_76_0")
      list(APPEND Boost_INCLUDE_DIRS "C:/Program Files/boost/boost_1_76_0/stage/lib")
      find_package(PythonLibs)

I have run out of ideas, please any help will be greatly appreciated!

Asked by lora on 2021-11-09 10:24:56 UTC

Comments

Hi @lora, hope you find an answer soon and tha you for your clear question. Have you checked this thread?

https://github.com/gnina/libmolgrid/issues/20

It discusses an issue with configuration vs installation. I know it’s not Windows but the error is very similar so thought it may help.

Asked by osilva on 2021-11-10 21:44:44 UTC

And this is for MacOS: https://github.com/YosysHQ/nextpnr/issues/322#issuecomment-536177724

Asked by osilva on 2021-11-10 21:50:25 UTC

Hi @osilva, thanks for the links. I came across those as well. I modified FindBoost.cmake to include the set(Boost_NO_BOOST_CMAKE ON) for the version 1.70 and above and the renaming of the files was also inspired by it. Unfortunately the issue remains.

Asked by lora on 2021-11-12 11:17:46 UTC

Answers