Closed kldavis4 closed 5 years ago
Seems to be a cmake problem. Even if all the documented variables are set, cmake is not able to recognize the boost installation. Everything else seems to be following from this problem.
After looking further into it, I assume this be a problem with homebrew's packaging of boost-python:
CMake Error at /usr/local/Cellar/boost/1.71.0/lib/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package):
Could not find a package configuration file provided by "boost_python"
(requested version 1.71.0) with any of the following names:
boost_pythonConfig.cmake
boost_python-config.cmake
Respective files are available for all other boost components (as part of the boost package), but are missing for boost-python and boost-python3. Adding them to one of the packages (and I don't know which would be the right one), should solve the problem.
@Achimh3011 thanks for looking into this - it helped a lot. I found this https://github.com/YosysHQ/nextpnr/issues/322#issuecomment-536177724 and set set(Boost_NO_BOOST_CMAKE true) and was able to get the build to succeed.
Cool! Would you like to make a PR with the work-around for this repo?
sure thing - I will make a PR
On Fri, Oct 4, 2019 at 1:56 AM Achim Herwig notifications@github.com wrote:
Cool! Would you like to make a PR with the work-around for this repo?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TNG/boost-python-examples/issues/32?email_source=notifications&email_token=AAC2SC47TD3V2XWDNP3NVNTQM3LHTA5CNFSM4IVNBUVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAKQP7Q#issuecomment-538249214, or mute the thread https://github.com/notifications/unsubscribe-auth/AAC2SC57CPIUW3LWEFJFPCDQM3LHTANCNFSM4IVNBUVA .
Removed the requirement from the CMakeLists.txt changed to: find_package(Boost REQUIRED python)
I'm having trouble getting these to build with homebrew python3 on mojave. I have installed boost and boost-python3 and made the following changes to build.sh to tell it to use python3:
When I execute it I get the following:
Trying to understand how to resolve:
Could NOT find Boost: missing: python37 (found /usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0"))