freecad: update to 1.1.1.#59581
Conversation
3e09439 to
ea65c2e
Compare
|
Would it not be better to use https://github.com/FreeCAD/FreeCAD/releases/download/1.1.0/freecad_source_1.1.0.tar.gz that already contain OndselSolver and the AddOnManager? |
|
Not sure, the last couple people who updated the template decided to stick with the regular archive instead of the one with submodules (which was also available in 1.0.2, 1.0.1, 1.0.0). |
|
now version 1.1.1 has been released |
|
@muezabdalla I just updated the template to 1.1.1, not much has changed since 1.1.0 and it looks like everything works (that I personally use). CAM works great, I was able to create a toolpath and ran it on my CNC successfully. |
|
@al20ov I've tried to compile freecad 1.1.1 independently, then I discovered your pull request. The minimal set of compile time dependencies that I found is the following: I don't know actually why, but boost is correctly detected at compile time even if there is no Regarding The set of run time dependencies that I've identified is:
Full template: |
|
havent used too much since 1.0.2, but unfortunately they added a 'feature' and do not plan on making an option to change it. every deletion of groups or boolean'ed objects ask "Do you want to delete them as well?" for children. makes freecad completely unusable for me. not sure what yall wana do but from a quick test this patch fixes it for me. here it is for anyone who comes across this. there's no alternatives as almost everything is subscription and online saves, so i guess i have to rebuild freecad every update. |
|
@zlice I'm not sure void would be thrilled to ship freecad with a patch removing a feature.. I haven't run into this issue myself as I only use freecad for the CAM workbench but it's a shame there's no option to disable it I agree |
|
@Kruayd or @al20ov did either of you run into issues with errors during I am getting the following error when attempting to build this patch on top of the current master tip. Any suggestions? Trying to get 1.1.1 working, as 1.0.2 has serious bugs with the Assembly work bench. |
|
Did some further debugging, and found that I had to add Once it finishes building, I will post my complete |
|
It compiles without issue for me without |
That's odd, not sure why it wasn't detecting it for me. I am running |
Got past this issue, but am now having problems with I have tried with and without Trying to see if this is defined somewhere on the |
|
You have some problems with your build environment. |
Agreed. Not sure exactly what though. I wasn't specifically specifying 1.90 boost version though. Both my system and my copy of void packages are up to date, I blew away my binary-bootstrap and redownloaded. No idea what else I can do at this point. |
Are you sure the branch you are applying this PR is up to date? I just made a branch that is updated that you can use, the only difference this PR is that I removed the boost patch since it's not needed anymore. |
|
@kaistian Can you think of any edits to make before I rebase on top of master? If there's too many things to change I can close this PR and hand it over to you. EDIT: sorry I misread your message. So no more boost-1.89 patch and it should be good? |
|
Yes, the boost is fixed i FreeCAD FreeCAD/FreeCAD#24098 |
83ee5e7 to
095e74b
Compare
After redownloading this PR and applying on top of master, I was successfully able to compile freecad 1.1.1. Thanks for taking the time to submit this pull request. |
2018f77 to
ea4e8e6
Compare
|
Looks to me that the bundled source archive has been a regular part for a while. It cleans up the template quite a bit. Might be worth to switch over? |
|
Sorry the qemu build_helper was left over from before I tried the lrelease cross-build patch so it's not needed anymore. But let me try to see what I can do with the bundled source. |
|
Okay switching out the archive for the bundled one does clean up the template quite a bit, I was able to build it but it crashes at runtime when I open the CAM workbench. I don't believe it's related to the template at all but rather a fix that was backported into CPython 3.14.6 (python/cpython#149646). Not entirely sure though... And then the i686 build failure is related to #60319. Do I work around it just for i686? |
|
Can you push the template? I'm waiting for 1.1 especially for the CAM updates. So maybe I can spot something. |
|
Something is broken.
Is this branch properly rebased on master? |
|
My bad, I forgot to add common/shlibs |
9095317 to
0bdbd85
Compare
so:
|
|
Revbumping python3, adding my FreeCAD changes, then rebuilding everything, then reinstalling the local, rebuilt copy of python3 and then FreeCAD did not fix the CAM workbench crash for me unfortunately... However, Also for the rebase, this branch is confusingly named |
|
i686 build of freecad succeeds after this is applied (and vtk is rebuilt) However, if I understand that line properly, changing it would be necessary in order to build |
That's what I was thinking too so I asked about it but I still don't understand the reason for the conditional: #60888 I take it that you tried it on x86_64 too? Did you run into the same segfault I did when entering the CAM workbench? |
Looked at it a bit more, and noticed that vtk for aarch64-musl (checked as example because armv6l* / armv7l* failed) built fine and got picked up by freecad, and the path in the /usr/aarch64-linux-musl/usr/lib/cmake/vtk-9.5/VTKPython-targets-none.cmake is mangled correctly. Since this needs to be ran only in native builds, perhaps this would be the better approach?
not yet, no |
|
Re: crash when entering CAM workbench I do not get one, but I have also built everything from source. That included switching jxrlib to a fork and unbundling things from freeimage, otherwise I got build failures in them (and couldn't build occt) On a different note, similar to previous previous situation, when building HDF5, VTK and freecad, aarch64 native builds succeed (can't really test is CLI-only) In order to let aarch64 users build only freecad native, changes are necessary to HDF5 (I had that working for a test but it required 100k+ lines diffs from HDF5's master at the time, which I decided against opening a PR for): building freecad native gets to salomesmesh and then fails to find HDF5 in cross-built VTK, and then trying to build VTK leads to it not finding cross-built HDF5, but this is a known issue. Using both HDF5 and VTK native built on aarch64 and building freecad works. |
Testing the changes
Local build testing
New ondsel version, and pycxx is now included in the freecad tarball so there's no need to fetch it separately. But AddonManager is now a submodule so I added that.