Open fishkingsin opened 11 years ago
Here's what I did to make it work.
In ftgles/src/Makefile.am
there are some files missing. Add to the line with ftglyph_sources =
FTGlyph/FTPixmapGlyph.cpp \
FTGlyph/FTPixmapGlyphImpl.h \
FTGlyph/FTPolygonGlyph.cpp \
FTGlyph/FTPolygonGlyphImpl.h \
Add to the line ftfont_sources =
FTFont/FTPixmapFont.cpp \
FTFont/FTPixmapFontImpl.h \
FTFont/FTPolygonFont.cpp \
FTFont/FTPolygonFontImpl.h \
We need to include OpenGLES headers:
$ ./configure --includedir=/opt/vc/include --prefix=/usr/local --with-gnu-ld --without-x --with-ft-prefix=/usr
This will actually install the ftgles headers under /opt/vc/include/FTGL
(which is not what I wanted, but move them afterwards).
$ make -j 4
There will be some compiler errors because file OpenGLES/ES1/gl.h
can not be found.
Edit the source file and change it to GLES/gl.h
This will build and work for OpenGLES 1. I did not try OpenGLES 2.
thanks @walterdejong
Hi Is it possible to compile ftgles on raspberry I have try the normal build but the header include seems is not compatible with RPi one's thanks