[Spice-devel] QCairo Installation on Linux

David Moss mozzy_ at hotmail.com
Tue Nov 30 07:24:17 PST 2010


Hi People, 

I'm currently trying to install SPICE on linux, following the steps from the SPICE User Manual (http://www.spicespace.org/docs/spice_user_manual.pdf),
 and can install all the required prerequisites apart from QCairo (section 2.1.2). After
 successfully configuring the app, I receive the following error when 
executing the make command: 



make  all-recursive

make[1]: Entering directory `/usr/local/qcairo-1.8.7.1-git74d6b5'

Making all in src

make[2]: Entering directory `/usr/local/qcairo-1.8.7.1-git74d6b5/src'

make  all-am

make[3]: Entering directory `/usr/local/qcairo-1.8.7.1-git74d6b5/src'

if ../doltcompile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I. 
-I..//usr/local/qpixman-0.13.3-git20090127/pixman    
-I/usr/include/freetype2     -I/usr/include/libpng12     -Wall -Wextra 
-Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum 
-Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self 
-Wunsafe-loop-optimizations -Wdeclaration-after-statement 
-Wold-style-definition -Wno-missing-field-initializers 
-Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline 
-fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2         -g -O2 
-MT cairo-analysis-surface.lo -MD -MP -MF 
".deps/cairo-analysis-surface.Tpo" -c -o cairo-analysis-surface.lo 
cairo-analysis-surface.c; \

        then mv -f ".deps/cairo-analysis-surface.Tpo" 
".deps/cairo-analysis-surface.Plo"; else rm -f 
".deps/cairo-analysis-surface.Tpo"; exit 1; fi

In file included from cairo-analysis-surface.c:37:

cairoint.h:71:20: error: pixman.h: No such file or directory

In file included from cairo-analysis-surface.c:37:

cairoint.h:180: error: expected ')' before 'mask'

cairoint.h:209: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cpu_to_be16'

cairoint.h:215: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'be16_to_cpu'

cairoint.h:221: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cpu_to_be32'

cairoint.h:227: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'be32_to_cpu'

In file included from cairo-analysis-surface.c:37:

cairoint.h:820: error: expected specifier-qualifier-list before 'pixman_format_code_t'

cairoint.h:1999: error: expected ')' before '*' token

cairoint.h:2004: error: expected declaration specifiers or '...' before 'pixman_format_code_t'

cairoint.h:2007: error: expected ')' before 'pixman_format'

cairoint.h:2012: error: expected declaration specifiers or '...' before 'pixman_format_code_t'

cairoint.h:2187: error: expected declaration specifiers or '...' before 'pixman_transform_t'

In file included from cairoint.h:2366,

                 from cairo-analysis-surface.c:37:

cairo-region-private.h:50: error: expected specifier-qualifier-list before 'pixman_region32_t'

cairo-region-private.h:111: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_cairo_region_contains_rectangle'

cairo-analysis-surface.c: In function '_add_operation':

cairo-analysis-surface.c:218: error: implicit declaration of function '_cairo_region_contains_rectangle'

cairo-analysis-surface.c:218: warning: nested extern declaration of '_cairo_region_contains_rectangle'

cairo-analysis-surface.c:218: error: 'PIXMAN_REGION_IN' undeclared (first use in this function)

cairo-analysis-surface.c:218: error: (Each undeclared identifier is reported only once

cairo-analysis-surface.c:218: error: for each function it appears in.)

cairo-analysis-surface.c:229: error: 'PIXMAN_REGION_OUT' undeclared (first use in this function)

make[3]: *** [cairo-analysis-surface.lo] Error 1



QPixman has been installed successfully, so why can't QCairo find the pixman.h file? 



Thanks in advance for any help.
David

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20101130/12bac9a6/attachment-0001.htm>


More information about the Spice-devel mailing list