If I do import setupext
in the sage shell, I get dyld: Library not loaded: /opt/X11/lib/libfreetype.6.dylib Referenced from: /usr/local/bin/import Reason: Incompatible library version: import requires version 15.0.0 or later, but libfreetype.6.dylib provides version 10.0.0 Trace/BPT trap: 5 The other to lines gives 'syntax error'. Le jeudi 11 juillet 2013 15:55:37 UTC+2, Jean-Pierre Flori a écrit : > > In a sage python shell (./sage --python), can you go to the matplotlib > build dir ($SAGE_ROOT/spkg/build/matplotlib*/src/) and run > {{{ > import setupext > module = setupext.make_extension("test", []) > setupext.get_pkgconfig(module, 'libpng', 'png', report_error=True) > }}} > > On Thursday, July 11, 2013 3:30:57 PM UTC+2, Jean-Pierre Flori wrote: >> >> >> >> On Thursday, July 11, 2013 3:18:53 PM UTC+2, Paul Mercat wrote: >>> >>> In the Sage shell, the command >>> >>> pkg-config --variable pc_path pkg-config >>> >>> gives nothing. >>> And the command >>> >>> export PKG_CONFIG_DEBUG_SPEW=yes; >>> pkg-config --libs --cflags libpng >>> >>> gives >>> >>> PKG_CONFIG_DEBUG_SPEW variable enabling debug spew >>> Adding directory '/Users/mercat/sage-5.10/local/lib/pkgconfig' from >>> PKG_CONFIG_PATH >>> Adding directory '/usr/local/lib/pkgconfig' from PKG_CONFIG_PATH >>> Adding directory '/usr/local/share/pkgconfig' from PKG_CONFIG_PATH >>> Global variable definition 'pc_top_builddir' = '$(top_builddir)' >>> Option --libs seen >>> Option --cflags seen >>> Error printing enabled by default due to use of --version, --libs, >>> --cflags, --libs-only-l, --libs-only-L, --libs-only-other, --cflags-only-I, >>> --cflags-only-other or --list. Value of --silence-errors: 0 >>> Error printing enabled >>> Adding virtual 'pkg-config' package to list of known packages >>> Scanning directory '/Users/mercat/sage-5.10/local/lib/pkgconfig' >>> Ignoring file '.' in search directory; not a .pc file >>> Ignoring file '..' in search directory; not a .pc file >>> File 'bdw-gc.pc' appears to be a .pc file >>> Will find package 'bdw-gc' in file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/bdw-gc.pc' >>> File 'freetype2.pc' appears to be a .pc file >>> Will find package 'freetype2' in file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/freetype2.pc' >>> File 'gsl.pc' appears to be a .pc file >>> Will find package 'gsl' in file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/gsl.pc' >>> File 'libpng.pc' appears to be a .pc file >>> Will find package 'libpng' in file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/libpng.pc' >>> File 'libpng12.pc' appears to be a .pc file >>> Will find package 'libpng12' in file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/libpng12.pc' >>> File 'm4ri.pc' appears to be a .pc file >>> Will find package 'm4ri' in file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/m4ri.pc' >>> File 'pynac.pc' appears to be a .pc file >>> Will find package 'pynac' in file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/pynac.pc' >>> File 'python-2.7.pc' appears to be a .pc file >>> Will find package 'python-2.7' in file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/python-2.7.pc' >>> File 'python.pc' appears to be a .pc file >>> Will find package 'python' in file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/python.pc' >>> File 'python2.pc' appears to be a .pc file >>> Will find package 'python2' in file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/python2.pc' >>> File 'sqlite3.pc' appears to be a .pc file >>> Will find package 'sqlite3' in file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/sqlite3.pc' >>> File 'zlib.pc' appears to be a .pc file >>> Will find package 'zlib' in file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/zlib.pc' >>> Scanning directory '/usr/local/lib/pkgconfig' >>> Ignoring file '.' in search directory; not a .pc file >>> Ignoring file '..' in search directory; not a .pc file >>> File 'ImageMagick++-Q16.pc' appears to be a .pc file >>> Will find package 'ImageMagick++-Q16' in file >>> '/usr/local/lib/pkgconfig/ImageMagick++-Q16.pc' >>> File 'ImageMagick++.pc' appears to be a .pc file >>> Will find package 'ImageMagick++' in file >>> '/usr/local/lib/pkgconfig/ImageMagick++.pc' >>> File 'ImageMagick-Q16.pc' appears to be a .pc file >>> Will find package 'ImageMagick-Q16' in file >>> '/usr/local/lib/pkgconfig/ImageMagick-Q16.pc' >>> File 'ImageMagick.pc' appears to be a .pc file >>> Will find package 'ImageMagick' in file >>> '/usr/local/lib/pkgconfig/ImageMagick.pc' >>> File 'libavcodec.pc' appears to be a .pc file >>> Will find package 'libavcodec' in file >>> '/usr/local/lib/pkgconfig/libavcodec.pc' >>> File 'libavdevice.pc' appears to be a .pc file >>> Will find package 'libavdevice' in file >>> '/usr/local/lib/pkgconfig/libavdevice.pc' >>> File 'libavfilter.pc' appears to be a .pc file >>> Will find package 'libavfilter' in file >>> '/usr/local/lib/pkgconfig/libavfilter.pc' >>> File 'libavformat.pc' appears to be a .pc file >>> Will find package 'libavformat' in file >>> '/usr/local/lib/pkgconfig/libavformat.pc' >>> File 'libavutil.pc' appears to be a .pc file >>> Will find package 'libavutil' in file >>> '/usr/local/lib/pkgconfig/libavutil.pc' >>> File 'libcdt.pc' appears to be a .pc file >>> Will find package 'libcdt' in file '/usr/local/lib/pkgconfig/libcdt.pc' >>> File 'libcgraph.pc' appears to be a .pc file >>> Will find package 'libcgraph' in file >>> '/usr/local/lib/pkgconfig/libcgraph.pc' >>> File 'libgraph.pc' appears to be a .pc file >>> Will find package 'libgraph' in file >>> '/usr/local/lib/pkgconfig/libgraph.pc' >>> File 'libgvc.pc' appears to be a .pc file >>> Will find package 'libgvc' in file '/usr/local/lib/pkgconfig/libgvc.pc' >>> File 'libgvpr.pc' appears to be a .pc file >>> Will find package 'libgvpr' in file '/usr/local/lib/pkgconfig/libgvpr.pc' >>> File 'libpathplan.pc' appears to be a .pc file >>> Will find package 'libpathplan' in file >>> '/usr/local/lib/pkgconfig/libpathplan.pc' >>> File 'libswresample.pc' appears to be a .pc file >>> Will find package 'libswresample' in file >>> '/usr/local/lib/pkgconfig/libswresample.pc' >>> File 'libswscale.pc' appears to be a .pc file >>> Will find package 'libswscale' in file >>> '/usr/local/lib/pkgconfig/libswscale.pc' >>> File 'libxdot.pc' appears to be a .pc file >>> Will find package 'libxdot' in file '/usr/local/lib/pkgconfig/libxdot.pc' >>> File 'Magick++-Q16.pc' appears to be a .pc file >>> Will find package 'Magick++-Q16' in file >>> '/usr/local/lib/pkgconfig/Magick++-Q16.pc' >>> File 'Magick++.pc' appears to be a .pc file >>> Will find package 'Magick++' in file >>> '/usr/local/lib/pkgconfig/Magick++.pc' >>> File 'MagickCore-Q16.pc' appears to be a .pc file >>> Will find package 'MagickCore-Q16' in file >>> '/usr/local/lib/pkgconfig/MagickCore-Q16.pc' >>> File 'MagickCore.pc' appears to be a .pc file >>> Will find package 'MagickCore' in file >>> '/usr/local/lib/pkgconfig/MagickCore.pc' >>> File 'MagickWand-Q16.pc' appears to be a .pc file >>> Will find package 'MagickWand-Q16' in file >>> '/usr/local/lib/pkgconfig/MagickWand-Q16.pc' >>> File 'MagickWand.pc' appears to be a .pc file >>> Will find package 'MagickWand' in file >>> '/usr/local/lib/pkgconfig/MagickWand.pc' >>> File 'sdl.pc' appears to be a .pc file >>> Will find package 'sdl' in file '/usr/local/lib/pkgconfig/sdl.pc' >>> File 'SDL_image.pc' appears to be a .pc file >>> Will find package 'SDL_image' in file >>> '/usr/local/lib/pkgconfig/SDL_image.pc' >>> File 'SDL_ttf.pc' appears to be a .pc file >>> Will find package 'SDL_ttf' in file '/usr/local/lib/pkgconfig/SDL_ttf.pc' >>> File 'sndfile.pc' appears to be a .pc file >>> Will find package 'sndfile' in file '/usr/local/lib/pkgconfig/sndfile.pc' >>> File 'Wand-Q16.pc' appears to be a .pc file >>> Will find package 'Wand-Q16' in file >>> '/usr/local/lib/pkgconfig/Wand-Q16.pc' >>> File 'Wand.pc' appears to be a .pc file >>> Will find package 'Wand' in file '/usr/local/lib/pkgconfig/Wand.pc' >>> File 'zlib.pc' appears to be a .pc file >>> File 'zlib.pc' ignored, we already know about package 'zlib' >>> Cannot open directory '/usr/local/share/pkgconfig' in package search >>> path: No such file or directory >>> Looking for package 'libpng' >>> Looking for package 'libpng-uninstalled' >>> Reading 'libpng' from file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/libpng.pc' >>> Parsing package file >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/libpng.pc' >>> line>SAGE_ROOT=/Users/mercat/sage-5.10 >>> Variable declaration, 'SAGE_ROOT' has value '/Users/mercat/sage-5.10' >>> line>prefix=${SAGE_ROOT}/local >>> Variable declaration, 'prefix' has value '/Users/mercat/sage-5.10/local' >>> line>exec_prefix=${prefix} >>> Variable declaration, 'exec_prefix' has value >>> '/Users/mercat/sage-5.10/local' >>> line>libdir=${SAGE_ROOT}/local/lib >>> Variable declaration, 'libdir' has value >>> '/Users/mercat/sage-5.10/local/lib' >>> line>includedir=${prefix}/include/libpng12 >>> Variable declaration, 'includedir' has value >>> '/Users/mercat/sage-5.10/local/include/libpng12' >>> line> >>> line>Name: libpng >>> line>Description: Loads and saves PNG files >>> line>Version: 1.2.35 >>> line>Libs: -L${libdir} -lpng12 >>> line>Libs.private: -lz >>> Unknown keyword 'Libs.private' in >>> '/Users/mercat/sage-5.10/local/lib/pkgconfig/libpng.pc' >>> line>Cflags: -I${includedir} >>> Path position of 'libpng' is 1 >>> Adding 'libpng' to list of known packages, returning as package 'libpng' >>> original: libpng >>> sorted: libpng >>> original: libpng >>> sorted: libpng >>> original: libpng >>> sorted: libpng >>> original: libpng >>> sorted: libpng >>> -I/Users/mercat/sage-5.10/local/include/libpng12 >>> -L/Users/mercat/sage-5.10/local/lib -lpng12 >>> >>> This looks fine... >> (Last time you got nothing but in fact this was to be expected as you >> were not in a sage shell.) >> >>> >>> >> -- 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.