FS#68752 - [freecad] Support OpenCascade 7.5.0

Attached to Project: Community Packages
Opened by Alexander F. Rødseth (xyproto) - Thursday, 26 November 2020, 10:53 GMT
Last edited by Alexander F. Rødseth (xyproto) - Friday, 25 December 2020, 20:37 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:

The latest release of FreeCAD only supports OpenCascade 7.4.0.

Please consider applying patches and/or using a later commit so that the FreeCAD package can use OpenCascade 7.5.0.

Note that the FreeCAD package currently depends on opencascade74, since opencascade (not maintained by the freecad package maintainer) was upgraded to 7.5.0 and broke FreeCAD (crash when loading a mesh).

See also: https://bugs.archlinux.org/task/68673
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Friday, 25 December 2020, 20:37 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Thursday, 26 November 2020, 10:57 GMT
FreeCAD 0.18.4 does not compile with opencascade 7.5. Neither does the 0.19_pre tag. I'm looking into using the same git commit hash as the freecad-git package, but avoiding non-release tags would be better.

The hope is that FreeCAD will release a new version soon, that also supports OpenCascade 7.5.0.
Comment by Hans Gatu (_HG_) - Saturday, 28 November 2020, 05:56 GMT
I use both FreeCAD and KiCAD.
KiCAD uses OpenCascade 7.5.0 and a conflict occurred when I tried to update FreeCAD.
Now I had to remove FreeCAD to be able to keep KiCAD, but I need both FreeCAD and KiCAD,
so please make FreeCAD work with OpenCascade 7.5.0.

/ Hans Gatu
Comment by Alexander F. Rødseth (xyproto) - Saturday, 28 November 2020, 14:23 GMT
No release of FreeCAD works with OpenCascade 7.5.0, only one of the latest commits. Please ask the FreeCAD developers to make a new release and/or create a feature request for a new release.

I am planning to hunt down which commits makes FreeCAD work with OpenCascade 7.5.0 in order to apply a patch, but an upstream release would be better.
Comment by Clemmitt Sigler (cmsigler) - Saturday, 28 November 2020, 15:57 GMT
Hi,

My apologies if I'm butting in. I tried to read up on this. Along the way I found that OCCT 7.5 offers glTF format support, which is now supported in FreeCAD as well. Please see here:

https://forum.freecadweb.org/viewtopic.php?f=8&t=31680&start=10

In order to get this working, OpenCascade has to be built with RapidJSON support. If I am correct, its PKGBUILD needs to be modified to do this??? Should a task be filed against opencascade? Again, apologies for just kibitzing :\

Clemmitt Sigler
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 02 December 2020, 08:32 GMT
Yes, adding RapidJSON support to the opencascade package sound like a good idea. It's not maintained by me, though. Please create a feature request for the opencascade package.
Comment by Clemmitt Sigler (cmsigler) - Wednesday, 02 December 2020, 10:33 GMT
Thank you, Alexander. Done :)

Please see  FS#68816 

Clemmitt
Comment by Clemmitt Sigler (cmsigler) - Thursday, 03 December 2020, 16:00 GMT
@xyproto

keenerd has enabled RapidJSON support in opencascade 7.5.0-3 and it works for glTF export in freecad-git, which depends on Opencascade 7.5 :) Again, please see  FS#68816 

Clemmitt
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 22 December 2020, 17:36 GMT
Building FreeCAD takes an unusually long time. Tracking down the patch that could make the latest release version of FreeCAD work together with OpenCascade 7.5.0 (and not crash when loading a mesh) is very time consuming.

If someone has a patch that is a bit more focused than just every change from 0.18.5 to 0.19_pre, that would be helpful. I would be happy to apply that to the FreeCAD package.

If not, my current plan is to wait until FreeCAD has a new stable release.
Comment by loqs (loqs) - Friday, 25 December 2020, 10:19 GMT
@cmsigler does building with the attached PKGBUILD.diff produce a functioning freecad using opencascade 7.5?
Comment by Alexander F. Rødseth (xyproto) - Friday, 25 December 2020, 19:44 GMT
loqs, your patch works! You're amazing. Thanks!

Loading...