I tried to install the SDL2 library from the sources.
It seems to have been installed correctly as ldconfig -v | grep SDL2 indicates all the libraries linked with the “system”.
Problem is: no way to display an image using IMG_Load() from SDL2_image library. “unknown image format”.
This image is the same used with a 13.2 computer without any problem, checked three times on different 13.2 computers.
I tried on another 12.2 machine, it doesn’t load a jpg or png image at all.
I have one version in .png and another in .jpg, both can not be opened using SDL2 in 12.2 (it works in SDL1).
The libraries
libpng is version 12 and 14 on 12.2 (12 and 16 on 13.2)
libjpeg is version 6.2 and 8 on 12.2 (same on 13.2)
How can I make things to let SDL2 working on 12.2 machines ?
Please note that openSUSE 12.2 is very, very old and long out of support. Thus not very many people here will have it running and thus be able to recreate your problem, or even remember how it worked in respect with your problem long ago :(.
Also, please note that it is always much better to show the computer facts that illustrate your problem, instead of communicating your conclusions. After all, you have a problem you can not solve yourself and may be your conclusions are wrong.
Thus you better do not tell “It seems to have been installed correctly as ldconfig -v | grep SDL2 indicates…” only, but show that output of
ldconfig -v | grep SDL2 indicates
And please complete (including the prompt, the command, the output and the next prompt), copied/pasted between CODE tags in your post (you get the CODE tags by clicking on the # button in the tool bar of the post editor.