[waimea] Errors compiling]

Tobias Lieber tobiaslieber at web.de
Fri Jun 17 00:59:12 EEST 2005


In-Reply-To: <1118954037.7771.13.camel at localhost.localdomain>

Hi!

On Thu, Jun 16, 2005 at 10:33:57PM +0200, Soós Máté wrote:
> Hi!
> 
> I downloaded CVS of cairo and other stuff just yesterday, built it,
> instelled it, and got the following errors when building waimea:
> 
> 1. There was some problem in src/Render.hh, i changed two lines at line
> 250 to the following:
> 
>        cairo_set_source_rgb(cr, red, green, blue);
>        cairo_paint_with_alpha(cr, alpha);
> 
> The error I got was to do with the fact that cairo has changed the names
> of the corresponding functions to the ones I copied here. 
> 
> But then I get another error I cannot solve:
> 
> 2. When I compiled the souce with g++3.3 i got some different error
> message(but at the same location), but now, with g+-3.4 it sounds a more
> reasonable error:
> 
> if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DWAIMEA_PATH=
> \"/opt/gnome2/share/waimea\" -DXTHREADS -I/usr/include/freetype2
> -I/opt/gnome2/include/cairo -I/opt/gnome2/include -I/usr/X11R6/include
> -I/usr/include/libpng12      -I/usr/X11R6/include -DSHAPE  -DRENDER
> -DXTHREADS -I/opt/gnome2/include -I/usr/X11R6/include   -DRANDR -DPNG
> -I/usr/include/libpng12   -DSVG -DXTHREADS -I/opt/gnome2/include
> -I/usr/include/freetype2 -I/opt/gnome2/include/cairo
> -I/usr/X11R6/include -I/usr/include/libxml2 -I/usr/include/libpng12
> -DXCURSOR -DXTHREADS -I/opt/gnome2/include -I/usr/X11R6/include       -g
> -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" \
>   -c -o main.o `test -f 'main.cc' || echo './'`main.cc; \
> then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
> else rm -f ".deps/main.Tpo"; exit 1; \
> fi
> In file included from Style.hh:39,
>                  from Resources.hh:47,
>                  from Screen.hh:52,
>                  from Waimea.hh:93,
>                  from main.cc:34:
> Render.hh:505: erreur: ISO C++ interdit la déclaration de « cairo_font_t
> » sans type
> Render.hh:505: erreur: expected `;' avant un élément lexical « * »
> make[2]: *** [main.o] Erreur 1
> make[2]: quittant le répertoire « /home/msoos/cvs/waimea/src »
> make[1]: *** [all-recursive] Erreur 1
> make[1]: quittant le répertoire « /home/msoos/cvs/waimea »
> make: *** [all] Erreur 2
> 
> It's french, but it says that it is not allowed to declare cairo_font_t
> without a type. I have no clue what that means. I got the following
> things installed:
> 

i just searched a bit in cairo code for  "cairo_font_t".
in a old version, installed on my computer says " cairo_font_t" ist a
typedef of " cairo_font". but this does not matter, because i looked
via viwcvs to the current sources of cairo, but i could not find it...
so here is the cause:

cairo, is is at the moment under heavy development. waimea is not
really in active develpment ( look last cvs commit (should be 4 or 6
weeks ago, if not longer))

i think "cairo_font_t" is not anymore available in cairo, and waimeas
source code was not changed to this changes.



Tobias Lieber






More information about the waimea mailing list