[Openchrome-users] openChrome compilation with --disable-dri

Rikz andrey.melentyev
Mon Oct 8 03:33:32 PDT 2007


I'm trying to make Gentoo ebuild for openChrome more flexible and to
make DRI support optional in it. As I can see in ./configure --help
(from openchrome svn source tree) there's an option '--disable-dri':
    --disable-dri              Disable DRI support [default=auto]

After running ./autogen --disable-dri when I try to compile driver
with 'make' command I see the following error:

 # make
make  all-recursive
make[1]: Entering directory `/usr/src/openchrome-svn/trunk'
Making all in unichrome
make[2]: Entering directory `/usr/src/openchrome-svn/trunk/unichrome'
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..    -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm
   -g -O2 -MT via_3d.lo -MD -MP -MF .deps/via_3d.Tpo -c -o via_3d.lo
via_3d.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg
-I/usr/include/pixman-1 -I/usr/include/drm -g -O2 -MT via_3d.lo -MD
-MP -MF .deps/via_3d.Tpo -c via_3d.c  -fPIC -DPIC -o .libs/via_3d.o
mv -f .deps/via_3d.Tpo .deps/via_3d.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I..    -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm
   -g -O2 -MT via_accel.lo -MD -MP -MF .deps/via_accel.Tpo -c -o
via_accel.lo via_accel.c
 gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg
-I/usr/include/pixman-1 -I/usr/include/drm -g -O2 -MT via_accel.lo -MD
-MP -MF .deps/via_accel.Tpo -c via_accel.c  -fPIC -DPIC -o
.libs/via_accel.o
In file included from via_driver.h:72,
                 from via_accel.c:45:
/usr/include/xorg/dri.h:39:21: error: xf86dri.h: No such file or directory
via_accel.c: In function 'viaAccelTextureBlit':
via_accel.c:2641: warning: passing argument 2 of 'viaOrder' from
incompatible pointer type
via_accel.c:2642: warning: passing argument 2 of 'viaOrder' from
incompatible pointer type
make[2]: *** [via_accel.lo] Error 1
make[2]: Leaving directory `/usr/src/openchrome-svn/trunk/unichrome'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/openchrome-svn/trunk'
make: *** [all] Error 2


So I wonder if --disable-dri option is still actual. Should it be
removed from ./configure script, or we need to review via_driver.h ?


-- 
-wbr,
Andrey Melentyev
andrey.melentyev at gmail.com




More information about the Openchrome-users mailing list