Error during compile FreeCAD on macOS

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
HaisenZhao
Posts: 2
Joined: Sun Dec 08, 2019 6:37 am

Error during compile FreeCAD on macOS

Post by HaisenZhao »

Code: Select all

Platform is 64-bit, set -D_OCC64
setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
Could NOT find Boost: missing: python27 (found /usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0"))
Could NOT find Boost: missing: python2 (found /usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0"))
CMake Error at /usr/local/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

  Add the installation prefix of "boost_python" to CMAKE_PREFIX_PATH or set
  "boost_python_DIR" to a directory containing one of the above files.  If
  "boost_python" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
  /Applications/CMake.app/Contents/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package)
  src/Mod/Path/libarea/CMakeLists.txt:26 (find_package)
Last edited by Kunda1 on Fri Dec 13, 2019 6:15 pm, edited 1 time in total.
Reason: Changed [bug] to [code] bbcode tags
ezzieyguywuf
Posts: 656
Joined: Tue May 19, 2015 1:11 am

Re: Error during compile FreeCAD on macOS

Post by ezzieyguywuf »

HaisenZhao wrote: Sun Dec 08, 2019 6:57 am

Code: Select all

Platform is 64-bit, set -D_OCC64
setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
Could NOT find Boost: missing: python27 (found /usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0"))
Could NOT find Boost: missing: python2 (found /usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0"))
CMake Error at /usr/local/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

  Add the installation prefix of "boost_python" to CMAKE_PREFIX_PATH or set
  "boost_python_DIR" to a directory containing one of the above files.  If
  "boost_python" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
  /Applications/CMake.app/Contents/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package)
  src/Mod/Path/libarea/CMakeLists.txt:26 (find_package)
@HaisenZhao it would be helpful if you would include some text with your error report, specifically what you have tried to resolve the problem.

Nonetheless, it seems pretty clear from the error message that cmake is unable to find a suitable version of boost-python.

Maybe you have python3 on your system? If so, you should try compiling FreeCAD with python3, something like:

Code: Select all

cmake -DPYTHON_EXECUTABLE="/path/to/python3"
You would need to replace "/path/to/python3" with the actual path to your python3 executable. I think the following should probably work to figure that out:

Code: Select all

which python
You can verify if you have python2 or python3 with

Code: Select all

python --version
Post Reply