GWorkspace, PDFkit & freetype

View: New views
10 Messages — Rating Filter:   Alert me  

GWorkspace, PDFkit & freetype

by David Hill-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone,

The latest version of freetype was issued March 2009 (freetype2).  It is not compatible with the version of PDFkit that is linked from the GWorkspace page, so PDFkit compilation fails and I can't install GWorkspace.

I could install the 1999 version of freetype, but that seems silly.  Does anyone know of plans that would allow GWorkspace to be installed with an updated PDF kit that uses freetype2 or do I simply install the old freetype?

Thanks for your insights.

david

----------
David Hill
----------
Our lives begin to end the day we become silent about things that matter.
(Martin Luther King Jr.)




_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Re: GWorkspace, PDFkit & freetype

by Gregory Casamento :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey David,

Could you send an example of the error you're getting?

GC

On Fri, Jul 3, 2009 at 3:37 PM, David Hill <drh@...> wrote:
Hi everyone,

The latest version of freetype was issued March 2009 (freetype2).  It is not compatible with the version of PDFkit that is linked from the GWorkspace page, so PDFkit compilation fails and I can't install GWorkspace.

I could install the 1999 version of freetype, but that seems silly.  Does anyone know of plans that would allow GWorkspace to be installed with an updated PDF kit that uses freetype2 or do I simply install the old freetype?

Thanks for your insights.

david

----------
David Hill
----------
Our lives begin to end the day we become silent about things that matter.
(Martin Luther King Jr.)




_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev




--
Gregory Casamento
Open Logic Corporation, Principal Consultant
## GNUstep Chief Maintainer
yahoo/skype: greg_casamento, aol: gjcasa
(240)274-9630 (Cell), (301)362-9640 (Home)


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Re: GWorkspace, PDFkit & freetype

by Riccardo Mottola-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

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:

> Hi everyone,
>
> The latest version of freetype was issued March 2009 (freetype2).  It
> is not compatible with the version of PDFkit that is linked from the
> GWorkspace page, so PDFkit compilation fails and I can't install
> GWorkspace.
>
> I could install the 1999 version of freetype, but that seems silly.  
> Does anyone know of plans that would allow GWorkspace to be installed
> with an updated PDF kit that uses freetype2 or do I simply install the
> old freetype?
>
> Thanks for your insights.
>
> david
>



_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Re: GWorkspace, PDFkit & freetype

by David Hill-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:

Hi everyone,


The latest version of freetype was issued March 2009 (freetype2).  It is not compatible with the version of PDFkit that is linked from the GWorkspace page, so PDFkit compilation fails and I can't install GWorkspace.


I could install the 1999 version of freetype, but that seems silly.  Does anyone know of plans that would allow GWorkspace to be installed with an updated PDF kit that uses freetype2 or do I simply install the old freetype?


Thanks for your insights.


david





_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Re: GWorkspace, PDFkit & freetype

by Riccardo Mottola-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:



_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Re: GWorkspace, PDFkit & freetype

by David Hill-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Riccardo,

Yes, I get a whole slew of errors like that -- around 100 lines all to do with "SplashFTFont" and starting with the line:

g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I. -I/usr/include/freetype2 -c SplashFTFont.cc

and terminating with:
.
.
.
make[4]: *** [SplashFTFont.o] Error 1
make[3]: *** [pdfkit] Error 2
make[2]; *** [compile] Error 2
make[1]; *** [internal-all] Error 2
make: *** [PDFKit.all.framework.variables] Error 2

but the first-cause error seems to be the failure to find the file I mentioned, namely:

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

which occurs immediately after the start line above, changing directory to "splash" and starting to execute "make" in that directory, which comes immediately after the start line noted above --  even though the "missing" file actually exists in the path(s) provided to "configure".

I will see if I can resolve the problem, or if anyone else has a solution.  Is there another list I should post to?  I will do a follow-up post if I find out anything useful.

Thanks for the input.  I'll can also, as you suggest, see how I get on without PDFKit, but my impression from the Gworkspace web page was that Gworkspace *requires* it, rather than just suggesting it as an option.

All good wishes.

david
-----------

On Jul 5, 2009, at 2:58 PM, Riccardo Mottola wrote:

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:



_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Re: GWorkspace, PDFkit & freetype

by Riccardo Mottola-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

a late answer, but some work was involved.

>
> which occurs immediately after the start line above, changing
> directory to "splash" and starting to execute "make" in that
> directory, which comes immediately after the start line noted above
> --  even though the "missing" file actually exists in the path(s)
> provided to "configure".
>
> I will see if I can resolve the problem, or if anyone else has a
> solution.  Is there another list I should post to?  I will do a
> follow-up post if I find out anything useful.
>
> Thanks for the input.  I'll can also, as you suggest, see how I get on
> without PDFKit, but my impression from the Gworkspace web page was
> that Gworkspace *requires* it, rather than just suggesting it as an
> option.
>

PDFKit is not essential for GWorkspace to build, however I understand it
is handy. Since it was lastly maintained by Enrico, it is in the state
of lack of maintenance as most of his other applications.

I have thus decided to import PDFkit into GAP in the "libs" category:
this allows to have a common up-to-date repository of the files and also
preserves it from disappearing. I do not have however the time to work
on it currently, since I am for example busy with other applications by
enrico which are now in GAP.

Richard Stonehouse kindly worked out some patches that make PDFkit
compile again, I have tried them and it works for me. They are already
in CVS.

There is no official release yet because there are some bugs to be
investigated.

Furthermore if anybody wishes to help, a task would be to check what
version of xpdf PDFKit was based on and update it as much as possible to
track xpdf.

Riccardo


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Re: GWorkspace, PDFkit & freetype

by David Chisnall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you're importing PDFKit, would it be possible to rename it?  Apple  
has a PDFKit which has a very different set of classes to this one  
which, if I remember correctly, is a thin wrapper around GhostScript  
and doesn't provide any of the PDF metadata support that Apple's  
framework offers.  Having a GNUstep framework with the same name but a  
different set of classes to an Apple one is likely to cause confusion.

David

On 22 Jul 2009, at 21:56, Riccardo Mottola wrote:

> Hi,
>
> a late answer, but some work was involved.
>>
>> which occurs immediately after the start line above, changing  
>> directory to "splash" and starting to execute "make" in that  
>> directory, which comes immediately after the start line noted above  
>> --  even though the "missing" file actually exists in the path(s)  
>> provided to "configure".
>>
>> I will see if I can resolve the problem, or if anyone else has a  
>> solution.  Is there another list I should post to?  I will do a  
>> follow-up post if I find out anything useful.
>>
>> Thanks for the input.  I'll can also, as you suggest, see how I get  
>> on without PDFKit, but my impression from the Gworkspace web page  
>> was that Gworkspace *requires* it, rather than just suggesting it  
>> as an option.
>>
>
> PDFKit is not essential for GWorkspace to build, however I  
> understand it is handy. Since it was lastly maintained by Enrico, it  
> is in the state of lack of maintenance as most of his other  
> applications.
>
> I have thus decided to import PDFkit into GAP in the "libs"  
> category: this allows to have a common up-to-date repository of the  
> files and also preserves it from disappearing. I do not have however  
> the time to work on it currently, since I am for example busy with  
> other applications by enrico which are now in GAP.
>
> Richard Stonehouse kindly worked out some patches that make PDFkit  
> compile again, I have tried them and it works for me. They are  
> already in CVS.
>
> There is no official release yet because there are some bugs to be  
> investigated.
>
> Furthermore if anybody wishes to help, a task would be to check what  
> version of xpdf PDFKit was based on and update it as much as  
> possible to track xpdf.
>
> Riccardo
>
>
> _______________________________________________
> Gnustep-dev mailing list
> Gnustep-dev@...
> http://lists.gnu.org/mailman/listinfo/gnustep-dev



_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Re: GWorkspace, PDFkit & freetype

by Riccardo Mottola-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

David Chisnall wrote:
> If you're importing PDFKit, would it be possible to rename it?  Apple
> has a PDFKit which has a very different set of classes to this one
> which, if I remember correctly, is a thin wrapper around GhostScript
> and doesn't provide any of the PDF metadata support that Apple's
> framework offers.  Having a GNUstep framework with the same name but a
> different set of classes to an Apple one is likely to cause confusion.
>
I never did a comparison about the two kits and I don't know which one
came earlier...
PDFKit is as far as I know based on xpdf and does not use ghostscript as
a dependency, you are probably thinking about the GSPdf application instead.

What name would you propose? I also don't know if changing the name may
be a problem with the packages of the various linux and BSD distributions.


Riccardo


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Re: GWorkspace, PDFkit & freetype

by Charles philip Chan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Wouldn't it be better to just switch to popplerkit?

Charles
--
"World domination.  Fast"
(By Linus Torvalds)


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@...
http://lists.gnu.org/mailman/listinfo/gnustep-dev

attachment0 (202 bytes) Download Attachment