-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Apparently this code uses some deprecated classes / headers that were removed in OCCT 7.4.0.
It is therefore necessary to self-build OCCT it with version 7.3.0 or lower.
Additionally, a patch for a cast needs to be applied.
diff --git a/src/Font/Font_BRepFont.cxx b/src/Font/Font_BRepFont.cxx
index 8f8dc94a7b..511a5792c2 100755
--- a/src/Font/Font_BRepFont.cxx
+++ b/src/Font/Font_BRepFont.cxx
@@ -274,7 +274,7 @@ Standard_Boolean Font_BRepFont::renderGlyph (const Standard_Utf32Char theChar,
for (short aContour = 0, aStartIndex = 0; aContour < anOutline.n_contours; ++aContour)
{
const FT_Vector* aPntList = &anOutline.points[aStartIndex];
- const char* aTags = &anOutline.tags[aStartIndex];
+ const char* aTags = reinterpret_cast<const char*>(&anOutline.tags[aStartIndex]);
const short anEndIndex = anOutline.contours[aContour];
const short aPntsNb = (anEndIndex - aStartIndex) + 1;
aStartIndex = anEndIndex + 1;This builds with gcc 14.2.1 on Manjaro 24.1.0
Metadata
Metadata
Assignees
Labels
No labels