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

Get ifcopenshell in to homebrew #97

Open
luzpaz opened this issue Nov 26, 2018 · 7 comments
Open

Get ifcopenshell in to homebrew #97

luzpaz opened this issue Nov 26, 2018 · 7 comments

Comments

@luzpaz
Copy link
Contributor

luzpaz commented Nov 26, 2018

https://www.freecadweb.org/wiki/Extra_python_modules#IfcOpenShell
https://forum.freecadweb.org/viewtopic.php?f=39&t=32158&p=270631#p270631

Currently it's only available via the Arch AUR
Per Repology:
Packaging status

Conda:
Anaconda-Server Badge

@luzpaz
Copy link
Contributor Author

luzpaz commented Mar 8, 2021

@vejmarie are there any macOS folks open to making a homebrew recipe ?

@ipatch
Copy link
Collaborator

ipatch commented Mar 8, 2021

@luzpaz

are you asking for option to build/compile freecad with IfcOpenShell support?

a quick search, and i came across this, IfcOpenShell/IfcOpenShell#1074

and i assume you're looking for something along the lines of?

brew install freecad --with-ifcopenshell

@luzpaz
Copy link
Contributor Author

luzpaz commented Mar 8, 2021

Yes, I opened that ticket :)

@luzpaz
Copy link
Contributor Author

luzpaz commented Apr 11, 2022

Relevant links:
conda-forge/ifcopenshell-feedstock#20 (migration to OCC 7.6.0)

@ipatch
Copy link
Collaborator

ipatch commented Apr 11, 2022

following the instructions on their README

cmake \ 
-DOCC_LIBRARY_DIR=$bp/opt/opencascade/lib \
-DOCC_INCLUDE_DIR=$bp/opt/opencascade/include/opencascade \
-DCOLLADA_SUPPORT=0 \
-DCGAL_INCLUDE_DIR=$bp/opt/cgal/include \
-DGMP_LIBRARY_DIR=$bp/opt/gmp/lib \
-DMPFR_LIBRARY_DIR=$bp/opt/mpfr/lib \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=../../installs/v0.7.0 \
-L \
../../src/cmake;

make -j -lboost_options

yields

[ 17%] Built target IfcParse
[ 17%] Built target ifcopenshell_wrapper_swig_compilation
[ 18%] Built target IfcParseExamples
[ 25%] Built target IfcGeom_ifc4x3_rc4
[ 32%] Built target IfcGeom_ifc4x3_rc3
[ 39%] Built target IfcGeom_ifc4x3_rc2
[ 46%] Built target IfcGeom_ifc4x3_rc1
[ 53%] Built target IfcGeom_ifc4x2
[ 60%] Built target IfcGeom_ifc4x1
[ 67%] Built target IfcGeom_ifc4
[ 74%] Built target IfcGeom_ifc2x3
[ 75%] Built target libsvgfill
[ 78%] Built target IfcGeom
[ 80%] Built target svgfill
[ 81%] Built target Serializers_ifc4x3_rc4
[ 82%] Built target Serializers_ifc4x3_rc3
[ 83%] Built target Serializers_ifc4x3_rc2
[ 84%] Built target Serializers_ifc4x3_rc1
[ 85%] Built target Serializers_ifc4x2
[ 87%] Built target Serializers_ifc4x1
[ 88%] Built target Serializers_ifc4
[ 89%] Built target Serializers_ifc2x3
[ 94%] Built target Serializers
make[2]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_cpp.so', needed by `IfcConvert'.  Stop.
make[1]: *** [CMakeFiles/IfcConvert.dir/all] Error 2
make: *** [all] Error 2

@luzpaz
Copy link
Contributor Author

luzpaz commented Apr 11, 2022

Looks like they need hdf5 https://formulae.brew.sh/formula/hdf5

@kakke14
Copy link

kakke14 commented Sep 8, 2022

Did you manage to get it to work?

I have the same problem, trying to compile IfcOpenShell on Mac apple silicon.
I have tried installing hdf5 with the brew formula, but I am unsure how to update the path in Cmake.

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