[cairo] Libtool missing a flag

Gerdus van Zyl gerdusvanzyl at gmail.com
Sat Apr 11 13:52:11 PDT 2009


Hi,

I am again trying to get cairo compiling using msys/mingw; Out of the
box it fails when creating a dll failing at linking [error given
below]. It seem libtool isn't specifying -lpixman-1 as it should
because adding it to the gcc command libtool generates makes it
compile.  Is there something I am missing in my environment setup?

thanks,
Gerdus

--------
make  all-recursive
make[1]: Entering directory `/my/cairo'
Making all in src
make[2]: Entering directory `/my/cairo/src'
make  all-am
make[3]: Entering directory `/my/cairo/src'
/bin/sh ../libtool --tag=CC   --mode=link gcc  -pipe -O2
-mms-bitfields -march=i686  -version-info 10903:0:10901 -no-undefined
-export-symbols cairo.def -L/usr/local/lib -o libcairo.la -rpath
/usr/local/lib
cairo-analysis-surface.lo cairo-arc.lo cairo-array.lo cairo-atomic.lo
cairo-base85-stream.lo cairo-bentley-ottmann.lo cairo.lo
cairo-cache.lo cairo-clip.lo cairo-color.lo cairo-debug.lo
cairo-fixed.lo cairo-font-face.lo cairo-font-face-twin.lo
cairo-font-face-twin-data.lo cairo-font-options.lo cairo-freelist.lo
cairo-gstate.lo cairo-hash.lo cairo-hull.lo cairo-image-info.lo
cairo-image-surface.lo cairo-lzw.lo cairo-matrix.lo
cairo-meta-surface.lo cairo-misc.lo cairo-mutex.lo
cairo-output-stream.lo cairo-paginated-surface.lo cairo-path-bounds.lo
cairo-path.lo cairo-path-fill.lo cairo-path-fixed.lo
cairo-path-in-fill.lo cairo-path-stroke.lo cairo-pattern.lo
cairo-pen.lo cairo-polygon.lo cairo-rectangle.lo cairo-region.lo
cairo-scaled-font.lo cairo-skiplist.lo cairo-slope.lo cairo-spans.lo
cairo-spline.lo cairo-stroke-style.lo cairo-surface.lo
cairo-surface-fallback.lo cairo-tor-scan-converter.lo cairo-system.lo
cairo-traps.lo cairo-toy-font-face.lo cairo-unicode.lo
cairo-user-font.lo cairo-version.lo cairo-wideint.lo
cairo-cff-subset.lo cairo-scaled-font-subsets.lo
cairo-truetype-subset.lo cairo-type1-fallback.lo cairo-type1-subset.lo
cairo-type3-glyph-surface.lo cairo-pdf-operators.lo
cairo-win32-surface.lo cairo-win32-printing-surface.lo
cairo-win32-font.lo   cairo-png.lo      cairo-ps-surface.lo
cairo-pdf-surface.lo cairo-deflate-stream.lo cairo-svg-surface.lo
-LC:/msys/local/lib -lpixman-1      -LC:/msys/local/lib -lpng12
-lgdi32 -lmsimg32     -lz -lz     -lm

*** Warning: This system can not link to static lib archive
/usr/local/lib/libpixman-1.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
libtool: link: rm -fr  .libs/libcairo.dll.a
libtool: link: if test "x`/bin/sed 1q cairo.def`" = xEXPORTS; then cp
cairo.def .libs/libcairo-2.dll.def; else echo EXPORTS >
.libs/libcairo-2.dll.def; cat cairo.def >> .libs/libcairo-2.dll.def;
fi
libtool: link:  gcc -shared .libs/libcairo-2.dll.def
.libs/cairo-analysis-surface.o .libs/cairo-arc.o .libs/cairo-array.o
.libs/cairo-atomic.o .libs/cairo-base85-stream.o
.libs/cairo-bentley-ottmann.o .libs/cairo.o .libs/cairo-cache.o
.libs/cairo-clip.o .libs/cairo-color.o .libs/cairo-debug.o
.libs/cairo-fixed.o .libs/cairo-font-face.o
.libs/cairo-font-face-twin.o .libs/cairo-font-face-twin-data.o
.libs/cairo-font-options.o .libs/cairo-freelist.o .libs/cairo-gstate.o
.libs/cairo-hash.o .libs/cairo-hull.o .libs/cairo-image-info.o
.libs/cairo-image-surface.o .libs/cairo-lzw.o .libs/cairo-matrix.o
.libs/cairo-meta-surface.o .libs/cairo-misc.o .libs/cairo-mutex.o
.libs/cairo-output-stream.o .libs/cairo-paginated-surface.o
.libs/cairo-path-bounds.o .libs/cairo-path.o .libs/cairo-path-fill.o
.libs/cairo-path-fixed.o .libs/cairo-path-in-fill.o
.libs/cairo-path-stroke.o .libs/cairo-pattern.o .libs/cairo-pen.o
.libs/cairo-polygon.o .libs/cairo-rectangle.o .libs/cairo-region.o
.libs/cairo-scaled-font.o .libs/cairo-skiplist.o .libs/cairo-slope.o
.libs/cairo-spans.o .libs/cairo-spline.o .libs/cairo-stroke-style.o
.libs/cairo-surface.o .libs/cairo-surface-fallback.o
.libs/cairo-tor-scan-converter.o .libs/cairo-system.o
.libs/cairo-traps.o .libs/cairo-toy-font-face.o .libs/cairo-unicode.o
.libs/cairo-user-font.o .libs/cairo-version.o .libs/cairo-wideint.o
.libs/cairo-cff-subset.o .libs/cairo-scaled-font-subsets.o
.libs/cairo-truetype-subset.o .libs/cairo-type1-fallback.o
.libs/cairo-type1-subset.o .libs/cairo-type3-glyph-surface.o
.libs/cairo-pdf-operators.o .libs/cairo-win32-surface.o
.libs/cairo-win32-printing-surface.o .libs/cairo-win32-font.o
.libs/cairo-png.o .libs/cairo-ps-surface.o .libs/cairo-pdf-surface.o
.libs/cairo-deflate-stream.o .libs/cairo-svg-surface.o
-L/usr/local/lib -LC:/msys/local/lib -lpng12 -lgdi32 -lpixman-1
-lmsimg32 -lz  -mms-bitfields -march=i686   -o .libs/libcairo-2.dll
-Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker
.libs/libcairo.dll.a
Creating library file: .libs/libcairo.dll.a
make[3]: Leaving directory `/my/cairo/src'
make[2]: Leaving directory `/my/cairo/src'
make[1]: Leaving directory `/my/cairo'


More information about the cairo mailing list