Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile on raspberrypi #11

Open
fishkingsin opened this issue Dec 28, 2012 · 2 comments
Open

compile on raspberrypi #11

fishkingsin opened this issue Dec 28, 2012 · 2 comments

Comments

@fishkingsin
Copy link

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

@walterdejong
Copy link

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.

@fishkingsin
Copy link
Author

thanks @walterdejong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants