Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with some graphic-related programs
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rikiwarren
n00b
n00b


Joined: 07 Oct 2002
Posts: 18

PostPosted: Fri Oct 25, 2002 8:06 am    Post subject: Problems with some graphic-related programs Reply with quote

I've noticed that some programs don't run.

Specifically, several of the visualizations I compiled for xmms cause xmms to shutdown.

launching it from a console, I get the following:

-- Nebulus initialisation --

SDL_Init... [OK]
SDL_Create mutex... [OK]
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Graphic mode is not available: Couldn't find matching GLX visual
SDL_Create thread... [OK]

tuxracer gives me a similar result...

Tux Racer 0.61 -- a Sunspire Studios Production (http://www.sunspirestudios.com)
(c) 1999-2000 Jasmin F. Patry <jfpatry@sunspirestudios.com>
"Tux Racer" is a trademark of Jasmin F. Patry
Tux Racer comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
See http://www.gnu.org/copyleft/gpl.html for details.

Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
*** tuxracer error: Couldn't initialize video: Couldn't find matching GLX visual (Success)

Where should I start to troubleshoot this?

When I first built this system, I think I was using over-aggressive settings. I noticed that SDL and some multimedia stuff faild to build the first time through. I downgraded my compile flags and rebuilt those--but apparently there are other problems.

Is there a way to fix this without rebuilding everything?

-Rich-
Back to top
View user's profile Send private message
kermitjunior
Apprentice
Apprentice


Joined: 04 Aug 2002
Posts: 167

PostPosted: Fri Oct 25, 2002 12:10 pm    Post subject: I get the same error Reply with quote

these are my settings from make.conf.

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"

One thing... I don't have any USE settings set. I assumed that they inherited them all from the make.globals file and I only have to turn them off. Is that correct or do I need to add them in make.conf?
_________________
-----
Toshiba Satellite A15-S157, 2.2 Celery, 40GB, 512MB
AMD Athlon XP 1900+, 640MB PC2100, ABIT KG-7R
IBM 120GB (Linux), WD 30GB (WinDoze), ATI All-In-Wonder 128 Pro PCI
Back to top
View user's profile Send private message
rikiwarren
n00b
n00b


Joined: 07 Oct 2002
Posts: 18

PostPosted: Mon Oct 28, 2002 2:29 am    Post subject: Reply with quote

I tried rebuilding xfree, libsdl, sdl-image and sdl-sound, and I'm getting the same errors.

Tux Racer 0.61 -- a Sunspire Studios Production (http://www.sunspirestudios.com)
(c) 1999-2000 Jasmin F. Patry <jfpatry@sunspirestudios.com>
"Tux Racer" is a trademark of Jasmin F. Patry
Tux Racer comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
See http://www.gnu.org/copyleft/gpl.html for details.

Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
*** tuxracer error: Couldn't initialize video: Couldn't find matching GLX visual (Success)


I'm suspecting that I have something not configured properly. Any suggestions?

-Rich-
Back to top
View user's profile Send private message
rikiwarren
n00b
n00b


Joined: 07 Oct 2002
Posts: 18

PostPosted: Mon Oct 28, 2002 5:47 am    Post subject: Fixed one problem Reply with quote

Oops. I fixed one problem. Uncommented the glx line in XF86Config, and all the apps will now run.

But they run horribly, horribly slow.

I've got a Matrox G400. I've had trouble with it before, when I used 24 bit color, I had the same speed problems. But I think I've got it set right. Here's a clipping from /etc/X11/XF86Config

Code:

Section "Screen"
    Identifier  "Screen 1"
    Device      "Matrox Millennium G400"
    Monitor     "SDM-N50"
    DefaultDepth 16

    Subsection "Display"
        Depth       8
        Modes       "1024x768" "800x600" "680x420"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1024x768" "800x600" "680x420"
        ViewPort    0 0
    EndSubsection
#    Subsection "Display"
#        Depth       24
#        Modes       "1024x768" "800x600" "680x420"
#        ViewPort    0 0
#    EndSubsection
EndSection


I have matrox in my USE variable.

Is there anything else I need to do to enable 3d acceleration? Do I need to set something when compiling the kernel?

Close, but not quite right yet...
-Rich-
Back to top
View user's profile Send private message
Mnemia
Guru
Guru


Joined: 17 May 2002
Posts: 476

PostPosted: Mon Oct 28, 2002 5:52 am    Post subject: Reply with quote

Yes, you need to compile in DRM support in the kernel for your specific card. After that you also need to run opengl-update xfree in order to set the acceleration settings. You can type 'glxinfo' to see whether acceleration is working. If it doesn't say "Direct rendering: Yes" then it's not.
Back to top
View user's profile Send private message
rikiwarren
n00b
n00b


Joined: 07 Oct 2002
Posts: 18

PostPosted: Tue Oct 29, 2002 8:47 am    Post subject: Reply with quote

Mnemia wrote:
Yes, you need to compile in DRM support in the kernel for your specific card. After that you also need to run opengl-update xfree in order to set the acceleration settings. You can type 'glxinfo' to see whether acceleration is working. If it doesn't say "Direct rendering: Yes" then it's not.


Ok, I need a little more help here. How do I do this?

I tried looking through the kernel options using menuconfig, but I didn't see any DRM support options. I may just be missing it.

I did try to add the dga USE flag, and rebuild xfree. I also tried running opengl-update. If anything, my regular x sessions seem more sluggish--there's a short pause after KDE starts, before the backgroudn image shows up (which wasn't noticeable before) and there's a very long pause on the grey screen before kdm even shows up.

I'm not sure if the Matrox G400 card can use the dga setting. Should I remove that and rebuild X?

If I'm reading the linux driver information on the Matrox sight right, the mga driver should have 3d acceleration built in. But glxinfo gives me the following:

name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: VA Linux Systems, Inc.
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 Mesa 3.4.2
OpenGL extensions:
GL_ARB_multitexture, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

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 y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x24 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 None
0x25 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x26 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 None

Should I move this question over to the multi-media forum?

-Rich-
Back to top
View user's profile Send private message
Mnemia
Guru
Guru


Joined: 17 May 2002
Posts: 476

PostPosted: Tue Oct 29, 2002 9:34 am    Post subject: Reply with quote

Okay, I don't think that you need to rebuild X. Here are the options you need to add to your kernel:

Under Character Devices:
Add agpgart support if you don't have it selected. If you're not sure what chipset you have just select all the options that pop up when you select this.
Add "Direct Rendering Manager (XFree86 DRI support)".
Do not select "Build drivers for old (XFree 4.0 DRM)".
Add "Matrox g200/g400".

Under Processor Type and Features:
Add "MTRR (Memory Type Range Register) support".

Then rebuild your kernel and modules and reboot with the new kernel.

Make sure that in the Section "Module" part of your /etc/X11/XF86Config you have Load "glx" and Load "dri".

That should fix the problem. If not, post back and we'll work on it some more.
Back to top
View user's profile Send private message
Schwin97
n00b
n00b


Joined: 25 Oct 2002
Posts: 65
Location: Frisco, TX

PostPosted: Wed Oct 30, 2002 9:36 pm    Post subject: Had the same problem Reply with quote

I had the same problem but with a different video card. I just downloaded and built the new driver from dri.sourceforge.net, and then re-emerged xfree and when I left home this morning it seemed to be working...

I do know that when you have the Mesa Indirect (something like that), that you do not have things setup correctly.

Good luck
Schwin97
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum