FreeCAD-LibPack icon indicating copy to clipboard operation
FreeCAD-LibPack copied to clipboard

Freetype and opencascade

Open loopless opened this issue 11 months ago • 2 comments

On Windows, if freetype.dll is anywhere in your PATH , CMake for open cascade will incorrectly pick that .DLL file as the free type "library" causing open cascade link failures. That is , it tries to link with a .DLL instead of a .LIB file. You can see this by inspecting the VS project files.

It should be picking the file "working\LibPack-1.0.0-v3.0.0-Release\lib\freetype.lib"

The solution is to make sure no freetype.dll is in your PATH directories and re-run. For example, having an installed FreeCAD bin directory in your PATH would cause this issue.

This is more a FYI than anything - there us nothing the developer can do about this , it's an obscure issue with open cascade and cmake

loopless avatar Dec 07 '24 00:12 loopless

I guess we can probably patch OpenCASCADE to fix it though, right? It's not intentional on their part?

chennes avatar Dec 07 '24 00:12 chennes

I guess it is some subtle issue in the opencascade\adm\cmake\freetype.cmake that picks the .DLL under some circumstances as the library file.

loopless avatar Dec 07 '24 16:12 loopless