Errors compiling freetype-gl

158 views
Skip to first unread message

Lucan1d

unread,
Aug 24, 2011, 10:41:31 PM8/24/11
to freetype-gl
Hi,

I have just checked-out the SVN source and am having some compile
errors.

The following symbols cannot be found:

* vertex-buffer.h
GLchar

* demo-subpixel.c
GL_COMPILE_STATUS
GL_LINK_STATUS
GL_VERTEX_SHADER
GL_FRAGMENT_SHADER

* vertex-buffer.c
GL_ARRAY_BUFFER
GL_DYNAMIC_DRAW
GL_ELEMENT_ARRAY_BUFFER

I am building using Eclipse 3.7 and MinGW on Windows 7. I am guessing
that these symbols belong to an OpenGL version that is more recent
than the one supported by the <GL/gl.h> header file included with
MinGW. Would that be right?

Thanks,

-Lucan1d

Nicolas Rougier

unread,
Sep 14, 2011, 2:10:59 AM9/14/11
to freetype-gl

Ooopps. Sorry for the long delay in my answer.
I'm not familiar with windows but I think your analysis is right. You
might want to try to use the cmake file posted on
http://code.google.com/p/freetype-gl/issues/detail?id=2 (it will be
soon included).

Another option would be to use the glew library.

How old is your video card ?

Nicolas

Lucan1d

unread,
Sep 14, 2011, 10:10:38 AM9/14/11
to freetype-gl
Hi Nicolas,

Thanks for replying.

I have tried the CMake file and it gives me this error:

CMake Error at CMakeLists.txt:29 (MESSAGE):
-- Could NOT find GLUT_glut_LIBRARY
Call Stack (most recent call first):
CMakeLists.txt:85 (VALIDATE_LIBRARY)

Obviously it needs GLUT but I am not a CMake expert and I can't see
how to "inject" GLUT into the build.

Any suggestions?

Thanks,

-Luc

On Sep 14, 4:10 pm, Nicolas Rougier <nicolas.roug...@gmail.com> wrote:
> Ooopps. Sorry for the long delay in my answer.
> I'm not familiar with windows but I think your analysis is right. You
> might want to try to use the cmake file posted onhttp://code.google.com/p/freetype-gl/issues/detail?id=2(it will be
> > -Lucan1d- Hide quoted text -
>
> - Show quoted text -

Nicolas Rougier

unread,
Sep 14, 2011, 10:17:15 AM9/14/11
to freetype-gl

Do you know if you have the GLUT library installed and where ?



On Sep 14, 4:10 pm, Lucan1d <felix.bembr...@gmail.com> wrote:
> Hi Nicolas,
>
> Thanks for replying.
>
> I have tried the CMake file and it gives me this error:
>
> CMake Error at CMakeLists.txt:29 (MESSAGE):
>   -- Could NOT find GLUT_glut_LIBRARY
> Call Stack (most recent call first):
>   CMakeLists.txt:85 (VALIDATE_LIBRARY)
>
> Obviously it needs GLUT but I am not a CMake expert and I can't see
> how to "inject" GLUT into the build.
>
> Any suggestions?
>
> Thanks,
>
> -Luc
>
> On Sep 14, 4:10 pm, Nicolas Rougier <nicolas.roug...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Ooopps. Sorry for the long delay in my answer.
> > I'm not familiar with windows but I think your analysis is right. You
> > might want to try to use the cmake file posted onhttp://code.google.com/p/freetype-gl/issues/detail?id=2(itwill be

Lucan1d

unread,
Sep 14, 2011, 10:44:52 AM9/14/11
to freetype-gl
Yes, I have freeglut-2.6.0 but I don't know how to tell CMake where it
lives. I clicked on the Advanced button and found where to specify
the name of the GLUT library but I can't see how to specify its path.

I can now Configure and Generate but when I open the ALL_BUILD project
in Visual Studio it fails to build as it cannot find GLUT.

At least I am making some progress!

Cheers,

-Lucan1d

On Sep 15, 12:17 am, Nicolas Rougier <nicolas.roug...@gmail.com>
wrote:
> > > - Show quoted text -- Hide quoted text -

Lucan1d

unread,
Sep 14, 2011, 11:34:13 AM9/14/11
to freetype-gl
OK - success! I worked out that the CMake library names could also
take a full path and now it all builds and runs.

The results look great but it's hard to guage the real quality with
only one font to look at (and it's not a common font at that!).

This has enormous potential, please continue to develop this and I'd
love to see some more fonts. The sub-pixel demo appears to be missing
from the VS build as well.

Cheers,

-Lucan1d

Nicolas Rougier

unread,
Sep 14, 2011, 3:43:05 PM9/14/11
to freetype-gl

Thanks.
What do you mean by "more fonts" ? All the demos are supposed to work
with just any (ttf) font.
On linux and mac, I use fontconfig to locate a font but I'm not quite
sure on Windows. You should be at least be able to give the full
pathname to a specific font and it should be displayed.

Nicolas
Reply all
Reply to author
Forward
0 new messages