2023-12-13 08:20 PM
这个问题是从4.22版本开始出现的,之前的4.20可以正常用,装完4.22后,出现这个问题,然后4.20版本也一样问题不能用了,我全卸载,装了4.23,这个问题依然存在,可能是什么原因,怎么解决?
Solved! Go to Solution.
2023-12-13 09:54 PM
Hi,
From the error log and the "Failed to load native freetype library" message I believe you have to update your Visual C++ packages: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022
/Romain
2023-12-13 08:51 PM
2023-12-14 12:49:38,390 [2] ERROR TouchGFXDesigner.App: Failed to load native freetype library!
System.IO.FileLoadException: Failed to load native freetype library!
at TouchGFX.FreeTypeSharp.Native.FT.ImportResolver(String libraryName, Assembly assembly, Nullable`1 searchPath) in C:\jenkins\workspace\touchgfx-1\designer\TouchGFX.FreeTypeSharp\Native\FT.Methods.cs:line 91
at System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub(String libraryName, Assembly assembly, Boolean hasDllImportSearchPathFlags, UInt32 dllImportSearchPathFlags)
at TouchGFX.FreeTypeSharp.Native.FT.FT_Done_FreeType(IntPtr library)
at TouchGFX.FreeTypeSharp.Library.Dispose(Boolean disposing) in C:\jenkins\workspace\touchgfx-1\designer\TouchGFX.FreeTypeSharp\Library.cs:line 416
at TouchGFX.FreeTypeSharp.Library.Finalize() in C:\jenkins\workspace\touchgfx-1\designer\TouchGFX.FreeTypeSharp\Library.cs:line 54
2023-12-13 09:54 PM
Hi,
From the error log and the "Failed to load native freetype library" message I believe you have to update your Visual C++ packages: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022
/Romain
2023-12-13 10:04 PM
安装完就好用了,谢谢!