Skip to main content
Associate
December 14, 2023
Solved

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

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

 

This topic has been closed for replies.
Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
December 14, 2023

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

 

3 replies

sipowerAuthor
Associate
December 14, 2023

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
Romain DIELEMANBest answer
ST Employee
December 14, 2023

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

 

sipowerAuthor
Associate
December 14, 2023

安装完就好用了,谢谢!