Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#41567 closed defect (fixed)

libLASi: fatal error: 'freetype/ftglyph.h' file not found

Reported by: mojca (Mojca Miklavec) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Schmidt)
Port: libLASi

Description

I'm unable to upgrade graphviz because /opt/local/include/LASi.h that includes

#include <freetype/ftglyph.h>

isn't able to find that file:

:info:build In file included from gvrender_lasi.cpp:21:
:info:build /opt/local/include/LASi.h:14:10: fatal error: 'freetype/ftglyph.h' file not found
:info:build #include <freetype/ftglyph.h>
:info:build          ^
:info:build 1 error generated.

I used to have that file in /opt/local/include/freetype2/freetype/ftglyph.h, but it seems that it has now been moved to /opt/local/include/freetype2/ftglyph.h, so #include <freetype/ftglyph.h> cannot be found any longer.

Attachments (2)

main.log (31.0 KB) - added by mojca (Mojca Miklavec) 6 years ago.
graphviz build log
main.2.log (16.3 KB) - added by ryandesign (Ryan Schmidt) 6 years ago.
libLASi build log

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by mojca (Mojca Miklavec)

Attachment: main.log added

graphviz build log

comment:1 Changed 6 years ago by ryandesign (Ryan Schmidt)

From the freetype 2.5.1 CHANGES file:

    - The header  file layout  has been changed.   After installation,
      all files are now located in `<prefix>/include/freetype2'.

      Applications  that  use   (a)  `freetype-config'  or  FreeType's
      `pkg-config' file to get the include directory for the compiler,
      and (b) the documented way for header inclusion like

        #include <ft2build.h>
        #include FT_FREETYPE_H
        ...

      don't need any change to the source code.

So I guess libLASi is doing it wrong.

comment:2 Changed 6 years ago by ryandesign (Ryan Schmidt)

Cc: takeshi@… removed
Owner: changed from macports-tickets@… to takeshi@…
Port: freetype graphviz removed
Summary: graphviz, freetype, libLASi: fatal error: 'freetype/ftglyph.h' file not foundlibLASi: fatal error: 'freetype/ftglyph.h' file not found

Building libLASi @1.1.1 fails with freetype 2.5.1 with similar errors:

/opt/local/var/macports/build/_Users_rschmidt_macports_dports_print_libLASi/libLASi/work/libLASi-1.1.1/src/drawGlyph.cpp:9:10: fatal error: 'freetype/ftoutln.h' file not found
#include <freetype/ftoutln.h>
         ^
1 error generated.

I'll try to solve it and report a bug to the developers.

Changed 6 years ago by ryandesign (Ryan Schmidt)

Attachment: main.2.log added

libLASi build log

comment:3 in reply to:  2 Changed 6 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed

Replying to ryandesign@…:

I'll try to solve it

r114013—pardon me for committing to this non-openmaintainer port, but since I broke it by updating freetype I felt responsible for fixing it ASAP.

and report a bug to the developers.

https://sourceforge.net/p/lasi/bugs/2/

comment:4 Changed 6 years ago by tenomoto (Takeshi Enomoto)

Thank you, Ryan. I added open maintainer ;-)

comment:5 Changed 6 years ago by ryandesign (Ryan Schmidt)

Has duplicate #41573.

Note: See TracTickets for help on using tickets.