-
Notifications
You must be signed in to change notification settings - Fork 34
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
Problem with BOOST version installing freecad --HEAD --with-macos-app
on BigSur
#237
Comments
Two observations:
|
Hi @bblacey, and thanks for the quick response! It did occur to me that perhaps there was another brew process running that was getting in the way, and so I checked that there were no Here is the output with the the
|
Any luck on solving this @cowboyd? I'm running into the same issue trying to follow the Compile on MacOS instructions (also on Big Sur). I've also tried
Given others have seemed to solve similar issues by removing homebrew's locks, I'm wondering if the installation formula is trying to install boost twice or something, and foiling itself by downloading it, locking it, then reaching that lock the second time around and deciding it can't continue because something else is already using it. Tried to test that hypothesis by repeatedly deleting
|
@ES-Alexander Nope, no luck. I had to give up :'-( |
Damn. Thanks for getting back at least :-) Hopefully someone else is able to make some recommendations to fix the dependency issues. Seems a shame to be thwarted by a build error before even getting to try making changes. |
@ipatch excuse the intrusion, you've been super active with homebrew-freecad PRs lately - any ideas on how to get around this build issue? :-) |
yeah i don't mind. i'll see what i can come up with. if i find / fix anything i'll post back with another comment. |
so i had sometime today to mess around with issue. i setup a completely new user on macos big sur vm.
and ran into the below issue with the following command,
i'm able to get around this error by manually specifying boost and boost-python, ie. running the below commands,
both of those installed on my macos big sur vm. i'm the process of installing the additional dependencies. IMHO, i'd manually install freecad from a however, this repo is a good source for installing all the dependencies for freecad and using |
@ipatch Unfortunately didn't solve the issue for me, although it did seem to install It may be relevant that running your |
Thank you for posting the workaround, but sadly, though both packages installed successfully, it did not work. |
yeah i had my wires crossed when i typed that out. thanks for catching that. i meant to type/say |
Having the same problem:
I already have boost 1.76.0 installed using brew.
|
Some initial debugging:
I modified:
Just before the error there is a sequence where locks are requested for:
|
I'm not getting the
There error appears to be in this linker step:
Which seems to perhaps be related to: I only see one instance of
file: freecad/Build/CMakeFiles/CMakeError.log
More detail from the original log:
Here's the cmake summary report:
|
@stepheneb How did you get around this? I'm still facing this error when trying to setup a freecad build environment (nb: on macos 10.14; I know, unsupported by homebrew, but the issue seems to appear on more recent systems too). @ipatch commands for installing boost-python manually worked flawless, but then (even after
@stepheneb regarding the GL error: There has been a discussion in the forum regarding Apple not listing recent Macs in the list of OpenGL-supported devices. I don't have the thread at hand, you may want to try a search there. IIRC the libs are still there, but not the headers. That could explain your issue. |
presently i'm building freecad using a git clone of the freecad source. and am using homebrew to install the deps required for freecad to compile, but i do not install freecad using a
i'd like to get the freecad formula fixed up so that it can be installed with above such command and create the drag and drop app bundle. i've worked on some fixes for the formula locally but haven't fixed everything yet unfortunately so thus i haven't submitted a PR to make as for the |
I modified all .rb Formulas to switch from local versions of the formulas AKA (./$Formula) to home-core or "vanilla" versions. We must do this change recursively across all dependencies. For example: Kindest! |
Disclaimer: I'm still learning all the homebrew concepts etc. so excuse me if I butcher the terminology or sound confused (I am). I started doing pretty much exactly that - use the homebrew-core versions - and ended up on a tangent trying to get gcc to work. The reason, I think, is that I decided to perform the experiment in a separate, non-standard homebrew prefix/directory (not Getting gcc to work turns out to be challenging (while promising, it's clearly still work in progress), so for now I'll consider that a dead end and my next experiment would likely be to go back to using the standard homebrew prefix to see if that means skipping some builds, leveraging the bottles instead. |
In the spirit of not really knowing what I'm doing - try this:
|
With that patch applied to
With that fix applied the freecad build completed successfully and when I run |
Running |
Hi @vidmik! |
For the Been playing around with FreeCAD for ~30 minutes now and AFAICT everything seems to be working. I'm naively assuming that's good sign, and that this is all "just" a matter of updating all the dependency Formulae in homebrew-freecad to be more up-to-date with upstream. |
Thanks! I was asking about the patches or diff files for nglib, etc. you put the content of the diff but; how do you apply it? What’s the step by step to apply these patches? |
Oh, that's also something I just changed directly in the homebrew-freecad tap file using an editor. Open up
|
Am now trying to build FreeCAD from source using the homebrew freecad formula to install dependencies. Documented and more complete results here: Building FreeCAD from source using homebrew freecad formula to install dependencies Am stuck with errors building src/Base/CMakeFiles/FreeCADBase.dir/Builder3D.cpp.o
|
i believe you can test most features of your build using the below steps (probably should add this to the README) you can
it should take a minute to run through the various tests. you can see some output that it show in the below two links i've created. https://gist.github.com/ipatch/f26086fef67badf1db62c293bbf9579a hope that helps. |
Looks like the vast majority of the tests pass:
I've also spent a few more hours playing around with FreeCAD and I have still have not run into any issues. |
this is something i have run into when attempting to build freecad using on a side note (forgive for hijacking this thread) i downloaded the lastest occ v7.6.0 source code and opened up the offending file and sure enough that fix you suggested in my quoted reply appears to not be there. so if i have time later this evening i'll try and get patch going for both the opencascade 7.6.0 formula and the existing opencascade 7.5.3 formula we have in this repo, and hopefully get all my changes pushed for getting the i also have lots of documentation that i need to compile down no pun and update to hopefully make this whole process a lot better. everybody thanks for reporting issues, finding fixes, and having patience. like seeing the team work here. 🙌 |
Hi @ipatch! So then, after your commits, are we able to compile Freecad for Apple Silicon on Monterey with "brew install freecad --HEAD --with-macos-app" after brew tap Freecad/freecad? I'm just waiting to your signal to start compiling it! |
See WIP pull request: #264, |
@neurodigitaltechnologies , In my pull request, #264, I converted the form of the dependency paths from relative to absolute scoped to the tap ... which now allows this invocation to compile successfully. There is still a problem when the formula tries include the python dependencies from
Example of the change: From: |
Another change I made in #264 was fixing the generation of some of the This code: Updated to: |
most if not all these issues should be fixed with PR #266 which should build a i also removed the deprecated formula after updating the so the only known issue i'm presently running into is runtime issues related to pyside2 after the freecad gui launches which seems to be the same issue @vidmik pointed out in the below comment. hopefully i can update the |
this should be resolved with the below commit, |
Trying to build from source yields this error:
Here are the contents of the brew lockfiles. If I run
brew cleanup
in between to clear out the old lockfiles, it still happens.The text was updated successfully, but these errors were encountered: