简体   繁体   English

SDL2_image.dll 和 libpng16-16.dll 的问题

[英]Problem with SDL2_image.dll and libpng16-16.dll

Problem with SDL2_image.dll and libpng16-16.dll SDL2_image.dll 和 libpng16-16.dll 的问题

When calling IMG_Init(IMG_INIT_PNG);调用 IMG_Init(IMG_INIT_PNG) 时; I get a "failed" return.我得到一个“失败”的回报。
IMG_GetError() returns "Failed loading libpng16-16.dll" IMG_GetError() 返回“加载 libpng16-16.dll 失败”

When checking output in debug mode both dlls are loaded and immediately unloaded.在调试模式下检查 output 时,两个 dll 都会加载并立即卸载。
Other SDL2 functions works as expected.其他 SDL2 功能按预期工作。
Both dlls are placed in the same folder as the.exe两个 dll 都放在与.exe 相同的文件夹中
I suspect one or both dlls are bad.我怀疑一个或两个 dll 是坏的。 I can find them at several places on the.net but at no place I trust right away.我可以在 .net 上的几个地方找到它们,但没有一个地方是我可以立即信任的。
Can anybody recommend at trustworthy site for these dlls?有人可以在可信赖的网站上推荐这些 dll 吗?
Or any advice on what my problem might be?或者对我的问题可能有什么建议?

After again downloading SDL2_image-2.0.5-win32-x64 from www.libsdl.org/projects/SDL_image/ and coping ALL the dlls found there into my project I am able execute IMG_Init(IMG_INIT_PNG);再次从www.libsdl.org/projects/SDL_image/下载 SDL2_image-2.0.5-win32-x64 并将在那里找到的所有 dll 复制到我的项目中后,我可以执行 IMG_Init(IMG_INIT_PNG); with an ok return.回报不错。 Go figure.... Go 图....
May I suggest that a link to www.libsdl.org/projects/ is placed on the index page, or better, a nice menu with the SDL project found there我可以建议在索引页面上放置一个指向www.libsdl.org/projects/的链接,或者更好的是,在那里找到一个带有 SDL 项目的漂亮菜单

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM