<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="text-align:left; direction:ltr;">
<div><br>
</div>
<div>I'm using OSG on Linux Mint and CentOS with Gtk. From my notes all I did was:</div>
<div><br>
</div>
<div>CMakeLists.txt</div>
<div><br>
</div>
<div>461c461</div>
<div>< SET(OPENGL_PROFILE "GL3" CACHE STRING "OpenGL Profile to use, choose from GL1, GL2, GL3, GLES1, GLES2, GLES3")</div>
<div>---</div>
<div>> SET(OPENGL_PROFILE "GL2" CACHE STRING "OpenGL Profile to use, choose from GL1, GL2, GL3, GLES1, GLES2, GLES3")</div>
<div><br>
</div>
<div></div>
<div><br>
</div>
<div>On Mon, 2021-04-05 at 10:20 -0700, Hardy Family wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<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>
<p></p>
<pre>_______________________________________________</pre>
<pre>osg-users mailing list</pre>
<a href="mailto:osg-users@lists.openscenegraph.org">
<pre>osg-users@lists.openscenegraph.org</pre>
</a>
<pre><br></pre>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">
<pre>http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</pre>
</a>
<pre><br></pre>
</blockquote>
</body>
</html>