PDFKit patch for Freetype related errors (SplashFTFont.cc)
For whoever needs to compile the unsupported PDFKit framework (probably i conjunction with GWorkspace) and incurs in the following errors:
SplashFTFont.cc:17:10: error: #include expects "FILENAME" or <FILENAME>
SplashFTFont.cc: In constructor ‘SplashFTFont::SplashFTFont(SplashFTFontFile*, SplashCoord*)’:
SplashFTFont.cc:46: error: ‘FT_New_Size’ was not declared in this scope
SplashFTFont.cc: In member function ‘virtual SplashPath* SplashFTFont::getGlyphPath(int)’:
SplashFTFont.cc:219: error: invalid conversion from ‘int (*)(FT_Vector*, void*)’ to ‘int (*)(const FT_Vector*, void*)’
SplashFTFont.cc:219: error: invalid conversion from ‘int (*)(FT_Vector*, void*)’ to ‘int (*)(const FT_Vector*, void*)’
SplashFTFont.cc:219: error: invalid conversion from ‘int (*)(FT_Vector*, FT_Vector*, void*)’ to ‘int (*)(const FT_Vector*, const FT_Vector*, void*)’
SplashFTFont.cc:219: error: invalid conversion from ‘int (*)(FT_Vector*, FT_Vector*, FT_Vector*, void*)’ to ‘int (*)(const FT_Vector*, const FT_Vector*, const FT_Vector*, void*)’
SplashFTFont.cc:224: error: ‘FT_Glyph’ was not declared in this scope
SplashFTFont.cc:224: error: expected `;' before ‘glyph’
SplashFTFont.cc:238: error: ‘glyph’ was not declared in this scope
SplashFTFont.cc:238: error: ‘FT_Get_Glyph’ was not declared in this scope
SplashFTFont.cc:243: error: ‘FT_OutlineGlyph’ was not declared in this scope
SplashFTFont.cc:243: error: expected `)' before ‘glyph’
SplashFTFont.cc:248: error: ‘glyph’ was not declared in this scope
SplashFTFont.cc:248: error: ‘FT_Done_Glyph’ was not declared in this scope
here’s a patch to fix those errors. (I had them on Debian 2.6.18-4-686.)
Sphere: Related ContentNo Comments »
No comments yet.
RSS feed for comments on this post.
TrackBack URI for this entry: http://cubelogic.org/act/pdfkit-patch-for-freetype-related-errors-splashftfontcc.html/trackback/
