gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GWorkspace, PDFkit & freetype


From: Riccardo Mottola
Subject: Re: GWorkspace, PDFkit & freetype
Date: Sun, 05 Jul 2009 23:58:12 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.22) Gecko/20090627 SeaMonkey/1.1.17

Hi David,

you are correct, PDFKit doesn't compile against freetype 2.3.9 for me either.

I get very different errors though.

g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I. -I/usr/include/freetype2 -c SplashFTFont.cc
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*)'
<...>

However, note that PDFkit is an optional component and not a required dependency, it is needed only to enable the contents inspector to show a preview of PDF files. So if you don't need that feature, you can do without.

To view pdf's, if you have GhostScript installed, you can use the newly released GSPdf 0.3.

Riccardo

David Hill wrote:
Hi Riccardo,

I am trying to install gworkspace-0.8.7 which says it needs PDFKit and the link provided takes me to PDFKit-062609 which requires freetype, and it is freetype-2.3.9 that is the most recent version (March 12 2009).

The error I keep getting when attempting PDFKit installation, despite trying variations (e.g. including different flavours of the --with-<variousthings>=<various-existing-directories> option to PDFKit "configure") is:

In the file included from SplashFTFont.cc:15:
/usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory

The file "ftheader.h" actually exists and is in /usr/local/include/freetype2/freetype/config/

The remainder of the freetype2 installation files/directories all appear to be intact and in the "correct" locations.

I attempted the installation after su-ing to root. I had also previously installed freetype2 as su root successfully with the prefix /usr/local.

Thanks for any pointers that might help me solve the problem.

david
-------
On Jul 4, 2009, at 4:47 AM, Riccardo Mottola wrote:

which version of GWorkspace are you trying to compile? I can configure and install the one in the SVN repository just fine. I can't find PDFkit in it though, is it in a separate repository? I have freetype 2.3.9 on my system.

Riccardo

David Hill wrote:





reply via email to

[Prev in Thread] Current Thread [Next in Thread]