I'm not sure I understand Pererakos' question, as the errors he was getting concern deprecated GL1/2 commands such as glLoadMatrixf(), which should not be part of the OSG build if CMake was properly configured for GL3. I believe his build is already finding the gl3.h header file.

I suspect he has not set up CMake properly for a GL3 build, which is why I directed him to review the comments in the osgsimplegl3 example.

OSG_GL_MATRICES_AVAILABLE should be off, for example. Below, he says he has already switched this off, but I don't know what else would allow matrix functions to be accessed.
   -Paul


On 9/11/2012 3:01 PM, Preet wrote:
If you're using cmake-gui, make sure you tick the 'advanced' checkbox
to see those flags.

On Tue, Sep 11, 2012 at 10:44 AM, Peterakos<hay...@gmail.com>  wrote:
Hello.

In the example you mention the is this text:

Add the path to<GL3/gl3.h>  to the CMake compiler flags, CMAKE_CXX_FLAGS and
CMAKE_CXX_FLAGS_DEBUG (for release and debug builds; others if you use other
build configurations). The text to add should look something like this:
/I “C:\GLHeader”
The folder GLHeader should contain a subfolder GL3, which in turn contains
gl3.h.

But Cmake doesnt create any entries with these names (CMAKE_CXX_FLAGS,
CMAKE_CXX_FLAGS_DEBUG).
Do i have to create them or is it ok if i add the opengl path in the
parameter CMAKE_INCLUDE_PATH ?

thank you.


On 11 September 2012 04:58, Paul Martz<pma...@skew-matrix.com>  wrote:

On 9/10/2012 10:34 AM, Peterakos wrote:

Hello.

I face a problem trying to compile open scene graph using open gl 3.

I get errors like these:

error C3861: 'glLoadMatrixf': identifier not found
error C3861: 'glMultMatrixf': identifier not found
error C3861: 'glLoadMatrixd': identifier not found
error C3861: 'glMultMatrixd': identifier not found


Hm. Both v3.0.1 and also svn trunk r13140 seem to build fine for me, so
I'm not sure why you'd encounter these errors.


In CMake i have disabled everything that have the prefix OSG_GL
except OSG_GL3_AVAILABLE.


I build for GL3 using the instructions found in the osgsimplegl3.cpp
example source code comment block.


I also want to ask if i will be able to run the osg examples if i fully
convert
open scene graph in opengl 3.


I doubt that any example other than osgsimplegl3 would work.
    -Paul


_______________________________________________
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

_______________________________________________
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

Reply via email to