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

A FC 1.0.0 Module is requiring Boost.python but LibPack-1.1.0-v3.1.0 Boost built --without-python #37

Open
loopless opened this issue Dec 8, 2024 · 4 comments

Comments

@loopless
Copy link

loopless commented Dec 8, 2024

I have built LibPack-1.1.0-v3.1.0 successfully (yay!)
I pulled the latest FC
d:\free_cad_build\FreeCAD>git status
HEAD detached at 1.0.0
nothing to commit, working tree clean

When configuring CMake I get the following error. It seems the Mod MeshPart is looking for Boost.python , but the LibPack-1.1.0-v3.1.0 boost is built "--without-python"

Could NOT find Boost: missing: python312 (found D:/free_cad_build/FreeCAD-LibPack/working/LibPack-1.1.0-v3.1.0-Release/lib/cmake/Boost-1.86.0/BoostConfig.cmake (found version "1.86.0"))
CMake Warning (dev) at src/Mod/MeshPart/App/CMakeLists.txt:128 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

Could NOT find Boost: missing: python3 (found D:/free_cad_build/FreeCAD-LibPack/working/LibPack-1.1.0-v3.1.0-Release/lib/cmake/Boost-1.86.0/BoostConfig.cmake (found version "1.86.0"))
CMake Warning (dev) at src/Mod/MeshPart/App/CMakeLists.txt:131 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at D:/free_cad_build/FreeCAD-LibPack/working/LibPack-1.1.0-v3.1.0-Release/lib/cmake/Boost-1.86.0/BoostConfig.cmake:141 (find_package):
Could not find a package configuration file provided by "boost_python"
(requested version 1.86.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):
D:/free_cad_build/FreeCAD-LibPack/working/LibPack-1.1.0-v3.1.0-Release/liv/cmake/Boost-1.86.0/BoostConfig.cmake:262 (boost_find_component)
C:/Program Files/CMake/share/cmake-3.30/Modules/FindBoost.cmake:610 (find_package)
src/Mod/MeshPart/App/CMakeLists.txt:131 (find_package)

@loopless
Copy link
Author

loopless commented Dec 8, 2024

removing --without-python from the boost build script in compile_all.py and then forcing a rebuild of boost allowing the CMake configuration step of FC 1.0.0 to succeed.

@MisterMakerNL
Copy link

Probably sames issue #34

@chennes
Copy link
Member

chennes commented Dec 9, 2024

I just merged FreeCAD/FreeCAD#18288, so a git pull of the FreeCAD source should now allow Libpack 3.1 to compile.

@chennes
Copy link
Member

chennes commented Dec 9, 2024

(I should note that we are removing boost.python support from FreeCAD during the 1.1 development cycle, which is why this change to the LibPack is necessary).

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

No branches or pull requests

3 participants