I am trying to use SDL2_Image to load png and jpeg files. However, I have some problems getting proper dll files. Apparently the library needs those two files at runtime:
libjpeg-8.dll
libpng15-15.dll
Where is a reliable source of those two files or how can I build them myself? I am using Windows 7 and trying to make a 32-bit application.
There are many copies of those .dll
files on the web, but every file I check seems to be of different size, so I consider them unreliable - at least until someone tells me this is the file...
libpng
To get this one working I checked http://www.libpng.org/pub/png/libpng.html and ended up over here: http://sourceforge.net/projects/libpng/files/. From there I downloaded the latest available version - lpng1514.7z (+ needed zlib125.zip) and managed to build it, producing libpng15.dll
- which is almost what I need.
As a dirty hack I tried just renaming the file, and it seems to be working so far, but I would prefer to have a proper dll instead.
libjpeg
For jpeg I followed http://www.ijg.org/ and ended up downloading jpegsr8.zip but I get sources that I am not sure how to build under Windows (using Visual Studio).