Chong, Weiliang wrote:
> Compile xdemo.c will get the error,
> 
> -----
> 
> :/home/veelion/drivers/Mesa/progs/xdemos/xdemo.c:183: undefined 
> reference to `XMesaCreateContext'
> 
> :/home/veelion/drivers/Mesa/progs/xdemos/xdemo.c:191: undefined 
> reference to `XMesaCreateWindowBuffer'
> 
> :/home/veelion/drivers/Mesa/progs/xdemos/xdemo.c:198: undefined 
> reference to `XMesaMakeCurrent'
> 
> ----------
> 
> My Mesa is compiled by “make linux-dri”, so mesa/src/mesa/driver/x11, 
> which define XMesaCreateContext', was not be compiled to libGL.so?
> 
> And I saw the information in the file,
> 
> /*
> 
>  * Very simple demo of how to use the Mesa/X11 interface instead of the
> 
>  * glx, tk or aux toolkits.  I highly recommend using the GLX interface
> 
>  * instead of the X/Mesa interface, however.
> 
>  *
> 
>  * This program is in the public domain.
> 
>  *
> 
>  * Brian Paul
> 
>  */
> 
> Does this mean, “make linux-dri” will compile the glx interface, but not 
> include Mesa/X11 interface? So xdemo.c can’t fine de definition of 
> XMesaCreateContext'?

The XMesa interface (see include/GL/xmesa.h) is from the early, early 
days of Mesa before it supported the GLX API.  Later, I layered the 
emulated GLX API on top of the XMesa interface.  But this stuff is 
only built for the stand-alone, software-rendering version of Mesa and 
not the GLX/DRI build.

I should really move the xdemo.c program (and a few others) into a 
different directory so they don't get built when using DRI.  Maybe 
after the 6.5.2 release...

-Brian

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to