Hello Craig,
Build/linux-gcc/Source/System/opt/OSGTextVectorGlyph.os
Source/System/Text/OSGTextVectorGlyph.cpp
Source/System/Text/OSGTextVectorGlyph.cpp: In function 'void
osg::gluTessVertexDataCB(void*, void*)':
Source/System/Text/OSGTextVectorGlyph.cpp:287: error: cast from
'void*' to
'osg::UInt32' loses precision
scons: *** [Build/linux-gcc/Source/System/opt/
OSGTextVectorGlyph.os] Error 1
scons: building terminated because of errors.
This bug is fixed in the CVS. You can either get the CVS version, or
you can patch your file. The function that fails to compile should
look like this:
-----
static void OSG_APIENTRY gluTessVertexDataCB(void *vertexData, void
*polygonData)
{
TextVectorGlyph::PolygonOutline *outline =
reinterpret_cast<TextVectorGlyph::PolygonOutline*>(polygonData);
// Go via 64 bit int to avoid problems on 64 bit machines
UInt64 coordIndexHelp = (UInt64)vertexData;
UInt32 coordIndex = static_cast<UInt32>(coordIndexHelp);
assert(outline != 0);
outline->indices.push_back(coordIndex);
}
-----
Bye,
Patrick
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users