void-packages icon indicating copy to clipboard operation
void-packages copied to clipboard

[WIP] occt: update to 7.6.2

Open karl-nilsson opened this issue 3 years ago • 12 comments

Testing the changes

  • I tested the changes in this PR: briefly

Local build testing

  • I built this PR locally for my native architecture, x64-glibc

Like previously, broken ABI

During initialization the error "/usr/lib/freecad/lib64/Part.so: undefined symbol: _ZN24BRepBuilderAPI_MakeShape5BuildEv" occurred in /home/nilsson/.FreeCAD/Mod/A2plus/InitGui.py                                                                                                                        
Please look into the log file for further information                                                                                                
Wizard shaft module cannot be loaded                                                                                                                 
/usr/lib/freecad/lib64/Part.so: undefined symbol: _ZN24BRepBuilderAPI_MakeShape5BuildEv                                                              
connect failed: No such file or directory      

Looks like we'll have to update or patch freecad

In file included from /usr/include/opencascade/Extrema_POnSurf.lxx:15,
                 from /usr/include/opencascade/Extrema_POnSurf.hxx:75,
                 from /usr/include/opencascade/Extrema_ExtPElS.hxx:27,
                 from /usr/include/opencascade/Extrema_ExtPS.hxx:24,
                 from /usr/include/opencascade/ShapeAnalysis_Surface.hxx:20,
                 from ../src/3rdParty/salomesmesh/inc/SMESH_MesherHelper.hxx:37,
                 from ../src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp:34:
/usr/include/opencascade/Precision.hxx:98:7: note: previous definition of 'class Precision'
   98 | class Precision
      |       ^~~~~~~~~

ping @Piraty

karl-nilsson avatar Mar 26 '22 04:03 karl-nilsson

sigh

Piraty avatar Mar 28 '22 19:03 Piraty

I'm just going to wait for the release of freecad v0.20. There's a slew of patches required to build with occt 7.6.x

karl-nilsson avatar May 02 '22 14:05 karl-nilsson

@karl-nilsson Heads-up: FreeCAD v0.20 has been released

luzpaz avatar Jul 04 '22 11:07 luzpaz

Thanks for you work on this!

luzpaz avatar Jul 24 '22 04:07 luzpaz

@Piraty I think it's ready

@yopito I updated FreeCAD to v0.20, and it looks like most of the patches were upstreamed. Could you please double-check my work?

karl-nilsson avatar Jul 25 '22 03:07 karl-nilsson

regarding FreeCAD 0.20 (only): I have some WIP on it, here some points about it:

  • help is not generated anymore from source by available (only) from online: see my review of your freecad/template
  • freecad/patches/010-salomesmesh-execinfo.patch is uneeded anymore
  • I've also update libspnav to 1.0 on my side, so additional patch for freecad is needed: could you add these into your commits ?
    • libspnav : update to 1.0: https://gist.github.com/yopito/2757c1a501e2772143814b4a3553cbea
    • freecad: : fix PATH_MAX on musl libc : https://gist.github.com/yopito/fd25b30edcbc762babd9069641a9b86e
  • another fix:
    • freecad: : fix build (stderr resource is readonly): https://gist.github.com/yopito/3ac7d4c8fee646171ca900ff17452567
  • I have some SIGSEGV on running FreeCAD (x86_64 musl) when it's using Coin/pivy and shiboken2/pyside2 in 5.15.5 (in WIP) : don't know yet if related to shiboken2/pyside2 in 5.15.5 : see https://github.com/coin3d/pivy/issues/98 => could you run at least FreeCAD -t MeshTestsApp to see if you have the same trouble ?

yopito avatar Jul 26 '22 03:07 yopito

hello, any news regarding FreeCAD packaging ?

yopito avatar Aug 12 '22 09:08 yopito

JFYI, OCCT v7.6.3 has been released

luzpaz avatar Aug 12 '22 14:08 luzpaz

hello, since this PR looks stale, I will shortly open another PR focused on freecad 0.20.1 and related updated stuff (pyside2, libspnav). Then this one could focus on OCCT solely ?

Edit: this is just a proposal, don't hesitate to react.

yopito avatar Aug 22 '22 11:08 yopito

hello, since this PR looks stale, I will shortly open another PR focused on freecad 0.20.1 and related updated stuff (pyside2, libspnav). Then this one could focus on OCCT solely ?

Edit: this is just a proposal, don't hesitate to react.

Please do! I've been swamped with work lately, I should have some time in the coming weeks to finish this PR.

karl-nilsson avatar Aug 22 '22 13:08 karl-nilsson

hello, since this PR looks stale, I will shortly open another PR focused on freecad 0.20.1 and related updated stuff (pyside2, libspnav). Then this one could focus on OCCT solely ? Edit: this is just a proposal, don't hesitate to react.

Please do! I've been swamped with work lately, I should have some time in the coming weeks to finish this PR.

OK, thanks. Here it is: #38856 I suggest to close this PR ?

yopito avatar Aug 23 '22 13:08 yopito

For the musl build, libexecinfo-devel should allow it to work. Got about 75% through the build after adding it to the dependency list.

enderger avatar Sep 27 '22 19:09 enderger

ping

Piraty avatar Dec 19 '22 00:12 Piraty

any more traction here ?

luzpaz avatar Jan 20 '23 03:01 luzpaz

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

github-actions[bot] avatar Apr 21 '23 01:04 github-actions[bot]

bump

luzpaz avatar Apr 24 '23 22:04 luzpaz

I assume no. anyone interested in picking up is welcome to open a new PR

Piraty avatar Apr 30 '23 19:04 Piraty