[osg-users] [GL ES2] Compilation errors on master branch

Robert Osfield robert.osfield at gmail.com
Thu Jun 4 00:51:58 PDT 2015


Hi Terry,

I wonder if we can get CMake to test the installed GLES header to see
if it has the GLint64 and GLuint64 defined.

What platform combination are you hitting problems with?

Robert.



On 4 June 2015 at 06:22, Terry Welsh <mogumbo at gmail.com> wrote:
> I have this problem too. Your check for GL_ES_VERSION_2_0 didn't work
> for me. Instead I comment out that whole block that typedefs GLint64
> and GLuint64 and #include <GLES2/gl2ext.h>. After all, that's the file
> that already typedefs GLint64 and GLuint64.
> --
> Terry Welsh
> http://www.reallyslick.com
>
>>
>> I don't see a solution to this problem. In the meantime, here is what I do:
>>
>>
>> Code:
>>
>> #if !defined(GL_VERSION_3_1)
>>     #ifdef _WIN32
>>         typedef          __int64 GLint64;
>>         typedef unsigned __int64 GLuint64;
>>     #else
>>         #ifndef GL_ES_VERSION_2_0
>>             typedef long long int GLint64;
>>             typedef unsigned long long int GLuint64;
>>         #endif
>>     #endif
>> #endif
>>
>>
>>
>>
>> It does not make sense because GLint64 and GLuint64 are not always defined when GL_ES_VERSION_2_0 is defined, but at least it works on my machine. I tried to use a mesa version number or something that would indicate its API status but could not find any.
>>
>> Thanks.
>>
> _______________________________________________
> 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