svg problem during cairo build
Riccardo Mottola
rmottola at opencsw.org
Wed Jun 24 22:04:13 CEST 2015
Hi,
I think we habe some problems with pkg-config
Riccardo Mottola wrote:
> as in pkg-config?
>
> If I do, on unstable10s, pkg-config --list-all I get:
> gtkhex gtkhex - GtkHex - A hex display widget.
> gok-1.0 Gok - GNOME On-screen Keyboard
> glib-2.0 GLib - C Utility Library
> Package videoproto was not found in the pkg-config search path.
> Perhaps you should add the directory containing `videoproto.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'videoproto', required by 'XvMC', not found
>
> no svg! should it instead? I think so, on my FreeBSD box a package
> librsvg-2.0 is registered, why not here? Shouldn't it be in the dev
> package?
>
> pkg-config --cflags librsvg-2.0
>
> however still works:
> -I/usr/include/librsvg-2 -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
> -I/usr/include/libart-2.0 -I/usr/include/libxml2
> -I/usr/include/pango-1.0 -I/usr/sfw/include/freetype2 -I/usr/sfw/include
>
> I think this output is totally bogus, isn't it? that looks like sun
> packages, not our opencsw ones
>
> /opt/csw/include/librsvg-2.0/
>
> exists and contains the files we need.
>
> When I check config.log of libcairo I see:
>
> pkg_cv_LIBRSVG_CFLAGS=
> pkg_cv_LIBRSVG_LIBS='-L/opt/csw/lib -lrsvg-2 -lm -lgio-2.0 -lgdk-x11-2.0
> -lpango
> cairo-1.0 -lgdk_pixbuf-2.0 -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0
> -lintl
> '
>
> I suppose the former line is just work, since it should contains our
> includes, right?
>
> configure's help says:
> LIBRSVG_CFLAGS
> C compiler flags for LIBRSVG, overriding pkg-config
>
> I could try setting LIBRSVG_CFLAGS, but that would defeat pkg-config
> somehow.
I tried again configuring&building by tweaking the LIBRSVG_FLAGS (and
thus working around pkg-config).
I get this failure:
"/opt/csw/include/glib-2.0/gobject/gparam.h", line 157: warning: integer
overflow detected: op "<<"
"/opt/csw/include/poppler/glib/poppler-structure-element.h", line 253:
warning: typedef redeclared: PopplerTextSpan
"/opt/csw/include/librsvg-2.0/librsvg/rsvg.h", line 34: cannot find
include file: <gdk-pixbuf/gdk-pixbuf.h>
"/opt/csw/include/librsvg-2.0/librsvg/rsvg.h", line 129: warning:
old-style declaration or incorrect type for: GdkPixbuf
"/opt/csw/include/librsvg-2.0/librsvg/rsvg.h", line 129: syntax error
before or at: *
"/opt/csw/include/librsvg-2.0/librsvg/rsvg.h", line 129: warning:
old-style declaration or incorrect type for: rsvg_handle_get_pixbuf
Not finding <gdk-pixbuf/gdk-pixbuf.h> must be again a pkg-config
problem, don't you think?
The headers are in: /opt/csw/include/gdk-pixbuf-2.0/
thus again a work for pkg-config to return
Help :) I hoped rebuilding existing packages to be easier!
Riccardo
More information about the maintainers
mailing list