[osg-users] Android osgPlugins

Robert Osfield robert.osfield at gmail.com
Fri Apr 24 07:50:55 PDT 2015


Hi Chistian,

Could you post any modified files to osg-submissions so I can review
and merge the changes.

Cheers,
Robert.

On 24 April 2015 at 14:18, Christian Kehl <Christian.Kehl at uni.no> wrote:
> Jan Ciger <jan.ciger at ...> writes:
>
>>
>>
>>
>> On Fri, Apr 24, 2015 at 12:09 AM, Christian Kehl <Christian.Kehl <at>
> uni.no> wrote:just switching the -DOPENGL_PROFILE flag to GLES2 did have no
> effect
>> on the error. So, I added the old flags to enforce GLES2 built.
>> successfully.
>>
>>
>>
>> Um, if you force the OSG build to be done using GLES2 I think the
> osgAndroid code will not work correctly (different way of handling shaders).
> That warning in the README is not there for fun.
>>
>> The real question is why you are getting those compilation errors with
> GLES1. I have checked my old NDK r8d and I don't have those declarations
> (glDouble, the matrix functions using doubles) neither. That looks like an
> error in the OSG headers, because those things are not supported in OpenGL
> ES 1 so the code shouldn't be trying to compile them. Alternatively it
> should typedef GLfloat to GLdouble.
>>
>> J.
>>
>
> Hi Jan,
>
> so, yeah, I added in line 35 of OpenSceneGraph/include/osg/GLDefines the line:
>
> typedef GLfloat GLdouble;
>
> Now GLES1 compiles. I get back to you with news after that is done.
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list