FreeCAD / homebrew-freecad

Homebrew recipes for FreeCAD
56 stars 34 forks source link

freecad@0.21.2_py310: get brew install --HEAD working #532

Closed ipatch closed 4 months ago

ipatch commented 4 months ago

presently attempting to build freecad using the --HEAD flag does not work. progress on this issue can be seen at the below link.

ipatch commented 4 months ago

https://github.com/ipatch/homebrew-freecad/tree/build.head.dfe0c5d

ipatch commented 4 months ago

looks like a patch or additional cmake flags will be required to find the specific header file below.

[ 61%] Linking CXX shared library ../../../../Mod/ReverseEngineering/ReverseEngineering.so
[ 61%] Built target Import
/Users/ipatch/code/freecad-git/freecad-src/src/Mod/MeshPart/App/MeshFlatteningPy.cpp:39:10: fatal error: 'pybind11/eigen.h' file not found
#include <pybind11/eigen.h>
         ^~~~~~~~~~~~~~~~~~
[ 61%] Built target ReverseEngineering
ipatch commented 4 months ago

next issue,

CMake Error at src/Ext/freecad/cmake_install.cmake:49 (file):
  file cannot create directory:
  /Users/ipatch/homebrew/lib/python3.10/site-packages/freecad.  Maybe need
  administrative privileges.

the below should fix the above issue.

  args << "-DINSTALL_TO_SITEPACKAGES=0" if build.head?
ipatch commented 4 months ago

done. should be fixed with

https://github.com/FreeCAD/homebrew-freecad/commit/32454fed7596778ff5f85810ed39bfcc9214b91b