Advertisement Jump to content
Sign in to follow this  
dford

FTGL errors

This topic is 4878 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to use FTGL to render a FPS counter, and getting a few errors simply by including the headers.
#include <FTGL/FTGLExtrdFont.h>
#include <FTGL/FTGLOutlineFont.h>
#include <FTGL/FTGLPolygonFont.h>
#include <FTGL/FTGLTextureFont.h>
#include <FTGL/FTGLPixmapFont.h>
#include <FTGL/FTGLBitmapFont.h>

In file included from /usr/include/FTGL/FTFont.h:4, from /usr/include/FTGL/FTGLExtrdFont.h:4, from headers/fps.h:8, from fps.cpp:3: /usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory In file included from /usr/include/FTGL/FTGLExtrdFont.h:4, from headers/fps.h:8, from fps.cpp:3: /usr/include/FTGL/FTFont.h:5:10: error: #include expects "FILENAME" or <FILENAME> In file included from /usr/include/FTGL/FTFont.h:7, from /usr/include/FTGL/FTGLExtrdFont.h:4, from headers/fps.h:8, from fps.cpp:3: /usr/include/FTGL/FTFace.h:5:10: error: #include expects "FILENAME" or <FILENAME> /usr/include/FTGL/FTFace.h:6:10: error: #include expects "FILENAME" or <FILENAME> In file included from /usr/include/FTGL/FTFace.h:9, from /usr/include/FTGL/FTFont.h:7, from /usr/include/FTGL/FTGLExtrdFont.h:4, from headers/fps.h:8, from fps.cpp:3: /usr/include/FTGL/FTPoint.h:5:10: error: #include expects "FILENAME" or <FILENAME> /usr/include/FTGL/FTPoint.h:6:10: error: #include expects "FILENAME" or <FILENAME> In file included from /usr/include/FTGL/FTFace.h:10, from /usr/include/FTGL/FTFont.h:7, from /usr/include/FTGL/FTGLExtrdFont.h:4, from headers/fps.h:8, from fps.cpp:3: /usr/include/FTGL/FTSize.h:6:10: error: #include expects "FILENAME" or <FILENAME> /usr/include/FTGL/FTPoint.h:45: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/FTGL/FTPoint.h: In constructor ‘FTPoint::FTPoint(int)’: /usr/include/FTGL/FTPoint.h:47: error: ‘ft_vector’ was not declared in this scope /usr/include/FTGL/FTSize.h: At global scope: /usr/include/FTGL/FTSize.h:43: error: ‘FT_Face’ has not been declared /usr/include/FTGL/FTSize.h:102: error: ‘FT_Error’ does not name a type /usr/include/FTGL/FTSize.h:108: error: expected ‘;’ before ‘*’ token /usr/include/FTGL/FTSize.h:113: error: ‘FT_Size’ does not name a type /usr/include/FTGL/FTSize.h:133: error: ‘FT_Error’ does not name a type /usr/include/FTGL/FTFace.h:67: error: expected ‘;’ before ‘*’ token /usr/include/FTGL/FTFace.h:79: error: expected `;' before ‘const’ /usr/include/FTGL/FTFace.h:93: error: expected ‘;’ before ‘*’ token /usr/include/FTGL/FTFace.h:103: error: ‘FT_GlyphSlot’ does not name a type /usr/include/FTGL/FTFace.h:115: error: ‘FT_Error’ does not name a type /usr/include/FTGL/FTFace.h:121: error: expected ‘;’ before ‘*’ token /usr/include/FTGL/FTFace.h:133: error: expected ‘;’ before ‘*’ token /usr/include/FTGL/FTFace.h:143: error: ‘FT_Error’ does not name a type /usr/include/FTGL/FTFont.h:87: error: ‘FT_Encoding’ has not been declared /usr/include/FTGL/FTFont.h:101: error: expected ‘;’ before ‘*’ token /usr/include/FTGL/FTFont.h:217: error: ‘FT_Error’ does not name a type /usr/include/FTGL/FTFont.h:251: error: ‘FT_Error’ does not name a type make: *** [fps.o] Error 1 I have freetype2, libfreetype6, libfreetype6-dev, and ftgl-dev installed.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!