On 5/13/14, 7:03 AM, Elmar Stellnberger wrote: > Dear Andrew Rohl, > Dear Members of the Fink Users List, > > Having tried to compile povray with Xquartz on Mac OS Lion10.7 I got an > error as in the P.S.. > That error can be resolved by forcing povray into usage of its own libpng > rather than the XQuartz libpng > > i.e. using ../libraries/png/libpng.a instead of libpng and > --- povray-3.6.1.orig/source/png_pov.cpp 2014-05-13 11:44:29.000000000 > +0200 > +++ povray-3.6.1/source/png_pov.cpp 2014-05-13 12:56:26.000000000 +0200 > -#include "png.h" > +#include "../libraries/png/png.h" > +//#include "png.h" > > However I have failed to apply my fix so that it will be incorporated after a > ./configure into the Makefiles > See my attached patches. > It would be really nice to have a povray working with XQuartz. > Perhaps you can complete my fix. > > Elmar > > g++ -pipe -Wno-multichar -O3 -march=k8 -mtune=k8 -L/sw/lib > -L/usr/X11R6/lib -o povray svga.o unix.o xwin.o ../source/libpovray.a > ../source/base/libbase.a ../source/frontend/libfrontend.a -ltiff -ljpeg > -lpng -lz -lXpm -lm -lSM -lICE -lX11 > Undefined symbols for architecture x86_64: > "_png_write_finish_row", referenced from: > pov::PNG_Image::~PNG_Image() in libpovray.a(png_pov.o) > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > make[2]: *** [povray] Error 1 > make[2]: Leaving directory > `/Volumes/Users/elm/sources/finkbuild.build/povray-3.61-1004/povray-3.6.1/unix' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/Volumes/Users/elm/sources/finkbuild.build/povray-3.61-1004/povray-3.6.1' > make: *** [all] Error 2 > ### execution of make failed, exit code 2 > ### execution of /tmp/fink.BFHMD failed, exit code 2 > > > > ------------------------------------------------------------------------------
As I told you in IRC, the project does NOT support Xquartz on 10.7. If somebody wants to help you make a local change that's then they're free to do so. Your change is contrary to official packaging guidelines, since we prefer that packages use Fink's libraries for their dependencies rather versions that they bundle. Maybe you could work around the issue by temporarily renaming /opt/X11/include so that the build doesn't find Xquartz's headers. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users