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

Freetype and opencascade #35

Open
loopless opened this issue Dec 7, 2024 · 2 comments
Open

Freetype and opencascade #35

loopless opened this issue Dec 7, 2024 · 2 comments

Comments

@loopless
Copy link

loopless commented Dec 7, 2024

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

@chennes
Copy link
Member

chennes commented Dec 7, 2024

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

@loopless
Copy link
Author

loopless commented Dec 7, 2024

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.

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

2 participants