#I cant find any way how to fix this error
27 messages · Page 1 of 1 (latest)
How did you setup sfml? This is a common issue when mixing debug and release binaries
Setup is correct, but i sont have freetype.dll i tried downloading it separately from whole SFML bc they didnt had it and i putted it in same foler where is .exe file and it still didnt worked idk whats problem
No in code IF font load then it will print loaded correctly but thats not happening since its failing to load
@ocean jungle has reached level 1. GG!
Take the one that came with sfml
The problem is that no freetype.dll came with it I only have freetype.lib
how are you linking SFML?
Copy library path and paste in option for that same for include in vs 2022
link freetype too
Where ?
I putted in same directory where .exe file is shouldn't that be it ?
Not you link it just like you linked the other files
Show the full code.
Can u tell me how ? Other files i put in same directory where is .exe and i link include and lib files with vs 2022
Code is not problem problem is that it cant create font face
There is a "lib directories" parameter in vs2022
I'm just trying to rule out that possibility because a memory leak or by something unknown, the font might not load. I have had this issue before where the font would load if I placed it globally but not locally and as weird as that is, it shows that the rest of the code had an impact on how the font was loaded.
But perhaps it is a linker issue.
Yes link the lib file
You can't just take a random DLL from the internet
Lib is already linked
I assume you're using SFML dynamic right? Static ,the default for SFML 3, doesn't require freetype.dll.
SFML doesn't have a default unless you're using the cmake template
So how can i get it ?
@ocean jungle has reached level 2. GG!
Nevermind i fixed the issue freetype.dll is already inclused in graphic.dll thats why it wasnt separate file and i didnt putted -d for debugging in linked include