Skip to content

Instantly share code, notes, and snippets.

@avilleret
Last active August 29, 2015 14:04
Show Gist options
  • Save avilleret/9a73e77c69c2448a01c2 to your computer and use it in GitHub Desktop.
Save avilleret/9a73e77c69c2448a01c2 to your computer and use it in GitHub Desktop.
FTGL build error on Mac OS X
$ make
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DGLEW_MX -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -I/usr/local/Cellar/ftgl/2.1.3-rc5/include -I/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL -I/usr/local/Cellar/freetype/2.5.3_1/include/freetype2 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT libBase_la-TextBaseFTGL.lo -MD -MP -MF .deps/libBase_la-TextBaseFTGL.Tpo -c -o libBase_la-TextBaseFTGL.lo `test -f 'TextBaseFTGL.cpp' || echo './'`TextBaseFTGL.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DGEM_INTERNAL -DGLEW_BUILD -DGLEW_MX -DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -I/usr/local/Cellar/ftgl/2.1.3-rc5/include -I/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL -I/usr/local/Cellar/freetype/2.5.3_1/include/freetype2 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT libBase_la-TextBaseFTGL.lo -MD -MP -MF .deps/libBase_la-TextBaseFTGL.Tpo -c TextBaseFTGL.cpp -fno-common -DPIC -o .libs/libBase_la-TextBaseFTGL.o
In file included from TextBaseFTGL.cpp:24:
In file included from ./TextBase.h:38:
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/FTFont.h:29:5: warning: This header is deprecated. Please use <FTGL/ftgl.h> from now. [-W#warnings]
# warning This header is deprecated. Please use <FTGL/ftgl.h> from now.
^
In file included from TextBaseFTGL.cpp:24:
In file included from ./TextBase.h:38:
In file included from /usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/FTFont.h:30:
In file included from /usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftgl.h:34:
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:50:19: error: variable has incomplete type 'class FTGL_EXPORT'
class FTGL_EXPORT FTGlyph
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:50:7: note: forward declaration of 'FTGL_EXPORT'
class FTGL_EXPORT FTGlyph
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:50:26: error: expected ';' after top level declarator
class FTGL_EXPORT FTGlyph
^
;
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:123:1: error: unknown type name 'FTGL_BEGIN_C_DECLS'
FTGL_BEGIN_C_DECLS
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:132:1: error: expected unqualified-id
struct _FTGLGlyph;
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:145:13: error: redefinition of 'FTGLglyph' as different kind of symbol
FTGL_EXPORT FTGLglyph *ftglCreateCustomGlyph(FTGLglyph *base, void *data,
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:133:27: note: previous definition is here
typedef struct _FTGLglyph FTGLglyph;
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:145:22: error: expected ';' after top level declarator
FTGL_EXPORT FTGLglyph *ftglCreateCustomGlyph(FTGLglyph *base, void *data,
^
;
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:155:13: error: cannot combine with previous 'type-name' declaration specifier
FTGL_EXPORT void ftglDestroyGlyph(FTGLglyph *glyph);
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:170:13: error: cannot combine with previous 'type-name' declaration specifier
FTGL_EXPORT void ftglRenderGlyph(FTGLglyph *glyph, FTGL_DOUBLE penx,
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:170:52: error: unknown type name 'FTGL_DOUBLE'
FTGL_EXPORT void ftglRenderGlyph(FTGLglyph *glyph, FTGL_DOUBLE penx,
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:171:34: error: unknown type name 'FTGL_DOUBLE'
FTGL_DOUBLE peny, int renderMode,
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:172:34: error: unknown type name 'FTGL_DOUBLE'
FTGL_DOUBLE *advancex, FTGL_DOUBLE *advancey);
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:172:57: error: unknown type name 'FTGL_DOUBLE'
FTGL_DOUBLE *advancex, FTGL_DOUBLE *advancey);
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:179:13: error: cannot combine with previous 'type-name' declaration specifier
FTGL_EXPORT float ftglGetGlyphAdvance(FTGLglyph *glyph);
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:188:13: error: cannot combine with previous 'type-name' declaration specifier
FTGL_EXPORT void ftglGetGlyphBBox(FTGLglyph *glyph, float bounds[6]);
^
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:196:13: error: redefinition of 'FT_Error' as different kind of symbol
FTGL_EXPORT FT_Error ftglGetGlyphError(FTGLglyph* glyph);
^
/usr/local/Cellar/freetype/2.5.3_1/include/freetype2/fttypes.h:296:16: note: previous definition is here
typedef int FT_Error;
^
In file included from TextBaseFTGL.cpp:24:
In file included from ./TextBase.h:38:
In file included from /usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/FTFont.h:30:
In file included from /usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftgl.h:34:
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:196:21: error: expected ';' after top level declarator
FTGL_EXPORT FT_Error ftglGetGlyphError(FTGLglyph* glyph);
^
;
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftglyph.h:198:1: error: unknown type name 'FTGL_END_C_DECLS'
FTGL_END_C_DECLS
^
In file included from TextBaseFTGL.cpp:24:
In file included from ./TextBase.h:38:
In file included from /usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/FTFont.h:30:
In file included from /usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftgl.h:35:
/usr/local/Cellar/freetype/2.5.3_1/include/freetype2/ftoutln.h:34:1: error: expected unqualified-id
FT_BEGIN_HEADER
^
/usr/local/Cellar/freetype/2.5.3_1/include/freetype2/config/ftheader.h:34:26: note: expanded from macro 'FT_BEGIN_HEADER'
#define FT_BEGIN_HEADER extern "C" {
^
In file included from TextBaseFTGL.cpp:24:
In file included from ./TextBase.h:38:
In file included from /usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/FTFont.h:30:
In file included from /usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/ftgl.h:111:
/usr/local/Cellar/ftgl/2.1.3-rc5/include/FTGL/FTBBox.h:80:13: error: use of undeclared identifier 'FT_Outline_Get_CBox'
FT_Outline_Get_CBox(&(glyph->outline), &bbox);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
make: *** [libBase_la-TextBaseFTGL.lo] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment