FreeCAD-LibPack
FreeCAD-LibPack copied to clipboard
Freetype and opencascade
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
I guess we can probably patch OpenCASCADE to fix it though, right? It's not intentional on their part?
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.