Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure loading libpng for 2.0.2+ when building with mingw32 #131

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 1 comment
Closed

Failure loading libpng for 2.0.2+ when building with mingw32 #131

SDLBugzilla opened this issue Feb 11, 2021 · 1 comment

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 2.0.2
Reported for operating system, platform: Windows 10, x86_64

Comments on the original bug report:

On 2018-06-13 19:36:52 +0000, Adam wrote:

Overview:

I'm building an SDL application in Go using a sample repository (https://github.com/adam000/go-sdl2-wsl-build-windows) to reproduce the problem. (full repro instructions at veandco/go-sdl2#336 )

I'm building from Windows Subsystem for Linux to create a Windows build (using the bash script in the example). It works for SDL_image version 2.0.1 but not newer versions. On newer versions, it fails with the following message:

Failed to load PNG: Failed loading libpng16-16.dll: The specified procedure could not be found.

I can get newer versions to work simply by replacing the libpng DLL with the one bundled in SDL_image 2.0.1. I noticed that libpng was upgraded after 2.0.1 and before 2.0.2 (revision 518).

Steps to reproduce:

  1. On WSL, run ./make-win64-on-wsl.bash from repository root, optionally providing a destination like /mnt/c/Users/myuser/Desktop.
  2. Under Windows command line, navigate to the destination and run build.exe

Actual results:

Application crashes with:

Failed to load PNG: Failed loading libpng16-16.dll: The specified procedure could not be found.

Expected Results:

A png of a drawing of a gopher should appear on the screen for several seconds, then disappear.

Additional information:

Related forum post: https://discourse.libsdl.org/t/sdl2-image-fails-loading-libpng-on-latest-versions-when-cross-compiling/24494

@slouken slouken removed the bug label May 11, 2022
@slouken
Copy link
Collaborator

slouken commented May 12, 2022

SDL_image no longer depends on libpng. This change will be in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants