Undefined symbol: _png_set_longjmp_fn

I’ve just downloaded and compiled the newest releases of SDL and SDL_image
on Fedora 17. I can’t seem to load PNG files with IMG_Load. The error
message is:

png_set_longjmp_fn: /lib64/libpng.so.3: undefined symbol:
_png_set_longjmp_fn

I’m no libPNG expert so I’m not sure what’s causing this. Does anybody else
know?

William

Hi,
do you got a solution? I face the same problem I don’t know where start.
Thanks in advance–
View this message in context: http://sdl.5483.n7.nabble.com/undefined-symbol-png-set-longjmp-fn-tp19028p36783.html
Sent from the SDL mailing list archive at Nabble.com.

I avoid this problem for ubuntu 12.04 using:

sudo apt-get install libjpeg-dev
sudo apt-get install libpng-dev
sudo apt-get install libtiff-dev

but now when I try to open a PNG I get other error:

LoadTexture error: Couldn’t open res/Lesson3/background2.png

from source code:

//we create the textures from images
SDL_Texture *background = loadTexture("res/Lesson3/background2.png",

renderer);–
View this message in context: http://sdl.5483.n7.nabble.com/undefined-symbol-png-set-longjmp-fn-tp19028p36784.html
Sent from the SDL mailing list archive at Nabble.com.

Are you absolutely certain that the file path is correct?On Tue, Sep 10, 2013 at 9:32 PM, alshira wrote:

I avoid this problem for ubuntu 12.04 using:

sudo apt-get install libjpeg-dev
sudo apt-get install libpng-dev
sudo apt-get install libtiff-dev

but now when I try to open a PNG I get other error:

LoadTexture error: Couldn’t open res/Lesson3/background2.png

from source code:

    //we create the textures from images
    SDL_Texture *background =

loadTexture(“res/Lesson3/background2.png”,
renderer);


View this message in context:
http://sdl.5483.n7.nabble.com/undefined-symbol-png-set-longjmp-fn-tp19028p36784.html
Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

thanks justin I removed that post beacuse you are right, the path was
incorrect.–
View this message in context: http://sdl.5483.n7.nabble.com/undefined-symbol-png-set-longjmp-fn-tp19028p36803.html
Sent from the SDL mailing list archive at Nabble.com.