Quantcast

OpenGL 2.0 not detected correctly?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

OpenGL 2.0 not detected correctly?

Britton Kerin

I think I have an OpenGL 2.0 compatible card, at least:

  rhino$ glxinfo | grep '2\.'
  OpenGL version string: 2.1.2 NVIDIA 173.14.09

However, openscad gives me a warning about missing openGL
support on startup.

Any tips where to start looking for the problem?

Thanks,
Britton



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenGL 2.0 not detected correctly?

Clifford Wolf
Hi,

On Fri, Jan 01, 2010 at 11:40:44PM -0900, Britton Kerin wrote:
> I think I have an OpenGL 2.0 compatible card, at least:
>
>   rhino$ glxinfo | grep '2\.'
>   OpenGL version string: 2.1.2 NVIDIA 173.14.09
>
> However, openscad gives me a warning about missing openGL
> support on startup.

interesting..

> Any tips where to start looking for the problem?

the relevant code from glview.cc is:

--snip--
        GLenum err = glewInit();
        if (GLEW_OK != err) {
                fprintf(stderr, "GLEW Error: %s\n", glewGetErrorString(err));
        }
        const char *openscad_disable_gl20_env = getenv("OPENSCAD_DISABLE_GL20");
        if (openscad_disable_gl20_env && !strcmp(openscad_disable_gl20_env, "0"))
                openscad_disable_gl20_env = NULL;
        if (glewIsSupported("GL_VERSION_2_0") && openscad_disable_gl20_env == NULL)
--snap--

so unless you have set OPENSCAD_DISABLE_GL20 in your environment you should
start looking at the glew library and the handling of "GL_VERSION_2_0"
there..

yours,
 - clifford

--
Walking on water and developing software from a specification are easy if
both are frozen.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenGL 2.0 not detected correctly?

kintel
Administrator
In reply to this post by Britton Kerin
On Jan 2, 2010, at 09:40 , Britton Kerin wrote:

>
> I think I have an OpenGL 2.0 compatible card, at least:
>
>  rhino$ glxinfo | grep '2\.'
>  OpenGL version string: 2.1.2 NVIDIA 173.14.09
>

Also try running glewinfo, just to check if glew works out of the box,  
e.g.
glewinfo | grep '2[\._]'

~/= Marius

--
We are Elektropeople for a better living.





Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenGL 2.0 not detected correctly?

Britton Kerin
In reply to this post by Clifford Wolf

False alarm, it was my fault... openscad was getting linked against
a wrong version of libGL, and of course glxinfo and glewinfo were not.

I'm really excited about OpenSCAD, it looks like exactly what I've been
wanting for a while.  For some reason it took way too long to find (I
only
eventually heard of it from the RepRap project.  Perhaps the project
needs a freshmeat page.

Britton

On Sat, 02 Jan 2010 10:01 +0100, "Clifford Wolf" <[hidden email]>
wrote:

> Hi,
>
> On Fri, Jan 01, 2010 at 11:40:44PM -0900, Britton Kerin wrote:
> > I think I have an OpenGL 2.0 compatible card, at least:
> >
> >   rhino$ glxinfo | grep '2\.'
> >   OpenGL version string: 2.1.2 NVIDIA 173.14.09
> >
> > However, openscad gives me a warning about missing openGL
> > support on startup.
>
> interesting..
>
> > Any tips where to start looking for the problem?
>
> the relevant code from glview.cc is:
>
> --snip--
>         GLenum err = glewInit();
>         if (GLEW_OK != err) {
>                 fprintf(stderr, "GLEW Error: %s\n",
>                 glewGetErrorString(err));
>         }
>         const char *openscad_disable_gl20_env =
>         getenv("OPENSCAD_DISABLE_GL20");
>         if (openscad_disable_gl20_env &&
>         !strcmp(openscad_disable_gl20_env, "0"))
>                 openscad_disable_gl20_env = NULL;
>         if (glewIsSupported("GL_VERSION_2_0") &&
>         openscad_disable_gl20_env == NULL)
> --snap--
>
> so unless you have set OPENSCAD_DISABLE_GL20 in your environment you
> should
> start looking at the glew library and the handling of "GL_VERSION_2_0"
> there..
>
> yours,
>  - clifford
>
> --
> Walking on water and developing software from a specification are easy if
> both are frozen.
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad



Loading...