-
Notifications
You must be signed in to change notification settings - Fork 633
Fix finding Boost Python library after its renaming in Boost 1.67 #239
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
Fix finding Boost Python library after its renaming in Boost 1.67 #239
Conversation
|
Duplicate of #225. But I think cmake should check for Boost 1.67 and not for Apple. It just happens that macOS+HomeBrew is already using Boost 1.67. But the problem would affect other OS in the same way and on the other side we are also using macOS with pinned older versions of Boost. |
|
+1, this fixes compilation for me on macos sierra |
|
Obviously this is a bit of a hack for Python 2 (although as there's never going to be a 2.8, it works), but more importantly it totally fails for Python 3 builds. |
Should be fixed in b57fd5b, but I did not actually test it yet with Boost 1.67 or greater. |
|
Hi @meyerj, I've recently become a maintainer of this repo, and I'm going through the PRs to figure out which PRs are active or stale. Sorry this PR took a long time. Considering this PR is against |
|
I am not working with macOS anymore those days, but obviously the current version of the CMake code on branch vision_opencv/cv_bridge/CMakeLists.txt Lines 6 to 18 in e229d98
According to the documentation, whether Anyway, Python 2 is mostly irrelevant by now, and likely the same holds for Boost versions older than 1.67, so the proposed patch as-is does not add any value anymore. On ROS 2 branches the same issue has already been addresses in different ways (#246, #279, #421), so the best path forward would be to backport those changes back into ROS 1, or to merge them, in order to support a wide range of platforms for both. All that does not depend on the ROS version and applies to ROS 1 and 2 in the same way, I guess. |
Fixes #215.
The boost_python library has been renamed in Boost 1.67 and the FindBoost.cmake module requires a Python version suffix.
Currently hard-coding
python27for Python 2 builds, but I assume that's a reasonable assumption. The alternative would be to extract the major and minor version fromPYTHONLIBS_VERSION_STRING.