Skip to content

configure script libboost_python undetected on MacOS Mojave #17

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

Open
djorlando24 opened this issue Sep 24, 2020 · 1 comment
Open

configure script libboost_python undetected on MacOS Mojave #17

djorlando24 opened this issue Sep 24, 2020 · 1 comment

Comments

@djorlando24
Copy link

I have to modify lines 17046 and 17458 of configure to get MacOS to find my libboost_python, since homebrew's current version calls the library libboost_pythonXX.dylib where XX is 27 or 38 etc, depending on the version of Python used. configure is just hunting for libboost_python.so which is symlinked on Linux but not on MacOS homebrew. Making such a symlink is dangerous if you have multiple python versions. Suggest modifying configure to use python version to go looking for libboost_python in the right place on Darwin.

@djorlando24
Copy link
Author

For the record, without editing the configure script the following output is produced.

checking for boostlib >= 1.20.0... yes
checking whether the Boost::Python library is available... yes
checking whether boost_python is the correct library... no
checking whether boost_python is the correct library... (cached) no
checking whether boost_python3 is the correct library... no
checking for boostlib >= 1.20.0... yes
checking whether the Boost::Python library is available... (cached) yes
checking whether boost_python is the correct library... (cached) no
checking whether boost_python is the correct library... (cached) no
checking whether boost_python3 is the correct library... (cached) no

Linking will then fail when running make with the above configure output.

With the edits, the following output is produced, and linking succeeds.

checking whether the Boost::Python library is available... yes
checking whether boost_python38 is the correct library... yes
checking for boostlib >= 1.20.0... yes
checking whether the Boost::Python library is available... (cached) yes
checking whether boost_python38 is the correct library... (cached) yes

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

No branches or pull requests

1 participant