The command command -v pkg-config
gives /usr/local/bin/pkg-config And $? gives 0 The file $SAGE_LOCAL/lib/pkgconfig/libpng.pc is a symbolic link to $SAGE_LOCAL/lib/pkgconfig/libpng12.pc Le jeudi 11 juillet 2013 12:00:16 UTC+2, Jean-Pierre Flori a écrit : > > The other thing to do is to modify our patch "steupext.py.path" and add > some debug output with "print "I'm here"" and so on... to see how > matplotlib detects libpng. > > On Thursday, July 11, 2013 10:38:31 AM UTC+2, Jean-Pierre Flori wrote: >> >> Can you run >> {{{ >> command -v pkg-config >> echo $? >> }}} >> >> and post the content of $SAGE_LOCAL/lib/pkgconfig/libpng.pc and >> $SAGE_LOCAL/lib/pkgconfig/libpng12.pc >> >> Thanks. >> >> On Thursday, July 11, 2013 10:31:59 AM UTC+2, Paul Mercat wrote: >>> >>> I've try to compile sage with matplotlib 1.1.0. It changes nothing : >>> >>> g++ -bundle -undefined dynamic_lookup >>> -L/Users/mercat/sage-5.10/local/lib >>> build/temp.macosx-10.8-x86_64-2.7/src/_png.o >>> build/temp.macosx-10.8-x86_64-2.7/src/mplutils.o >>> build/temp.macosx-10.8-x86_64-2.7/CXX/cxx_extensions.o >>> build/temp.macosx-10.8-x86_64-2.7/CXX/cxxsupport.o >>> build/temp.macosx-10.8-x86_64-2.7/CXX/IndirectPythonInterface.o >>> build/temp.macosx-10.8-x86_64-2.7/CXX/cxxextensions.o >>> -L/Users/mercat/sage-5.10/local/lib -lpng -lz -lstdc++ -lm -o >>> build/lib.macosx-10.8-x86_64-2.7/matplotlib/_png.so >>> ld: library not found for -lpng >>> collect2: error: ld returned 1 exit status >>> error: command 'g++' failed with exit status 1 >>> Error building matplotlib package. >>> >>> real 1m17.927s >>> user 0m59.125s >>> sys 0m3.202s >>> ************************************************************************ >>> Error installing package matplotlib-1.1.0 >>> ************************************************************************ >>> Please email sage-devel (http://groups.google.com/group/sage-devel) >>> explaining the problem and including the relevant part of the log file >>> /Users/mercat/sage-5.10/logs/pkgs/matplotlib-1.1.0.log >>> Describe your computer, operating system, etc. >>> If you want to try to fix the problem yourself, *don't* just cd to >>> /Users/mercat/sage-5.10/spkg/build/matplotlib-1.1.0 and type 'make' or >>> whatever is appropriate. >>> Instead, the following commands setup all environment variables >>> correctly and load a subshell for you to debug the error: >>> (cd '/Users/mercat/sage-5.10/spkg/build/matplotlib-1.1.0' && >>> '/Users/mercat/sage-5.10/sage' --sh) >>> When you are done debugging, you can type "exit" to leave the subshell. >>> ************************************************************************ >>> make[2]: *** [/Users/mercat/sage-5.10/spkg/installed/matplotlib-1.1.0] >>> Error 1 >>> make[1]: *** [all] Error 2 >>> >>> real 202m40.486s >>> user 164m15.860s >>> sys 17m3.883s >>> *************************************************************** >>> Error building Sage. >>> >>> The following package(s) may have failed to build: >>> >>> package: matplotlib-1.1.0 >>> >>> >>> There is still a '-lpng', and it don't worrk because it should be >>> '-lpng12'. >>> >>> Here are my logs for libpng and for matplotlib. >>> >>> -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.
libpng12.pc
Description: Binary data