Hi all,
I'm trying to build POV-Ray 3.6.1 on Arch Linux x64 up-to-date. First of all i
found out that the version of libpng installed on my system (1.5) was too recent
for this version of POV-Ray and i was getting this type of error at the end of
the build log :
png_pov.cpp:1678:21: warning: 'png_struct_def::color_type' is deprecated
(declared at /usr/local/include/libpng15/png.h:1255) [-Wdeprecated-declarations]
make[2]: *** [png_pov.o] Error 1
make[2]: Leaving directory
`/home/gandalf75/.phoronix-test-suite/installed-tests/pts/povray-1.0.0/povray-3.6.1/source'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/home/gandalf75/.phoronix-test-suite/installed-tests/pts/povray-1.0.0/povray-3.6.1/source'
make: *** [install-recursive] Error 1
So i installed libpng 1.4 and 1.2 side by side with 1.5 (my O/S relies on 1.5),
things were the same with libpng 1.4 BUT are better with libpng 1.2 ... i'm
close to successfully build POV-Ray by linking this version of libpng and now
the log file ends like this :
make[1]: Entering directory
`/home/gandalf75/.phoronix-test-suite/installed-tests/pts/povray-1.0.0/povray-3.6.1/unix'
g++ -pipe -Wno-multichar -O3 -msse -mfpmath=sse -msse2 -march=k8 -mtune=k8
-malign-double -minline-all-stringops -Wno-write-strings
-L/usr/local/libpng12/lib -lpng12 -o povray svga.o unix.o xwin.o
...../source/libpovray.a ../source/base/libbase.a
.../source/frontend/libfrontend.a
-ltiff -ljpeg -lz -lXpm -lSM -lICE -lX11 -lm
...../source/libpovray.a(png_pov.o): In function `pov::PNG_Image::~PNG_Image()':
png_pov.cpp:(.text+0xd1f): undefined reference to `png_write_finish_row'
collect2: error: ld returned 1 exit status
make[1]: *** [povray] Error 1
make[1]: Leaving directory
`/home/gandalf75/.phoronix-test-suite/installed-tests/pts/povray-1.0.0/povray-3.6.1/unix'
make: *** [install-recursive] Error 1
Now i have the famous "collect2: error: ld returned 1 exit status" but i don't
know how to solve it.
You can note that "march" and "mtune" are set to "k8" AND i have an INTEL Corei7
CPU ... is it the cause of the problem ?
Thank you for your help,
Best Regards
Post a reply to this message
|