[SOLVED] FC compilation fails with OCCT 7.6.0 beta.

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FC compilation fails with OCCT 7.6.0 beta.

Post by wmayer »

It looks like it's not that easy to properly port the code to 7.6

https://dev.opencascade.org/doc/overvie ... de_occt760
fcaduser
Posts: 446
Joined: Wed Feb 19, 2014 6:53 pm
Location: Near Paris, France

Re: FC compilation fails with OCCT 7.6.0 beta.

Post by fcaduser »

Ok, we'll stay tuned.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FC compilation fails with OCCT 7.6.0 beta.

Post by wmayer »

fcaduser wrote: Thu Oct 07, 2021 6:58 pm Ok, we'll stay tuned.
git commit 74639da997 make FreeCAD compile with OCCT 7.6. But:
  • SMESH is not yet ported. So, you must disable the BUILD_FEM option
  • The rendering of part objects doesn't work at the moment.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FC compilation fails with OCCT 7.6.0 beta.

Post by wmayer »

This fixes the error: git commit 03be15cc6b
user1234
Veteran
Posts: 3332
Joined: Mon Jul 11, 2016 5:08 pm

Re: FC compilation fails with OCCT 7.6.0 beta.

Post by user1234 »

As always, many thanks for that! You are really the C++ device ("Der Gerät" anm.). Unfortunately i have no time to test it at the moment. But when, i will go through the list of the OCCT FreeCAD bugs.

Greetings
user1234
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FC compilation fails with OCCT 7.6.0 beta.

Post by wmayer »

I was able to run the unit tests without having a crash or other issues. Only some tests for the StartPage fail but this has nothing to do with OCCT.

I guess you use OCCT 7.6 parallel to your system-wide OCCT installation. So, when running your FreeCAD/OCCT 7.6 version you have to set LD_LIBRARY_PATH so that it points to OCCT's lib directory.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FC compilation fails with OCCT 7.6.0 beta.

Post by wmayer »

The port of smesh to OCCT 7.6 was easier than expected: git commit 6f3b00d67e
User avatar
chennes
Veteran
Posts: 3877
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: FC compilation fails with OCCT 7.6.0 beta.

Post by chennes »

wmayer wrote: Sun Oct 10, 2021 3:13 pm Only some tests for the StartPage fail
Can you send these to me? I will look into them (unless you were looking for a break from doing the hard stuff :) ).
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FC compilation fails with OCCT 7.6.0 beta.

Post by wmayer »

chennes wrote: Mon Oct 11, 2021 2:09 am Can you send these to me? I will look into them (unless you were looking for a break from doing the hard stuff :) ).
https://forum.freecadweb.org/viewtopic.php?f=4&t=62813

EDIT: Solved
fcaduser
Posts: 446
Joined: Wed Feb 19, 2014 6:53 pm
Location: Near Paris, France

Re: FC compilation fails with OCCT 7.6.0 beta.

Post by fcaduser »

Perfect ! And so no need to deactivate FEM module.

Thank you.
Post Reply