[Mesa-dev] [PATCH] docs: update FAQ

Andreas Boll andreas.boll.dev at gmail.com
Sat Oct 6 03:29:49 PDT 2012


2012/10/5 Chad Versace <chad.versace at linux.intel.com>:
> On 10/05/2012 02:14 PM, Andreas Boll wrote:
>> Reported-by: Fabio Pedretti <fabio.ped at libero.it>
>> ---
>>  docs/faq.html |   33 ++++++++++++---------------------
>>  1 files changed, 12 insertions(+), 21 deletions(-)
>>
>> diff --git a/docs/faq.html b/docs/faq.html
>> index dd4e7de..fef2be0 100644
>> --- a/docs/faq.html
>> +++ b/docs/faq.html
>> @@ -16,7 +16,7 @@
>>
>>  <center>
>>  <h1>Mesa Frequently Asked Questions</h1>
>> -Last updated: 20 September 2012
>> +Last updated: 5 October 2012
>>  </center>
>>
>>  <br>
>> @@ -236,15 +236,8 @@ Basically you'll want the following:
>>  Mesa version number.
>>  </li></ul>
>>  <p>
>> -After installing X.org and the DRI drivers, some of these files
>> -may be symlinks into the /usr/X11R6/ tree.
>> -</p>
>> -<p>
>> -The old-style Makefile system doesn't install the Mesa libraries; it's
>> -up to you to copy them (and the headers) to the right place.
>> -</p>
>> -<p>
>> -The GLUT header and library should go in the same directories.
>> +Compiling with <code>configure --prefix="/usr"</code> and installing Mesa
>> +with <code>make install</code> should be enough.
>
> Not exactly. Two autoconf options that vary widely among distros is --libdir and
> --with-dri-driverdir. Also, the install needs to be done as root if installing
> /usr. I would instead say something like this:
>
> When configuring Mesa, there are three autoconf options that affect the install
> location that you should take care with: <code>--prefix</code>,
> <code>--libdir</code>, and <code>--with-dri-driverdir</code>. To install Mesa
> into the sytem location where it will be available for all programs to use, set
> <code>--prefix=/usr</code>. Set <code>--libdir</code> to where you Linux
> distribution installs system libraries, usually either <code>/usr/lib</code> or
> <code>/usr/lib64</code>. Set <code>--with-dri-driverdir</code> to the directory
> where your Linux distribution installs DRI drivers. To find your system's DRI
> driver directory, try executing <code>find /usr -type d -name dri</code>. For
> example, if the <code>find</code> command listed <code>/usr/lib64/dri</code>,
> the set <code>--with-dri-driverdir=/usr/lib64/dri</code>.
>
> After determining the correct values for the install location, configure Mesa
> with <code>./configure --prefix=/usr --libdir=xxx
> --with-dri-driverdir=xxx</code> and then install with <code>sudo make
> install</code>.

Thanks Chad!
I'll post a v2 of my patch in a second.

Andreas.


More information about the mesa-dev mailing list