Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

2015-02-08 Thread Robert Osfield
Hi Michael,

Unfortunately I can't check in my Program.cpp as I'm mid other
modifications.  I expect you build issues are just changes to remove use of
_EXT usage from the headers, but compile on my system still works because
my installed GL headers have the _EXT variants so I hadn't spotted this
issue.

Could you just remove the _EXT on the lines you are having build issues
with.

I have removed these lines from my Program.cpp so when I've completed my
other changes I'll check them all in.  This should hopefully be in the next
day or two.

Robert.

Robert.

On 8 February 2015 at 20:48, Michael A. Eriksen erik...@ai.sri.com wrote:

 Hi,

 I get all these compile errors when compiling trunk

 4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(379): error C2065:
 'GL_GEOMETRY_VERTICES_OUT_EXT' : undeclared identifier
 4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(379): error C2051: case
 expression not constant
 4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(383): error C2065:
 'GL_GEOMETRY_INPUT_TYPE_EXT' : undeclared identifier
 4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(383): error C2051: case
 expression not constant
 4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(387): error C2065:
 'GL_GEOMETRY_OUTPUT_TYPE_EXT' : undeclared identifier
 4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(387): error C2051: case
 expression not constant
 4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(404): error C2065:
 'GL_GEOMETRY_VERTICES_OUT_EXT' : undeclared identifier
 4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(404): error C2051: case
 expression not constant
 4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(405): error C2065:
 'GL_GEOMETRY_INPUT_TYPE_EXT' : undeclared identifier
 4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(405): error C2051: case
 expression not constant
 4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(406): error C2065:
 'GL_GEOMETRY_OUTPUT_TYPE_EXT' : undeclared identifier
 4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(406): error C2051: case
 expression not constant


 Thank you!

 Cheers,
 Michael

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=62646#62646





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

2015-02-08 Thread Michael A. Eriksen
Hi,

I get all these compile errors when compiling trunk

4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(379): error C2065: 
'GL_GEOMETRY_VERTICES_OUT_EXT' : undeclared identifier
4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(379): error C2051: case 
expression not constant
4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(383): error C2065: 
'GL_GEOMETRY_INPUT_TYPE_EXT' : undeclared identifier
4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(383): error C2051: case 
expression not constant
4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(387): error C2065: 
'GL_GEOMETRY_OUTPUT_TYPE_EXT' : undeclared identifier
4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(387): error C2051: case 
expression not constant
4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(404): error C2065: 
'GL_GEOMETRY_VERTICES_OUT_EXT' : undeclared identifier
4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(404): error C2051: case 
expression not constant
4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(405): error C2065: 
'GL_GEOMETRY_INPUT_TYPE_EXT' : undeclared identifier
4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(405): error C2051: case 
expression not constant
4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(406): error C2065: 
'GL_GEOMETRY_OUTPUT_TYPE_EXT' : undeclared identifier
4E:\Sandbox\OpenSceneGraph\src\osg\Program.cpp(406): error C2051: case 
expression not constant


Thank you!

Cheers,
Michael

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=62646#62646





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

2015-02-03 Thread Jason MacDonald
Update:
I added the following to include/osg/Shader just above the Shader class 
definition

#ifndef GL_GEOMETRY_SHADER_EXT
#defineGL_GEOMETRY_SHADER_EXT   0x8DD9
#endif
#ifndef GL_GEOMETRY_VERTICES_OUT_EXT
#defineGL_GEOMETRY_VERTICES_OUT_EXT   0x8DDA
#endif
#ifndef GL_GEOMETRY_INPUT_TYPE_EXT
#defineGL_GEOMETRY_INPUT_TYPE_EXT   0x8DDB
#endif
#ifndef GL_GEOMETRY_OUTPUT_TYPE_EXT
#defineGL_GEOMETRY_OUTPUT_TYPE_EXT   0x8DDC
#endif

Everything builds fine except example_osgtransformfeedback fails with:
GL_RASTERIZER_DISCARD was not declared

From: osg-users [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf 
Of Jason MacDonald
Sent: Tuesday, February 03, 2015 9:24 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

I just checked out the latest revision from the trunk (rev 14678) and attempted 
to compile.
I receive the following compiler error:
In file included from 
C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/StateAttribute:20:0,
 from 
C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/AlphaFunc:17,
 from 
C:\Users\jason\Desktop\dev\OpenSceneGraph\src\osg\AlphaFunc.cpp:14:
C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/Shader:93:24: error: 
'GL_GEOMETRY_SHADER_EXT' was not declared in this scope GEOMETRY = 
GL_GEOMETRY_SHADER_EXT,

It appears this was originally defined in include/osg/GL2Extensions but was 
recently removed? What is the proper fix to redefine this? (and other possible 
errors I will receive)

Thank you,
Jason
This email and any files transmitted with it from The Charles Machine Works, 
Inc. are confidential and intended solely for the use of the individual or 
entity to which they are addressed. If you have received this email in error 
please notify the sender. Our company accepts no liability for the contents of 
this email, or for the consequences of any actions taken on the basis of the 
information provided, unless that information is subsequently confirmed in 
writing. Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of the 
company. Finally, the recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused 
by any virus transmitted by this email.
This email and any files transmitted with it from The Charles Machine Works, 
Inc. are confidential and intended solely for the use of the individual or 
entity to which they are addressed. If you have received this email in error 
please notify the sender. Our company accepts no liability for the contents of 
this email, or for the consequences of any actions taken on the basis of the 
information provided, unless that information is subsequently confirmed in 
writing. Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of the 
company. Finally, the recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused 
by any virus transmitted by this email.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

2015-02-03 Thread Robert Osfield
Hi Jason,

The GL_GEOMETRY_SHADER_EXT should now be GL_GEOMETRY_SHADER as this is what
GLDefines and modern OpenGL provides.  I have checked this fix into
svn/trunk.

Could you update to latest in svn/trunk and let me know how you get on.

Cheers,
Robert

On 3 February 2015 at 15:24, Jason MacDonald jason.macdon...@ditchwitch.com
 wrote:

  I just checked out the latest revision from the trunk (rev 14678) and
 attempted to compile.

 I receive the following compiler error:

 In file included from
 C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/StateAttribute:20:0,

  from
 C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/AlphaFunc:17,

  from
 C:\Users\jason\Desktop\dev\OpenSceneGraph\src\osg\AlphaFunc.cpp:14:

 C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/Shader:93:24: error:
 'GL_GEOMETRY_SHADER_EXT' was not declared in this scope GEOMETRY =
 GL_GEOMETRY_SHADER_EXT,



 It appears this was originally defined in include/osg/GL2Extensions but
 was recently removed? What is the proper fix to redefine this? (and other
 possible errors I will receive)



 Thank you,

 Jason
  This email and any files transmitted with it from The Charles Machine
 Works, Inc. are confidential and intended solely for the use of the
 individual or entity to which they are addressed. If you have received this
 email in error please notify the sender. Our company accepts no liability
 for the contents of this email, or for the consequences of any actions
 taken on the basis of the information provided, unless that information is
 subsequently confirmed in writing. Please note that any views or opinions
 presented in this email are solely those of the author and do not
 necessarily represent those of the company. Finally, the recipient should
 check this email and any attachments for the presence of viruses. The
 company accepts no liability for any damage caused by any virus transmitted
 by this email.

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

2015-02-03 Thread Jason MacDonald
Thanks Robert,

GLDefines attempts to include osg/GL
I don't seem to have this file, nor can I locate it in the SVN anywhere.

I don't understand your question: how you get on

I use TortoiseSVN and connect to http://svn.openscenegraph.org/osg
Building with:
Windows 7 64bit
Mingw64 4.8.1 posix seh rev5

I've been using OSG for a while now, and am attempting an upgrade from rev 13782

From: osg-users [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf 
Of Robert Osfield
Sent: Tuesday, February 03, 2015 10:25 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

Hi Jason,
The GL_GEOMETRY_SHADER_EXT should now be GL_GEOMETRY_SHADER as this is what 
GLDefines and modern OpenGL provides.  I have checked this fix into svn/trunk.
Could you update to latest in svn/trunk and let me know how you get on.

Cheers,
Robert

On 3 February 2015 at 15:24, Jason MacDonald 
jason.macdon...@ditchwitch.commailto:jason.macdon...@ditchwitch.com wrote:
I just checked out the latest revision from the trunk (rev 14678) and attempted 
to compile.
I receive the following compiler error:
In file included from 
C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/StateAttribute:20:0,
 from 
C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/AlphaFunc:17,
 from 
C:\Users\jason\Desktop\dev\OpenSceneGraph\src\osg\AlphaFunc.cpp:14:
C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/Shader:93:24: error: 
'GL_GEOMETRY_SHADER_EXT' was not declared in this scope GEOMETRY = 
GL_GEOMETRY_SHADER_EXT,

It appears this was originally defined in include/osg/GL2Extensions but was 
recently removed? What is the proper fix to redefine this? (and other possible 
errors I will receive)

Thank you,
Jason
This email and any files transmitted with it from The Charles Machine Works, 
Inc. are confidential and intended solely for the use of the individual or 
entity to which they are addressed. If you have received this email in error 
please notify the sender. Our company accepts no liability for the contents of 
this email, or for the consequences of any actions taken on the basis of the 
information provided, unless that information is subsequently confirmed in 
writing. Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of the 
company. Finally, the recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused 
by any virus transmitted by this email.

___
osg-users mailing list
osg-users@lists.openscenegraph.orgmailto:osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

This email and any files transmitted with it from The Charles Machine Works, 
Inc. are confidential and intended solely for the use of the individual or 
entity to which they are addressed. If you have received this email in error 
please notify the sender. Our company accepts no liability for the contents of 
this email, or for the consequences of any actions taken on the basis of the 
information provided, unless that information is subsequently confirmed in 
writing. Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of the 
company. Finally, the recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused 
by any virus transmitted by this email.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

2015-02-03 Thread Jason MacDonald
Ok, solved the GL include problem, its created by cmake and put in the output 
path.
Thanks

From: osg-users [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf 
Of Jason MacDonald
Sent: Tuesday, February 03, 2015 10:56 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

Thanks Robert,

GLDefines attempts to include osg/GL
I don't seem to have this file, nor can I locate it in the SVN anywhere.

I don't understand your question: how you get on

I use TortoiseSVN and connect to http://svn.openscenegraph.org/osg
Building with:
Windows 7 64bit
Mingw64 4.8.1 posix seh rev5

I've been using OSG for a while now, and am attempting an upgrade from rev 13782

From: osg-users [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf 
Of Robert Osfield
Sent: Tuesday, February 03, 2015 10:25 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

Hi Jason,
The GL_GEOMETRY_SHADER_EXT should now be GL_GEOMETRY_SHADER as this is what 
GLDefines and modern OpenGL provides.  I have checked this fix into svn/trunk.
Could you update to latest in svn/trunk and let me know how you get on.

Cheers,
Robert

On 3 February 2015 at 15:24, Jason MacDonald 
jason.macdon...@ditchwitch.commailto:jason.macdon...@ditchwitch.com wrote:
I just checked out the latest revision from the trunk (rev 14678) and attempted 
to compile.
I receive the following compiler error:
In file included from 
C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/StateAttribute:20:0,
 from 
C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/AlphaFunc:17,
 from 
C:\Users\jason\Desktop\dev\OpenSceneGraph\src\osg\AlphaFunc.cpp:14:
C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/Shader:93:24: error: 
'GL_GEOMETRY_SHADER_EXT' was not declared in this scope GEOMETRY = 
GL_GEOMETRY_SHADER_EXT,

It appears this was originally defined in include/osg/GL2Extensions but was 
recently removed? What is the proper fix to redefine this? (and other possible 
errors I will receive)

Thank you,
Jason
This email and any files transmitted with it from The Charles Machine Works, 
Inc. are confidential and intended solely for the use of the individual or 
entity to which they are addressed. If you have received this email in error 
please notify the sender. Our company accepts no liability for the contents of 
this email, or for the consequences of any actions taken on the basis of the 
information provided, unless that information is subsequently confirmed in 
writing. Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of the 
company. Finally, the recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused 
by any virus transmitted by this email.

___
osg-users mailing list
osg-users@lists.openscenegraph.orgmailto:osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

This email and any files transmitted with it from The Charles Machine Works, 
Inc. are confidential and intended solely for the use of the individual or 
entity to which they are addressed. If you have received this email in error 
please notify the sender. Our company accepts no liability for the contents of 
this email, or for the consequences of any actions taken on the basis of the 
information provided, unless that information is subsequently confirmed in 
writing. Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of the 
company. Finally, the recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused 
by any virus transmitted by this email.
This email and any files transmitted with it from The Charles Machine Works, 
Inc. are confidential and intended solely for the use of the individual or 
entity to which they are addressed. If you have received this email in error 
please notify the sender. Our company accepts no liability for the contents of 
this email, or for the consequences of any actions taken on the basis of the 
information provided, unless that information is subsequently confirmed in 
writing. Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of the 
company. Finally, the recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused 
by any virus transmitted by this email.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org