Cannot compile 5.0 with OpenCascade 6.60

Help
2013-07-09
2013-07-09
  • Victor Major
    Victor Major
    2013-07-09

    I am (was) trying to compile netgen 5.0 with occ support using the new opencascade 6.60 but it fails with

    Partition_Loop2d.cxx:213: error: 'PI' was not declared in this scope
    make[3]: [Partition_Loop2d.lo] Error 1
    make[3]:
    Waiting for unfinished jobs....
    Partition_Inter3d.cxx: In function 'void PutInBounds(const TopoDS_Face&, const TopoDS_Edge&, Handle_Geom2d_Curve&)':
    Partition_Inter3d.cxx:246: error: 'class Extrema_ExtPS' has no member named 'Value'
    make[3]: [Partition_Inter3d.lo] Error 1
    mv -f .deps/Partition_Loop.Tpo .deps/Partition_Loop.Plo
    mv -f .deps/Partition_Inter2d.Tpo .deps/Partition_Inter2d.Plo
    make[3]: Leaving directory /media/500g_data/netgen-5.0.0/libsrc/occ' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/media/500g_data/netgen-5.0.0/libsrc'
    make[1]:
    [all-recursive] Error 1
    make[1]: Leaving directory `/media/500g_data/netgen-5.0.0'
    make: *** [all] Error 2

    Can you suggest a patch or other advice to make it compile with the current opencascade release?