Re: Error: Xlib: extension "XFree86-DRI" missing on display ":0.0".

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Mark, 

Thank you for your replay,

I'm not understanding why that simple opengl program gives the message:

Xlib: extension "XFree86-DRI" missing on display ":0.0".


I belive that is the use of GLUT library, because I've already commented 
the line Load "dri" from XF86Config and restarted X. When I run the 
program, the message was the same.

Since I do not see any references to DRI on the program and according your 
message DRI should not be necessary to run opengl programs, I belive that 
the glut.h header should use some DRI resources, Am I correct?

I've got the program from: http:www.opengl.org and I'm attaching the 
program in this message. This may help understanding the problem.






#include <GL/gl.h>
#include <GL/glut.h>

void display(void)
{
/*  clear all pixels  */
    glClear (GL_COLOR_BUFFER_BIT);

/*  draw white polygon (rectangle) with corners at
 *  (0.25, 0.25, 0.0) and (0.75, 0.75, 0.0)  
 */
    glColor3f (1.0, 1.0, 1.0);
    glBegin(GL_POLYGON);
        glVertex3f (0.25, 0.25, 0.0);
        glVertex3f (0.75, 0.25, 0.0);
        glVertex3f (0.75, 0.75, 0.0);
        glVertex3f (0.25, 0.75, 0.0);
    glEnd();

/*  don't wait!  
 *  start processing buffered OpenGL routines 
 */
    glFlush ();
}

void init (void) 
{
/*  select clearing (background) color       */
    glClearColor (0.0, 0.0, 0.0, 0.0);

/*  initialize viewing values  */
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);
}

/* 
 *  Declare initial window size, position, and display mode
 *  (single buffer and RGBA).  Open window with "hello"
 *  in its title bar.  Call initialization routines.
 *  Register callback function to display graphics.
 *  Enter main loop and process events.
 */
int main(int argc, char** argv)
{
    glutInit(&argc, argv);
    glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
    glutInitWindowSize (250, 250); 
    glutInitWindowPosition (100, 100);
    glutCreateWindow ("hello");
    init ();
    glutDisplayFunc(display); 
    glutMainLoop();
    return 0;   /* ISO C requires main to return int. */
}



On Tue, 23 Mar 2004, Mark Vojkovich wrote:

> On Tue, 23 Mar 2004, Paulo Belletato wrote:
> 
> > Hi all,
> >
> > I'm trying to run some simple examples of opengl programs from a tutorial of
> > www.opengl.org in a Pentium III - 1GHz with a video card NVIDIA RIVA TNT2,
> > using XFree86 4.3.0 version 11, Revision 0, Release 6.6.
> > (Release Date: 27 February 2003)
> > My system is a FreeBSD 4.8-RELEASE #0: Thu Apr  3 10:53:38 GMT 2003
> >
> > I could compile a simple example, but when trying to run the ./a.out prog.
> > I received the message:
> >
> >  GLUT: Fatal Error in a.out: OpenGL GLX extension not supported by display: :0.0
> >
> > I could eliminate that problem including the line Load "glx" in my XF86Config
> > file. I also added the Load "dri" in the same file. But now trying to run the
> > a.out program I get the message:
> >
> >  Xlib:  extension "XFree86-DRI" missing on display ":0.0".
> 
>    The DRI extension should not be required for OpenGL to work.
> 
> >
> > I've found some related messages in this list that discussed this problem but
> > I didn't understand what should I do to solve it.
> >
> > I have no experience with graphics programming so I have some elementary doubts:
> >
> > 1. Are there any TUTORIAL to solve this problem?
> > 2. Should I download and install the NVIDIA driver from NVIDIA Corp.?
> 
>    If you want hardware accelerated OpenGL, then yes.
> 
> > 3. Is this card compatible with 3D acceleration?
> 
>    The "nv" driver that comes with XFree86 does not support
> HW 3D acceleration, but it should still work unaccelerated
> with the OpenGL libraries and glx module that come with
> XFree86.  NVIDIA's binary drivers will replace XFree86's
> GLX module and OpenGL libraries with ones that support HW
> OpenGL acceleration on NVIDIA hardware.
> 
> 
> > 4. Should the examples from www.opengl.org run in a non-accelerated card?
> 
>    They should run with even with the software OpenGL rendering
> used by the "nv" driver.
> 
> 
> 			Mark.
> _______________________________________________
> XFree86 mailing list
> XFree86@xxxxxxxxxxx
> http://XFree86.Org/mailman/listinfo/xfree86
> 

_______________________________________________
XFree86 mailing list
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux