Raf256 <spa### [at] raf256cominvalid> wrote:
> [...]>>> make[2]: Entering directory> `/home/raf256/cre.os/povray/megapov/megapov-1.2.1/unix'> g++ -pipe -Wno-multichar -s -O3 -ffast-math -malign-double> -minline-all-stringops -m3dnow -m3dnow -march=athlon -mtune=athlon> -L/usr/X11R6/lib -o megapov svga.o unix.o> xwin.o ../source/libpovray.a ../source/base/libbase.a
../source/frontend/libfrontend.a ../source/patches/libmegapov.a> -ltiff -ljpeg -lpng12 -lz -lXpm -lSM -lICE -lX11 -lvgagl -lvga -lm> ../source/libpovray.a(png_pov.o): In function> `pov::PNG_Image::~PNG_Image()':> png_pov.cpp:(.text+0x194): undefined reference to `png_write_finish_row'> ../source/libpovray.a(png_pov.o): In function> `pov::PNG_Image::~PNG_Image()':> png_pov.cpp:(.text+0x2a2a): undefined reference to `png_write_finish_row'> ../source/libpovray.a(png_pov.o): In function> `pov::PNG_Image::~PNG_Image()':> png_pov.cpp:(.text+0x2c0a): undefined reference to `png_write_finish_row'>> any idea what might be wrong? on Debian Unstable>> --
I had a similar problem compiling povray 3.6.1 but fixed it by removing
libpng12-dev which forces povray to link to libpng10-dev. Removing this
package with apt removes several other -dev packages but it's easy enough
to add them back after compiling.
HTH
Jason
The function "png_write_finish_row" is exported by PNG_EXTERN in png.h.
So it is PNG_INTERNAL fuction which is usually used outside of libpng
(written in pngconf.h).
I hope it is not included in the povray-3.7 source.