Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only builds with a patch to OCCT <= 7.3.0 #4

Open
darioackermann opened this issue Oct 2, 2024 · 0 comments
Open

Only builds with a patch to OCCT <= 7.3.0 #4

darioackermann opened this issue Oct 2, 2024 · 0 comments

Comments

@darioackermann
Copy link

darioackermann commented Oct 2, 2024

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

cast.patch.txt

@darioackermann darioackermann changed the title Only builds with OCCT <= 7.5.0 Only builds with OCCT <= 7.3.0 Oct 2, 2024
@darioackermann darioackermann changed the title Only builds with OCCT <= 7.3.0 Only builds with a patch to OCCT <= 7.3.0 Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant