Andrew Dunk wrote:
> Hi David
> 
> Thanks for the reply
> 
> I'm trying to follow your blog, but I cant get FTGLText to compile, the first 
> error that comes up is:
> OSGFTGLFontBase.cpp:59:23: error: OSGConfig.h: No such file or directory
> 
> here is what I am calling...
> 
> g++  
> OSGFTGL*.cpp -I/usr/include/OpenSG:/usr/include/freetype2:/usr/include/FTGL 
> `pkg-config OSGSystem --libs --cflags` -shared -fPIC -o libOSGFTGL.so
> 
> 
> Andrew Dunk
> [EMAIL PROTECTED]


Hi,

The following works for me:

Change line 51 of OSGFTGLFont.cpp from

#include <FTGL/FTLibrary.h> to #include <FTGL/ftgl.h>

The use

 g++ OSGFTGL*.cpp -I/usr/include/OpenSG -I/usr/include/freetype2
`pkg-config OSGSystem --libs --cflags` -shared -fPIC -Wno-deprecated -o
libOSGFTGL.so


I'm using Ubuntu Intrepid, so the FTGL library change might not be
required on Hardy.  Note a few FTGL headers have become deprecated so
you may wish to change them as well to save yourself some hassle in the
future.

Dave

-- 
David Morris
Research Assistant
School of Computing, Mathematics and Information Sciences,

Room 108
Watts Building
Lewes Road
University of Brighton
Bright BN2 4GJ
UK

+44 (0)1273 642917

IRC    : davemorris on irc.freenode.net
Jabber : [EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to