<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Steve,</p>
<p>Here's the configuration that I've been using...</p>
<p>OPENGL_PROFILE=GLCORE<br>
OSG_GL_CONTEXT_VERSION=4.6<br>
OpenGL_GL_PREFERENCE=GLVND</p>
<p>With a clean CMAKE config, it will set the defaults... (purge all
the OSG_xxx items if they already have values assigned)<br>
</p>
<p>OPENGL_HEADER1=#include <GL/glcorearb.h><br>
OSG_GL1_AVAILABLE=OFF<br>
OSG_GL2_AVAILABLE=OFF<br>
OSG_GL3_AVAILABLE=ON<br>
OSG_GL_DISPLAYLISTS_AVAILABLE=OFF<br>
OSG_GL_FIXED_FUNCTION_AVAILABLE=OFF<br>
etc...</p>
<p>Scott</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 4/5/21 12:20 PM, Hardy Family wrote:<br>
</div>
<blockquote type="cite"
cite="mid:9bb6453e-a9f5-461c-8b4e-a1eb23dc99a0n@googlegroups.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>The GtkGLArea widget in GTK3.24 requires GLCORE profile, so
the standard Ubuntu/Debian openscenegraph package will not work
as it is compiled with GL2 profile. Unfortunately, my
application uses Gtk so I am now forced to get it working. So I
loaded the source package (openscenegraph 3.6.4) and tried to
build it.</div>
<div><br>
</div>
<div>First, with default configuration, except added <br>
</div>
<div>SET(OpenGL_GL_PREFERENCE "GLVND")</div>
<div>to stop the warning about having multiple library choices.
This uses GL2 profile, and after building, osgviewer works fine.</div>
<div><br>
</div>
<div>Next, selected OPENGL_PROFILE "GLCORE" and also turned off
all "available" except OSG_GL3_AVAILABLE. Make clean then make
again, and now osgviewer only shows an empty scene for the same
test file.</div>
<div><br>
</div>
<div>Is there something else I have to do in the build? (I'm not
yet even to the point of testing with Gtk).<br>
</div>
<div><br>
</div>
<div>Interestingly, on the Raspberry Pi 4, which also runs
Gtk3.24, my code is working fine with the standard distribution
package, so I know it can be done. On the Pi, OSG is version
3.2.3.</div>
<div><br>
</div>
<div>I don't mind a custom solution for this. Normally we don't
want to stray too far from standard distro, but our application
is a machine controller so we supply and maintain the PC as
well.<br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>Steve</div>
<div><br>
</div>
-- <br>
You received this message because you are subscribed to the Google
Groups "OpenSceneGraph Users" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a
href="mailto:osg-users+unsubscribe@googlegroups.com"
moz-do-not-send="true">osg-users+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a
href="https://groups.google.com/d/msgid/osg-users/9bb6453e-a9f5-461c-8b4e-a1eb23dc99a0n%40googlegroups.com?utm_medium=email&utm_source=footer"
moz-do-not-send="true">https://groups.google.com/d/msgid/osg-users/9bb6453e-a9f5-461c-8b4e-a1eb23dc99a0n%40googlegroups.com</a>.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
</body>
</html>