cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX装完能打开,创建工程时,基本上到88%左右就卡住,然后就自己退出了,是什么原因?

sipower
Associate II

这个问题是从4.22版本开始出现的,之前的4.20可以正常用,装完4.22后,出现这个问题,然后4.20版本也一样问题不能用了,我全卸载,装了4.23,这个问题依然存在,可能是什么原因,怎么解决?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Romain DIELEMAN
ST Employee

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

 

View solution in original post

3 REPLIES 3
sipower
Associate II

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

Romain DIELEMAN
ST Employee

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

 

安装完就好用了,谢谢!