DiscussionsIssue archiveInstallation and Building

Archived discussion

Build Error using WSL Fedora

Installation and BuildingMon, 01/06/2025 - 21:262 replies

Browse this forum
QuestionAuthor

[ 38%] Building CXX object src/TKV3d/CMakeFiles/TKV3d.dir/__/StdPrs/StdPrs_BRepFont.cxx.o
/home/Author/dev/libs/opencascade-7.7.0/src/StdPrs/StdPrs_BRepFont.cxx: In member function ‘Standard_Boolean StdPrs_BRepFont::renderGlyph(Standard_Utf32Char, TopoDS_Shape&)’:
/home/Author/dev/libs/opencascade-7.7.0/src/StdPrs/StdPrs_BRepFont.cxx:460:30: error: invalid conversion from ‘unsigned char*’ to ‘const char*’ [-fpermissive]
460 | const char* aTags = &anOutline->tags[aStartIndex];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| unsigned char*
make[2]: *** [src/TKV3d/CMakeFiles/TKV3d.dir/build.make:790: src/TKV3d/CMakeFiles/TKV3d.dir/__/StdPrs/StdPrs_BRepFont.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1850: src/TKV3d/CMakeFiles/TKV3d.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I keep getting this error when attempting to build OCCT. I'm using Fedora on WSL.

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hello. The issue fixed on latest version of OCCT. You can apply change manually to avoid compilation error or use latest version (if you starting to work with occt, better to apply patch on stable version).

PR: 0033808: Coding - FreeType Use unsigned point and contour indexing in `FT_Outline` and commit: https://github.com/Open-Cascade-SAS/OCCT/commit/7236e83dcc1e7284e66dc61e...

Best regards, Commenter-1.

02Author

Thanks Dmitri.
As usual quick, concise and to the point.