FreeCAD / homebrew-freecad

Homebrew recipes for FreeCAD
56 stars 34 forks source link

netgen dependency error #561

Open sslupsky opened 2 months ago

sslupsky commented 2 months ago

Trying to install the netgen dependency and I am getting an error. I am attempting to set up a development environment in macOS following the instructions here: https://freecad.github.io/DevelopersHandbook/gettingstarted

and the installation of the dependencies described here: https://wiki.freecad.org/Compile_on_MacOS

When I attempt the installation of netgen, I see the following error:

==> Fetching freecad/freecad/nglib@6.2.2105
==> Downloading https://github.com/FreeCAD/homebrew-freecad/releases/download/nglib@6.2.2105-6.2.2105_1/nglib%406.2.2105-6.2.2105_1.big_sur.bottle.tar.gz
curl: (56) The requested URL returned error: 404                                                                                                                                                                                  

Error: nglib@6.2.2105: Failed to download resource "nglib@6.2.2105"
Download failed: https://github.com/FreeCAD/homebrew-freecad/releases/download/nglib@6.2.2105-6.2.2105_1/nglib%406.2.2105-6.2.2105_1.big_sur.bottle.tar.gz

I am installing on macOS 14.6.1. Not sure why it is attempting to download a big_sur bottle?

ipatch commented 2 months ago

you could try building netgen from source, and not sure why it's trying to install the big sur bottle.

try something like,

brew search netgen
brew install netgen -v

i haven't updated the formula in a while though, and there may be a newer version of netgen available.

sslupsky commented 2 months ago

Not showing when I do a brew search. Netgen only appears in the freecad tap. Found it in the NGSolve repo.

sslupsky commented 2 months ago

I found a cmake switch to turn off the Netgen build for the time being and was able to compile it.

luzpaz commented 1 month ago

Is there progress here ? What's the workflow ?

ipatch commented 1 month ago

Is there progress here ? What's the workflow ?

could you please elaborate on your question? ie. are you attempting to install freecad using brew install ?

sslupsky commented 1 month ago

I was attempting to compile freecad because of another issue I had and encountered where drawing a bspline in sketcher caused FreeCAD to crash.

https://github.com/FreeCAD/FreeCAD/issues/16729

The compile issue was resolved using the cmake switch. The result was that I could draw a bspline without crashing FreeCAD. I found a work around of sorts by drawing a line or arc and then converting the arc to a bspline. I could then edit and manipulate the bspline without crashing FreeCAD.