Croquet on Debian Testing: problem with OpenGL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Croquet on Debian Testing: problem with OpenGL

Jan Vrany-4
Hi,

I've problems with running Croquet SDK on my
up-to-date debian testing box. After opening
any world, an error is raised:
Error: Cannot initialize OpenGL

After some debugging, I noted that problem
is in OGLUnixX11LE>>initializeIn:
because (primitive) method
OGLUnixX11LE>>primCreateRenderer: flags x: x y: y w: w h: h
returns nil.

I also notices, that every time the
OGLUnixX11LE>>primCreateRenderer: flags x: x y: y w: w h: h
is invoked
--
X error
X error
X error
X error
--
is printed to standard output.
I tryed to read B3DAcceleratorPlugin .c sources,
but I was unable to find function
primitiveCreateRendererFlags() sources.

Has anybody same problem?
Has anybody any idea what could be wrong
and/or what to check? Any other suggestions?

Thanks.

Jan Vrany


Reply | Threaded
Open this post in threaded view
|

Re: Croquet on Debian Testing: problem with OpenGL

Andreas.Raab
Have a look at sqUnixOpenGL.c which handles that part:

http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c?rev=967&view=auto

It looks as if most of this is actually handled in the display backend
which can be found here:

http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/unix/vm-display-X11/

Cheers,
   - Andreas

Jan Vrany wrote:

> Hi,
>
> I've problems with running Croquet SDK on my
> up-to-date debian testing box. After opening
> any world, an error is raised:
> Error: Cannot initialize OpenGL
>
> After some debugging, I noted that problem
> is in OGLUnixX11LE>>initializeIn:
> because (primitive) method
> OGLUnixX11LE>>primCreateRenderer: flags x: x y: y w: w h: h
> returns nil.
>
> I also notices, that every time the
> OGLUnixX11LE>>primCreateRenderer: flags x: x y: y w: w h: h
> is invoked
> --
> X error
> X error
> X error
> X error
> --
> is printed to standard output.
> I tryed to read B3DAcceleratorPlugin .c sources,
> but I was unable to find function
> primitiveCreateRendererFlags() sources.
>
> Has anybody same problem?
> Has anybody any idea what could be wrong
> and/or what to check? Any other suggestions?
>
> Thanks.
>
> Jan Vrany
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Croquet on Debian Testing: problem with OpenGL

Jan Vrany-4
In reply to this post by Jan Vrany-4
Hi,

yes, I did. GLX and DRI stuff works fine with
other appc. glxinfo says:
--
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
--
(full output is attached)

Also, all the libraries are on place (I think):
----------
janfrog@bruxa:...i686-pc-linux-gnu$ 5 > ldd B3DAcceleratorPlugin
        linux-gate.so.1 =>  (0xffffe000)
        libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0xb7e88000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb7e7a000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0xb7e71000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0xb7e59000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0xb7e55000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7e2f000)
        libnsl.so.1 => /lib/tls/libnsl.so.1 (0xb7e18000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7d4d000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7c15000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7c03000)
        libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0xb7bfe000)
        /lib/ld-linux.so.2 (0x80000000)
janfrog@bruxa:...i686-pc-linux-gnu$ 6 > ls -al /usr/X11R6/lib/libGL*
-rw-r--r-- 1 root root 572402 2006-04-04 05:44 /usr/X11R6/lib/libGL.a
lrwxrwxrwx 1 root root     12 2006-04-10 09:19 /usr/X11R6/lib/libGL.so
-> libGL.           so.1.2
lrwxrwxrwx 1 root root     12 2006-04-10 09:19 /usr/X11R6/lib/libGL.so.1
-> libG           L.so.1.2
-rw-r--r-- 1 root root 398400 2006-04-04
05:44 /usr/X11R6/lib/libGL.so.1.2
-rw-r--r-- 1 root root 679886 2006-04-04 05:44 /usr/X11R6/lib/libGLU.a
lrwxrwxrwx 1 root root     13 2006-04-10 09:19 /usr/X11R6/lib/libGLU.so
-> libGL           U.so.1.3
lrwxrwxrwx 1 root root     13 2006-04-10
09:19 /usr/X11R6/lib/libGLU.so.1 -> lib           GLU.so.1.3
-rw-r--r-- 1 root root 516696 2006-04-04
05:44 /usr/X11R6/lib/libGLU.so.1.3
-rw-r--r-- 1 root root  30518 2006-04-04 05:44 /usr/X11R6/lib/libGLw.a
-rw-r--r-- 1 root root  30518 2006-04-04
05:44 /usr/X11R6/lib/libGLw_pic.a
janfrog@bruxa:...i686-pc-linux-gnu$ 7 > ls -al /usr/lib/libGL*
lrwxrwxrwx 1 root root 20 2006-04-10 09:19 /usr/lib/libGL.a
-> ../X11R6/lib/libGL.a
lrwxrwxrwx 1 root root 12 2006-04-10 09:19 /usr/lib/libGL.so ->
libGL.so.1.2
lrwxrwxrwx 1 root root 12 2006-04-10 09:19 /usr/lib/libGL.so.1 ->
libGL.so.1.2
lrwxrwxrwx 1 root root 25 2006-04-10 09:19 /usr/lib/libGL.so.1.2
-> ../X11R6/lib/libGL.so.1.2
lrwxrwxrwx 1 root root 21 2006-04-10 09:19 /usr/lib/libGLU.a
-> ../X11R6/lib/libGLU.a
lrwxrwxrwx 1 root root 13 2006-04-10 09:19 /usr/lib/libGLU.so ->
libGLU.so.1.3
lrwxrwxrwx 1 root root 13 2006-04-10 09:19 /usr/lib/libGLU.so.1 ->
libGLU.so.1.3
lrwxrwxrwx 1 root root 26 2006-04-10 09:19 /usr/lib/libGLU.so.1.3
-> ../X11R6/lib/libGLU.so.1.3
janfrog@bruxa:...i686-pc-linux-gnu$ 8 >
----

Jan


On Út, 2006-04-25 at 00:10 +0200, Bert Freudenberg wrote:

> Did you try these steps?
>
> http://minnow.cc.gatech.edu/croquet/6
>
> If that doesn't help, what is glxinfo reporting?
>
> - Bert -
>
> Am 24.04.2006 um 23:40 schrieb Jan Vrany:
>
> > Hi,
> >
> > I've problems with running Croquet SDK on my
> > up-to-date debian testing box. After opening
> > any world, an error is raised:
> > Error: Cannot initialize OpenGL
> >
> > After some debugging, I noted that problem
> > is in OGLUnixX11LE>>initializeIn:
> > because (primitive) method
> > OGLUnixX11LE>>primCreateRenderer: flags x: x y: y w: w h: h
> > returns nil.
> >
> > I also notices, that every time the
> > OGLUnixX11LE>>primCreateRenderer: flags x: x y: y w: w h: h
> > is invoked
> > --
> > X error
> > X error
> > X error
> > X error
> > --
> > is printed to standard output.
> > I tryed to read B3DAcceleratorPlugin .c sources,
> > but I was unable to find function
> > primitiveCreateRendererFlags() sources.
> >
> > Has anybody same problem?
> > Has anybody any idea what could be wrong
> > and/or what to check? Any other suggestions?
> >
> > Thanks.
> >
> > Jan Vrany

glxinfo.txt (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Croquet on Debian Testing: problem with OpenGL

Bert Freudenberg-3
In reply to this post by Jan Vrany-4
Set your display depth to 32.

Croquet needs an accelerated visual with stencil buffer, which,  
according to your glxinfo output, is not available.

- Bert -

Am 25.04.2006 um 07:57 schrieb Jan Vrany:

> Hi,
>
> yes, I did. GLX and DRI stuff works fine with
> other appc. glxinfo says:

    visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x24 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x25 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x26 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x27 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x28 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x29 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x2a 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x2b 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x2c 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x2d 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x2e 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x2f 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x30 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x31 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x32 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x4b 32 tc  1  0  0 c  .  .  0  0  0  0  0  0  0  0  0  0  0  0 0 None


Reply | Threaded
Open this post in threaded view
|

Re: Croquet on Debian Testing: problem with OpenGL

Jan Vrany-4
In reply to this post by Jan Vrany-4
Hmm...I've tryed to set 32 bit depth but the
radeon driver said that 32 bit depth is not supported.
Maximum is 24, and Croquet doesn't run on 24bpp too.

Does this means, that my system
(IBM T41 with ATI Mobility Radeon 7500)
is unable to run Croquet?

Previous Croquet version runs fine.

Thanks. Jan

On Út, 2006-04-25 at 08:16 +0200, Bert Freudenberg wrote:

> Set your display depth to 32.
>
> Croquet needs an accelerated visual with stencil buffer, which,  
> according to your glxinfo output, is not available.
>
> - Bert -
>
> Am 25.04.2006 um 07:57 schrieb Jan Vrany:
>
> > Hi,
> >
> > yes, I did. GLX and DRI stuff works fine with
> > other appc. glxinfo says:
>
>     visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
> id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
> ----------------------------------------------------------------------
> 0x23 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
> 0x24 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
> 0x25 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
> 0x26 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
> 0x27 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
> 0x28 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
> 0x29 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
> 0x2a 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
> 0x2b 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
> 0x2c 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
> 0x2d 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
> 0x2e 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
> 0x2f 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
> 0x30 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
> 0x31 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
> 0x32 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
> 0x4b 32 tc  1  0  0 c  .  .  0  0  0  0  0  0  0  0  0  0  0  0 0 None
>
>