mchoccac / snes9x-gtk

Automatically exported from code.google.com/p/snes9x-gtk
0 stars 0 forks source link

snes9x-1.52 doesn't compile/link with libpng-1.4 #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
cd unix
./configure --enable-screenshot
make

../screenshot.o: In function `S9xDoScreenshot(int, int)':
screenshot.cpp:(.text+0x9e): undefined reference to `png_set_longjmp_fn'

Fails to compile (link) against libpng-1.4.1. And I don't see this problem
fixed in trunk.

Workaround: --disable-screenshot

Original issue reported on code.google.com by ssuomi...@unk.fi on 13 Mar 2010 at 2:02

GoogleCodeExporter commented 9 years ago
Do the changes to configure fix this? It was linking both libpng and libpngXX
libraries, and that might have caused a conflict. If not, then we're going to 
have to
go with the slotted libpng12 version.

Original comment by bear...@gmail.com on 14 Mar 2010 at 5:10

GoogleCodeExporter commented 9 years ago
Hmm, indeed... This might have been caused by the situation where I have 64bit
libpng14.so.0 but only 32bit libpng12.so.0

And I was building 32bit version on multilib system

I need to retry again when Gentoo multilib system provides 32bit libs for the 
libpng 1.4

Please close this "needinfo" or "test-request" meantime

Original comment by ssuomi...@unk.fi on 14 Mar 2010 at 5:30

GoogleCodeExporter commented 9 years ago
futher more the installed headers are for libpng14...

so yeah, there's no bug here

Original comment by ssuomi...@unk.fi on 14 Mar 2010 at 7:35

GoogleCodeExporter commented 9 years ago
Well, it WAS a bug, linking the possibly wrong version of the library. Using
pkg-config to pick up libpng exclusively through your other bugs, though, we 
should
have managed to fix it.

Original comment by bear...@gmail.com on 15 Mar 2010 at 9:34