Hello,
Tim has:
GL_FLAG = -DUSE_GL_TRUE
GLUT_NEED_INIT = -DNEED_GLUT_INIT
Unfortunately there are 2x2=4 alternatives and in theory one might need to
try all four. But for Ubuntu 10.10 I would guess they should both be the
above. And his other information is:
Linux: 2.6.35
NVidia driver: 260.19.06
X Server: 1.9.0
Boy this stuff is a nightmare, eh.
Wayne
On Thu, 3 Feb 2011, Marco Röben wrote:
> Hi,
>
> I also tried the newest stable (260.19.36) and beta (same as Justin used)
> driver from nvidia. No success even with changing "GL_FLAG" and
> "GLUT_NEED_INIT".
>
> Analysis still reports GL_VERSION 2.1.2
>
> GL_RENDERER = GeForce GTX 460/PCI/SSE2
> GL_VERSION = 2.1.2 NVIDIA 260.19.36
>
> But it should be 4.1.0. Taken from glxinfo:
>
> OpenGL renderer string: GeForce GTX 460/PCI/SSE2
> OpenGL version string: 4.1.0 NVIDIA 260.19.36
>
>
> Maybe it related to the kernel-version? I am still using 2.6.34.
>
>
> regards
> Marco
>
>
>
> Am Mittwoch, 2. Februar 2011, 15:39:07 schrieb Wayne Boucher:
>> Hello,
>>
>> So it seems that for Justin at least the issue was solved by changing one
>> of the GL flags in the environment.txt file (located in
>> ccpnmr/ccpnmr2.*/c). So changing from
>>
>> GL_FLAG = -DUSE_GL_FALSE
>>
>> to
>>
>> GL_FLAG = -DUSE_GL_TRUE
>>
>> (And then "make clean" and "make", so if you have a pre-compiled version
>> of the code you are unlikely to be able to do this.)
>>
>> Tim says that this had to be changed "when going from Ubuntu 10.04 to
>> 10.10". This flag determines the "direct" argument to the
>> glXCreateContext() function. The documentation for that says:
>>
>> "If direct is True, then a direct rendering context is created if the
>> implementation supports direct rendering, if the connection is to an X
>> server that is local, and if a direct rendering context is available. (An
>> implementation may return an indirect context when direct is True.) If
>> direct is False, then a rendering context that renders through the X
>> server is always created. Direct rendering provides a performance
>> advantage in some implementations. However, direct rendering contexts
>> cannot be shared outside a single process, and they may be unable to
>> render to GLX pixmaps."
>>
>> Well I'm not sure I understand all that. But GL_FLAG is one of the two
>> flags that might need changing if OpenGL goes wrong. (GLUT_NEED_INIT
>> being the other one.)
>
|