vision_opencv icon indicating copy to clipboard operation
vision_opencv copied to clipboard

Unable to find the requested Boost libraries : boost_python37

Open Joechencc opened this issue 5 years ago • 6 comments

I have error when boot python library. When do I fix this bug? I have python3 installed

Python 3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

ERROR MESSAGE:

CMake Error at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1947 (message): Unable to find the requested Boost libraries.

Boost version: 1.65.1

Boost include path: /usr/include

Could not find the following Boost libraries:

      boost_python37

No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. Call Stack (most recent call first): vision_opencv/cv_bridge/CMakeLists.txt:11 (find_package)

Joechencc avatar Jun 17 '20 20:06 Joechencc

I had the same problem. What ROS version are you using? The default branch is set to noetic, if you are using melodic, try checking out the melodic branch

jacksonhshields avatar Jun 24 '20 00:06 jacksonhshields

It is melodic. However the core is ARM64

Joechencc avatar Jun 26 '20 15:06 Joechencc

I had the same issue (with noetic), I fixed it by commenting out lines 11 and 12 in the CMakeLists.txt file in the /home/pc_name/catkin_ws/src/vision_opencv/cv_bridge directory. I am running Pop OS 20.04 (based on Ubuntu 20.04 (Focal Fossa)).

I was able to successfully compile the package after that. I hope this helps.

chinedu0507 avatar Jul 02 '20 19:07 chinedu0507

@chinedu0507 he said just right, you can comment out find_package(Boost REQUIRED python37) and use find_package(Boost REQUIRED python) below instead. Then in my case I fix my error. Hope this state why and help.

doubleZ0108 avatar Jan 27 '21 02:01 doubleZ0108

I had the same issue (with noetic), I fixed it by commenting out lines 11 and 12 in the CMakeLists.txt file in the /home/pc_name/catkin_ws/src/vision_opencv/cv_bridge directory. I am running Pop OS 20.04 (based on Ubuntu 20.04 (Focal Fossa)).

I was able to successfully compile the package after that. I hope this helps.

As an alternative, this worked for me in Ubuntu 18.04 (Melodic): https://answers.ros.org/question/344951/could-not-find-the-following-boost-libraries-boost_python3/

TheMaakarov avatar Feb 20 '21 22:02 TheMaakarov

@chinedu0507 he said just right, you can comment out find_package(Boost REQUIRED python37) and use find_package(Boost REQUIRED python) below instead. Then in my case I fix my error. Hope this state why and help.

this helped me resolving this, thank you. Also you can use

sed -i '11,12 s/^/#/' cv_bridge/CMakeLists.txt

to comment out these lines through sed. Very handy if you use Docker e.g.

xela1601 avatar Jul 03 '22 19:07 xela1601