It requires libpng as a library (png.h). There is a version on fink for Mac OSX 10.6.8 (1.6.10-1) but I can't install fink becuase the version im trying to install (10.6.8 appropriate) keeps timing out or not being able to connect to mirrors during the install.
There is a version (1.2.41 )of libpng in /usr/X11/include/, but it is just not happy with it. And ive also installed libpng 1.0.8, and it is also producing the same errors:
Trying to build pngtomr via gcc just results in every function it trys to call from the library being an 'undefined symbol'. (small tidbit below).
Undefined symbols:
...
...
"_png_set_background", referenced from:
_read_png in ccZtjJCH.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
What is going wrong?