I'll look more at the problem before posting next time, promise. Here is some additional information:
On 31 Jul 2006, at 12:46 , jiho wrote:
On 31 Jul 2006, at 11:55 , Ben Fowler wrote:
On 31/07/06, jiho <jo.irisson@...400...> wrote:
[snip]
cairo-pdf.h is the header of cairo-pdf.cpp which is a source file of inkscape. so you have it. The problem is elsewhere in fact.
There are three problems IMHO:
- local cairo headers (#include "...) are included instead of
system ones (#include <...). I can understand this is usefull when using a local patched cairo but the defautl in the SVN source should be system libraries i.e. replace #include "cairo.h" #include "cairo-pdf.h" #include "cairo-ft.h" by #include <cairo.h> #include <cairo-pdf.h> #include <cairo-ft.h>
in cairo-pdf.h also l. 28 #include "cairo.h" >> #include <cairo.h>
- the presence of cairo is not checked in configure and
appropriate include flags are not added to the compilation command. To use system wide header I therefore have to add: export CPPFLAGS="-I$FINK/include -I$FINK/include/cairo/" on OS X. (understand -I/usr/include/cairo/ on linux but maybe this path is checked for headers by default)
- l.64: of cairo-pdf.cpp
#ifdef USE_PANGO_CAIRO #include <pango/pangocairo.h> #endif and USE_PANGO_CAIRO is never defined. where does this come from? Even if it is not defined, the build requires pangocairo.h. I don't have pangocairo.h on my system and have no idea in which package it is at the moment (I have pango and pango-dev installed though so it is not in the base version). So this is what is holding the build right now.
cairo-pdf.cpp l.52 #include "pdf-cairo.h"
l. 64-66 #ifdef USE_PANGO_CAIRO #include <pango/pangocairo.h> #endif
cairo-pdf.h l.29 #include <pango/pangocairo.h>
so pangocairo.h is included anyway, whatever the state of USE_PANGO_CAIRO. Not including it results in a compilation error: extension/internal/pdf-cairo.cpp:761: error: 'PANGO_GLYPH_EMPTY' was not declared in this scope extension/internal/pdf-cairo.cpp:761: error: 'PANGO_GLYPH_UNKNOWN_FLAG' was not declared in this scope so it seems mandatory. remove USE_PANGO_CAIRO? And I'm still stuck with this pangocairo.h which I cannot find. in which package is this on a linux box?
Thanks again.
JiHO --- Windows, c'est un peu comme le beaujolais nouveau : a chaque nouvelle cuvee on sait que ce sera degueulasse, mais on en prend quand meme par masochisme. --- http://jo.irisson.free.fr/