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

Unable to find the requested Boost libraries : boost_python37 #341

Open
Joechencc opened this issue Jun 17, 2020 · 6 comments
Open

Unable to find the requested Boost libraries : boost_python37 #341

Joechencc opened this issue Jun 17, 2020 · 6 comments

Comments

@Joechencc
Copy link

Joechencc commented Jun 17, 2020

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)

@jacksonhshields
Copy link

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

@Joechencc
Copy link
Author

It is melodic. However the core is ARM64

@chinedu0507
Copy link

chinedu0507 commented Jul 2, 2020

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.

@doubleZ0108
Copy link

@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.

@TheMaakarov
Copy link

TheMaakarov commented Feb 20, 2021

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/

@xela1601
Copy link

xela1601 commented Jul 3, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants