Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 100502
Status: resolved
Priority: 0/
Queue: Imager

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.000
Fixed in: (no value)



Subject: #error "`ft2build.h' hasn't been included yet!"
Download (untitled) / with headers
text/plain 644b
If building on a freebsd 9.2 system with freetype2-2.5.3_2 installed, then compilation of fontft1.c fails with: In file included from fontft1.c:52: /usr/local/include/freetype2/freetype.h:24:2: error: #error "`ft2build.h' hasn't been included yet!" /usr/local/include/freetype2/freetype.h:25:2: error: #error "Please always use macros to include FreeType header files." /usr/local/include/freetype2/freetype.h:26:2: error: #error "Example:" /usr/local/include/freetype2/freetype.h:27:2: error: #error " #include <ft2build.h>" /usr/local/include/freetype2/freetype.h:28:2: error: #error " #include FT_FREETYPE_H" *** [fontft1.o] Error code 1
Download (untitled) / with headers
text/plain 911b
On 2014-11-21 14:09:42, SREZIC wrote: Show quoted text
> If building on a freebsd 9.2 system with freetype2-2.5.3_2 installed, > then compilation of fontft1.c fails with: > > In file included from fontft1.c:52: > /usr/local/include/freetype2/freetype.h:24:2: error: #error > "`ft2build.h' hasn't been included yet!" > /usr/local/include/freetype2/freetype.h:25:2: error: #error "Please > always use macros to include FreeType header files." > /usr/local/include/freetype2/freetype.h:26:2: error: #error "Example:" > /usr/local/include/freetype2/freetype.h:27:2: error: #error " > #include <ft2build.h>" > /usr/local/include/freetype2/freetype.h:28:2: error: #error " > #include FT_FREETYPE_H" > *** [fontft1.o] Error code 1
Applying the patch in http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Imager-1.000-RT100502.patch works for me. But I don't know if this is compatible with older freetype2 versions...
Subject: Re: [rt.cpan.org #100502] #error "`ft2build.h' hasn't been included yet!"
Date: Sat, 22 Nov 2014 08:20:16 +1100
To: Slaven_Rezic via RT <bug-Imager [...] rt.cpan.org>
From: Tony Cook <tony [...] develop-help.com>
Download (untitled) / with headers
text/plain 563b
On Fri, Nov 21, 2014 at 02:14:40PM -0500, Slaven_Rezic via RT wrote: Show quoted text
> Applying the patch in > > http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Imager-1.000-RT100502.patch > > works for me. But I don't know if this is compatible with older freetype2 versions... >
fontft1.c is for Freetype 1.x. The problem is the probe code picking up the FT2.x headers (which both have "freetype.h"). Are you supplying any configuation to Makefile.PL either through the --incpath command-line option or through setting IM_INCPATH in the environment? Tony
Download (untitled) / with headers
text/plain 716b
On 2014-11-21 16:20:29, tony@develop-help.com wrote: Show quoted text
> On Fri, Nov 21, 2014 at 02:14:40PM -0500, Slaven_Rezic via RT wrote:
> > Applying the patch in > > > > http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Imager- > > 1.000-RT100502.patch > > > > works for me. But I don't know if this is compatible with older > > freetype2 versions... > >
> > fontft1.c is for Freetype 1.x. > > The problem is the probe code picking up the FT2.x headers (which both > have "freetype.h"). > > Are you supplying any configuation to Makefile.PL either through the > --incpath command-line option or through setting IM_INCPATH in the > environment?
No, I don't think so. Maybe it helps if I include a generated Makefile.
Subject: Makefile
Download Makefile
application/octet-stream 63.9k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #100502] #error "`ft2build.h' hasn't been included yet!"
Date: Sat, 22 Nov 2014 14:22:23 +1100
To: Slaven_Rezic via RT <bug-Imager [...] rt.cpan.org>
From: Tony Cook <tony [...] develop-help.com>
Download (untitled) / with headers
text/plain 1.2k
On Fri, Nov 21, 2014 at 04:43:28PM -0500, Slaven_Rezic via RT wrote: Show quoted text
> Queue: Imager > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=100502 > > > On 2014-11-21 16:20:29, tony@develop-help.com wrote:
> > On Fri, Nov 21, 2014 at 02:14:40PM -0500, Slaven_Rezic via RT wrote:
> > > Applying the patch in > > > > > > http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Imager- > > > 1.000-RT100502.patch > > > > > > works for me. But I don't know if this is compatible with older > > > freetype2 versions... > > >
> > > > fontft1.c is for Freetype 1.x. > > > > The problem is the probe code picking up the FT2.x headers (which both > > have "freetype.h"). > > > > Are you supplying any configuation to Makefile.PL either through the > > --incpath command-line option or through setting IM_INCPATH in the > > environment?
> > No, I don't think so. Maybe it helps if I include a generated Makefile.
Hi Slaven, Would it be possible to test Imager from git? git://git.imager.perl.org/imager.git If you can, please run Makefile.PL with the --verbose option and capture the output? This includes some unrelated changes, but it mostly includes some extra tracing when probing for Freetype 1.x. I've tested locally on FreeBSD 9.1 and couldn't reproduce the problem. Thanks Tony
Download (untitled) / with headers
text/plain 1.5k
On 2014-11-21 22:22:35, tony@develop-help.com wrote: Show quoted text
> On Fri, Nov 21, 2014 at 04:43:28PM -0500, Slaven_Rezic via RT wrote:
> > Queue: Imager > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=100502 > > > > > On 2014-11-21 16:20:29, tony@develop-help.com wrote:
> > > On Fri, Nov 21, 2014 at 02:14:40PM -0500, Slaven_Rezic via RT wrote:
> > > > Applying the patch in > > > > > > > > http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Imager- > > > > 1.000-RT100502.patch > > > > > > > > works for me. But I don't know if this is compatible with older > > > > freetype2 versions... > > > >
> > > > > > fontft1.c is for Freetype 1.x. > > > > > > The problem is the probe code picking up the FT2.x headers (which both > > > have "freetype.h"). > > > > > > Are you supplying any configuation to Makefile.PL either through the > > > --incpath command-line option or through setting IM_INCPATH in the > > > environment?
> > > > No, I don't think so. Maybe it helps if I include a generated Makefile.
> > Hi Slaven, > > Would it be possible to test Imager from git? > > git://git.imager.perl.org/imager.git > > If you can, please run Makefile.PL with the --verbose option and > capture the output?
Attached. Show quoted text
> This includes some unrelated changes, but it mostly includes some > extra tracing when probing for Freetype 1.x. > > I've tested locally on FreeBSD 9.1 and couldn't reproduce the problem.
I also had no problems on FreeBSD 9.2 until a recent pkg update, which did the following changes: freetype-1.3.1_5 installed freetype2 upgraded: 2.4.12_1 -> 2.5.3_2 Regards, Slaven
Subject: imager-makefile-pl-output.txt

Message body is not shown because it is too large.

Download (untitled) / with headers
text/plain 424b
On Sat Nov 22 04:14:42 2014, SREZIC wrote: Show quoted text
> I also had no problems on FreeBSD 9.2 until a recent pkg update, which > did the following changes: > > freetype-1.3.1_5 installed > freetype2 upgraded: 2.4.12_1 -> 2.5.3_2
Thanks, could you please try the branch ft1probes from git://git.imager.perl.org/imager.git ? This switches the FT1 probes to the more modern mechanism all of the other Imager library probes use. Tony
Download (untitled) / with headers
text/plain 552b
On 2014-11-29 00:35:41, TONYC wrote: Show quoted text
> On Sat Nov 22 04:14:42 2014, SREZIC wrote:
> > I also had no problems on FreeBSD 9.2 until a recent pkg update, > > which > > did the following changes: > > > > freetype-1.3.1_5 installed > > freetype2 upgraded: 2.4.12_1 -> 2.5.3_2
> > Thanks, could you please try the branch ft1probes from > git://git.imager.perl.org/imager.git ? > > This switches the FT1 probes to the more modern mechanism all of the > other Imager library probes use. >
$ perl Makefile.PL $ make ... cd: FT1: No such file or directory
Download (untitled) / with headers
text/plain 680b
On Sat Nov 29 04:01:33 2014, SREZIC wrote: Show quoted text
> On 2014-11-29 00:35:41, TONYC wrote:
> > On Sat Nov 22 04:14:42 2014, SREZIC wrote:
> > > I also had no problems on FreeBSD 9.2 until a recent pkg update, > > > which > > > did the following changes: > > > > > > freetype-1.3.1_5 installed > > > freetype2 upgraded: 2.4.12_1 -> 2.5.3_2
> > > > Thanks, could you please try the branch ft1probes from > > git://git.imager.perl.org/imager.git ? > > > > This switches the FT1 probes to the more modern mechanism all of the > > other Imager library probes use. > >
> > $ perl Makefile.PL > $ make > ... > cd: FT1: No such file or directory
Thanks, fixed and merged into master. Tony
Download (untitled) / with headers
text/plain 848b
On 2014-12-05 19:04:11, TONYC wrote: Show quoted text
> On Sat Nov 29 04:01:33 2014, SREZIC wrote:
> > On 2014-11-29 00:35:41, TONYC wrote:
> > > On Sat Nov 22 04:14:42 2014, SREZIC wrote:
> > > > I also had no problems on FreeBSD 9.2 until a recent pkg update, > > > > which > > > > did the following changes: > > > > > > > > freetype-1.3.1_5 installed > > > > freetype2 upgraded: 2.4.12_1 -> 2.5.3_2
> > > > > > Thanks, could you please try the branch ft1probes from > > > git://git.imager.perl.org/imager.git ? > > > > > > This switches the FT1 probes to the more modern mechanism all of the > > > other Imager library probes use. > > >
> > > > $ perl Makefile.PL > > $ make > > ... > > cd: FT1: No such file or directory
> > Thanks, fixed and merged into master. > > Tony >
Thanks, commit f74bd9783fadbafabe8685c416bd22e5752e5b6d works on my system.
Download (untitled) / with headers
text/plain 165b
On Sat Dec 06 02:17:02 2014, SREZIC wrote: Show quoted text
> Thanks, commit f74bd9783fadbafabe8685c416bd22e5752e5b6d works on my system.
Thanks, fix released in Imager 1.001. Tony


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.