RESOLVED WORKSFORME 70022
Build Webkit failed - cairo.h: No such file or directory
https://bugs.webkit.org/show_bug.cgi?id=70022
Summary Build Webkit failed - cairo.h: No such file or directory
gutaku
Reported 2011-10-13 06:00:48 PDT
Hi I'm trying to build WebKit r97352 with ./Tools/Scripts/build-webkit --gtk --prefix=<destination-dir> and during the process I obtain this error: CXXLD TestNetscapePlugin/libtestnetscapeplugin.la CXX Source/WebCore/accessibility/gtk/libWebCoreGtk2_la-AccessibilityObjectAtk.lo In file included from ../../Source/WebCore/platform/graphics/freetype/FontPlatformData.h:31, from ../../Source/WebCore/platform/graphics/FontPlatformData.h:35, from ../../Source/WebCore/platform/graphics/SimpleFontData.h:30, from ../../Source/WebCore/platform/graphics/FontFallbackList.h:25, from ../../Source/WebCore/platform/graphics/Font.h:29, from ../../Source/WebCore/rendering/style/RenderStyle.h:41, from ../../Source/WebCore/rendering/RenderObject.h:36, from ../../Source/WebCore/accessibility/gtk/AccessibilityObjectAtk.cpp:23: ../../Source/WebCore/platform/graphics/GlyphBuffer.h:47:19: error: cairo.h: No such file or directory In file included from ../../Source/WebCore/platform/graphics/freetype/FontPlatformData.h:31, from ../../Source/WebCore/platform/graphics/FontPlatformData.h:35, from ../../Source/WebCore/platform/graphics/SimpleFontData.h:30, from ../../Source/WebCore/platform/graphics/FontFallbackList.h:25, from ../../Source/WebCore/platform/graphics/Font.h:29, from ../../Source/WebCore/rendering/style/RenderStyle.h:41, from ../../Source/WebCore/rendering/RenderObject.h:36, from ../../Source/WebCore/accessibility/gtk/AccessibilityObjectAtk.cpp:23: ../../Source/WebCore/platform/graphics/GlyphBuffer.h:56: error: ‘cairo_glyph_t’ does not name a type ../../Source/WebCore/platform/graphics/GlyphBuffer.h:90: error: ISO C++ forbids declaration of ‘GlyphBufferGlyph’ with no type ../../Source/WebCore/platform/graphics/GlyphBuffer.h:90: error: expected ‘;’ before ‘*’ token ../../Source/WebCore/platform/graphics/GlyphBuffer.h:91: error: expected ‘;’ before ‘GlyphBufferAdvance’ ../../Source/WebCore/platform/graphics/GlyphBuffer.h:92: error: ISO C++ forbids declaration of ‘GlyphBufferGlyph’ with no type ../../Source/WebCore/platform/graphics/GlyphBuffer.h:92: error: expected ‘;’ before ‘*’ token ../../Source/WebCore/platform/graphics/GlyphBuffer.h:93: error: expected ‘;’ before ‘const’ ../../Source/WebCore/platform/graphics/GlyphBuffer.h:210: error: ‘GlyphBufferGlyph’ was not declared in this scope ../../Source/WebCore/platform/graphics/GlyphBuffer.h:210: error: template argument 1 is invalid ../../Source/WebCore/platform/graphics/GlyphBuffer.h: In member function ‘void WebCore::GlyphBuffer::clear()’: ../../Source/WebCore/platform/graphics/GlyphBuffer.h:83: error: request for member ‘clear’ in ‘((WebCore::GlyphBuffer*)this)->WebCore::GlyphBuffer::m_glyphs’, which is of non-class type ‘int’ ../../Source/WebCore/platform/graphics/GlyphBuffer.h: In member function ‘void WebCore::GlyphBuffer::swap(int, int)’: ../../Source/WebCore/platform/graphics/GlyphBuffer.h:103: error: ‘GlyphBufferGlyph’ was not declared in this scope ../../Source/WebCore/platform/graphics/GlyphBuffer.h:103: error: expected ‘;’ before ‘g’ ../../Source/WebCore/platform/graphics/GlyphBuffer.h:104: error: invalid types ‘int[int]’ for array subscript ../../Source/WebCore/platform/graphics/GlyphBuffer.h:104: error: invalid types ‘int[int]’ for array subscript ../../Source/WebCore/platform/graphics/GlyphBuffer.h:105: error: invalid types ‘int[int]’ for array subscript ../../Source/WebCore/platform/graphics/GlyphBuffer.h:105: error: ‘g’ was not declared in this scope ../../Source/WebCore/platform/graphics/GlyphBuffer.h: In member function ‘WebCore::Glyph WebCore::GlyphBuffer::glyphAt(int) const’: ../../Source/WebCore/platform/graphics/GlyphBuffer.h:121: error: invalid types ‘const int[int]’ for array subscript ../../Source/WebCore/platform/graphics/GlyphBuffer.h: In member function ‘void WebCore::GlyphBuffer::add(WebCore::Glyph, const WebCore::SimpleFontData*, float, const WebCore::FloatSize*)’: ../../Source/WebCore/platform/graphics/GlyphBuffer.h:153: error: ‘cairo_glyph_t’ was not declared in this scope ../../Source/WebCore/platform/graphics/GlyphBuffer.h:153: error: expected ‘;’ before ‘cairoGlyph’ ../../Source/WebCore/platform/graphics/GlyphBuffer.h:154: error: ‘cairoGlyph’ was not declared in this scope ../../Source/WebCore/platform/graphics/GlyphBuffer.h:155: error: request for member ‘append’ in ‘((WebCore::GlyphBuffer*)this)->WebCore::GlyphBuffer::m_glyphs’, which is of non-class type ‘int’ ../../Source/WebCore/platform/graphics/GlyphBuffer.h: In member function ‘void WebCore::GlyphBuffer::add(WebCore::Glyph, const WebCore::SimpleFontData*, WebCore::GlyphBufferAdvance)’: ../../Source/WebCore/platform/graphics/GlyphBuffer.h:184: error: ‘cairo_glyph_t’ was not declared in this scope ../../Source/WebCore/platform/graphics/GlyphBuffer.h:184: error: expected ‘;’ before ‘cairoGlyph’ ../../Source/WebCore/platform/graphics/GlyphBuffer.h:185: error: ‘cairoGlyph’ was not declared in this scope ../../Source/WebCore/platform/graphics/GlyphBuffer.h:186: error: request for member ‘append’ in ‘((WebCore::GlyphBuffer*)this)->WebCore::GlyphBuffer::m_glyphs’, which is of non-class type ‘int’ In file included from ../../Source/WebCore/platform/graphics/transforms/TransformOperation.h:29, from ../../Source/WebCore/platform/graphics/transforms/TransformOperations.h:28, from ../../Source/WebCore/rendering/style/StyleTransformData.h:29, from ../../Source/WebCore/rendering/style/RenderStyle.h:66, from ../../Source/WebCore/rendering/RenderObject.h:36, from ../../Source/WebCore/accessibility/gtk/AccessibilityObjectAtk.cpp:23: ../../Source/WebCore/platform/graphics/transforms/TransformationMatrix.h: At global scope: ../../Source/WebCore/platform/graphics/transforms/TransformationMatrix.h:323: error: expected type-specifier before ‘cairo_matrix_t’ make[1]: *** [Source/WebCore/accessibility/gtk/libWebCoreGtk2_la-AccessibilityObjectAtk.lo] Error 1 make[1]: Leaving directory `/home/sas/Downloads/WebKit-r97352/WebKitBuild/Release' make: *** [all] Error 2 Failed to build WebKit using 'make'! I'm building under Debian 6.0, and I using - gtk 3.0.0 - libsoup 2.34.0 - cairo 1.10.2 - gail 1.9.0 Any ideas about how to solve the error? Thanks
Attachments
Sergio Villar Senin
Comment 1 2011-11-07 11:01:53 PST
"cairo.h: No such file or directory" that means that you don't have the cairo development package. apt-get install libcairo2-dev
Note You need to log in before you can comment on or make changes to this bug.