List Info

Thread: MesaLib Build Procedure




MesaLib Build Procedure
user name
2006-06-19 09:55:28
I was wondering whether the building of MesaLib could be
performed in
the following way without the modifications (described in
the SVN BLFS
book) to the source files. The rationale behind my
proposition is that
the modifications cause many changes to the source files and
are a
little bit inconvenient when one wants to build the CVS
version of
MesaLib and then update the source base and rebuild it on
regular (or
irregular) intervals of time because a lot of files get
changed and
when one updates from CVS they get changed back and the
fixing has to
be performed again.

make \
   
X11_INCLUDES='-DDEFAULT_DRIVER_DIR="\"/usr/X11
R7/lib/dri\""
-I/usr/X11R7/include' \
    EXTRA_LIB_PATH=-L/usr/X11R7/lib \
    DRI_DIRS=r200 \
    linux-dri-x86

X11_INCLUDES is pretty straightforward but it also defines
DEFAULT_DRIVER_DIR because I'm unable to specify a value
for DEFINES
without discarding the other values in it. Otherwise one has
to change
src/glx/x11/dri_glx.c which I don't want to do because I
have to do it
after each update from CVS.

Please, note the that I've used /usr/X11R7 for XORG_PREFIX
but this is
not really important for the approach that I propose and one
can
replace it with their own XORG_PREFIX.

Please, note that I haven't tested the proposed building
procedure for
MesaDemo because I don't use it.

I believe that the above procedure works for me because
I've been
using it for about a month now. I hope that you will find it
useful.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://
www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
MesaLib Build Procedure
user name
2006-06-19 14:37:11
On 6/19/06, Lubomir Marinov <lubomir.marinovgmail.com> wrote:
>
> make \
>    
X11_INCLUDES='-DDEFAULT_DRIVER_DIR="\"/usr/X11
R7/lib/dri\""
> -I/usr/X11R7/include' \
>     EXTRA_LIB_PATH=-L/usr/X11R7/lib \
>     DRI_DIRS=r200 \
>     linux-dri-x86
>
> X11_INCLUDES is pretty straightforward but it also
defines
> DEFAULT_DRIVER_DIR because I'm unable to specify a
value for DEFINES
> without discarding the other values in it. Otherwise
one has to change
> src/glx/x11/dri_glx.c which I don't want to do because
I have to do it
> after each update from CVS.

I've been shoving extra flags into OPT_FLAGS.  With /usr as
my
XORG_PREFIX, I've been using

make linux-dri-x86 \
OPT_FLAGS="$CFLAGS
-DDEFAULT_DRIVER_DIR=\\\"/usr/lib/X11/modules/dri\
\\"" \
	PIC_FLAGS="-fPIC" \
	X11_INCLUDES="" EXTRA_LIB_PATH=""

PIC_FLAGS is probably unnecessary.  It's worth a
discussion, but it
may not be worth the extra effort.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://
www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
MesaLib Build Procedure
user name
2006-06-19 15:41:38
Dan Nicholson wrote:
> make linux-dri-x86 \
> OPT_FLAGS="$CFLAGS
-DDEFAULT_DRIVER_DIR=\\\"/usr/lib/X11/modules/dri\
\\"" \
>     PIC_FLAGS="-fPIC" \
>     X11_INCLUDES=""
EXTRA_LIB_PATH=""
> 
> PIC_FLAGS is probably unnecessary.  It's worth a
discussion, but it
> may not be worth the extra effort.

This default driver dir is from the LiveCD, but the LiveCD
gets it wrong for 
Xorg 7.1 (namely, this results in non-functional AIGLX). The
correct directory 
is /usr/lib/dri. I will fix this on the LiveCD by completely
removing support 
for OpenGL.

-- 
Alexander E. Patrakov
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://
www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
MesaLib Build Procedure
user name
2006-06-19 17:01:52
On 6/19/06, Alexander E. Patrakov <patrakovums.usu.ru> wrote:
> Dan Nicholson wrote:
> > make linux-dri-x86 \
> > OPT_FLAGS="$CFLAGS
-DDEFAULT_DRIVER_DIR=\\\"/usr/lib/X11/modules/dri\
\\"" \
> >     PIC_FLAGS="-fPIC" \
> >     X11_INCLUDES=""
EXTRA_LIB_PATH=""
> >
> > PIC_FLAGS is probably unnecessary.  It's worth a
discussion, but it
> > may not be worth the extra effort.
>
> This default driver dir is from the LiveCD, but the
LiveCD gets it wrong for
> Xorg 7.1 (namely, this results in non-functional
AIGLX). The correct directory
> is /usr/lib/dri. I will fix this on the LiveCD by
completely removing support
> for OpenGL.

Well, I also make sure to pass in all the directories to the
xorg-server build, whether through configure or preprocessor
directives.  But you have a point.  Which part of AIGLX
doesn't catch
the dri directory?  Source file?

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://
www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
MesaLib Build Procedure
user name
2006-06-20 02:38:06
Dan Nicholson wrote:
> On 6/19/06, Alexander E. Patrakov <patrakovums.usu.ru> wrote:
>> Dan Nicholson wrote:
>> > make linux-dri-x86 \
>> > OPT_FLAGS="$CFLAGS 
>>
-DDEFAULT_DRIVER_DIR=\\\"/usr/lib/X11/modules/dri\
\\"" \
>> >     PIC_FLAGS="-fPIC" \
>> >     X11_INCLUDES=""
EXTRA_LIB_PATH=""
>> >
>> > PIC_FLAGS is probably unnecessary.  It's
worth a discussion, but it
>> > may not be worth the extra effort.
>>
>> This default driver dir is from the LiveCD, but the
LiveCD gets it 
>> wrong for
>> Xorg 7.1 (namely, this results in non-functional
AIGLX). The correct 
>> directory
>> is /usr/lib/dri. I will fix this on the LiveCD by
completely removing 
>> support
>> for OpenGL.
> 
> Well, I also make sure to pass in all the directories
to the
> xorg-server build, whether through configure or
preprocessor
> directives.

Then everything is fine. /usr/lib/dri is just the default
value of 
--with-dri-driver-path in xorg-server 1.1.0. If DRI drivers
are in fact 
installed somewhere else during Mesa build, XOrg will not be
able to dlopen them 
at runtime, and revert to software rendering for indirect
clients.

-- 
Alexander E. Patrakov
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://
www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )