错误:找不到“ freetype6.dll”

GHC

最近,我在使用MonoGame内容管道工具时遇到了一些麻烦,无法加载纹理。错误消息说找不到“ freeimage.dll”。我检查了MonoGame论坛上的解决方案,并最终下载了64位版本的Visual C ++ Redistributable Package2012。这解决了我的问题,内容管道可以再次加载.png文件。现在,管道工具在加载.spritefont文件时遇到问题。它说它缺少'freetype.dll'。所有这些丢失的.dll文件怎么处理?我刚刚下载了VC ++可再发行组件包,但它仅固定纹理,而不固定字体。


更新:

我尝试下载Visual C ++可再发行组件包2017。但是,问题仍然存在...

反杜

根据Monogame中的错误报告5736,这是他们与2012年可再发行产品(短期内无法下载)链接的问题。

您可以按照错误报告(如下所示)中的说明,通过自己编译freetype6来尝试自行修复,或者可以在错误4485修复后等待它们修复问题(这似乎解决了其依赖项链的更大问题)。 ),或者您可以查看较新的Redistrib是否已解决。

...

尝试下载VC ++ 2012 Update 4可再发行组件:https : //www.microsoft.com/zh-cn/download/details.aspx? id
=30679

或者尝试自己编译freetype6:

mdrejhon于2017年5月25日发表评论•

尤里卡!我自己重新编译了FreeType并解决了这个问题。

我只需要遵循以下说明的修改版本:将FreeType编译为DLL(而不是静态库)

Download latest FreeType 2.8 from https://www.freetype.org/download.html
Using VS2015 or VS2017, open freetype.sln from the builds\win32\vc2010 directory
Modify solution to target x64 instead of x86
Modify solution to Configuration Type of DLL instead of LIB
Edit ftoption.h to add two lines at top
#define FT_EXPORT(x) __declspec(dllexport) x
#define FT_BASE(x) __declspec(dllexport) x
Change project config to Release
Build.
You will see warnings, but compile succeeds.
You will have a file "freetype28.dll" (for FreeType 2.8)
Rename this file to "freetype6.dll" and copy to C:\Program Files (x86)\MSBuild\MonoGame\v3.0\Tools
(replacing the original freetype6.dll located there)

静态链接到2015或2017可以正常工作。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章