Sorry I am not familiar with Makefiles But I modified src/egl/drivers/glx/Makefile and src/egl/main/Makefile as attached patch file.
and it can compiled passed when configured --with-dri-drivers=i915 --disable-gallium --without-demos if gallium enabled or with demos, it still compiled failed that can not find xlib.h I'll temporarily use this patch to go on compile xserver, thanks all :) 2010/4/18 CSJ <[email protected]> > oops, fixed typo PREFIX, > but still failed on can not find X11/Xlib.h and X11/Xutil.h > > Thanks your correction :) > and I also change configure options as > > ./autogen.sh --prefix="$PREFIX" --enable-xcb --with-dri-drivers=i915 > --disable-gallium > > 2010/4/18 Joakim Sindholt <[email protected]> > >> In your script, something came to mind in: >> >> ./autogen.sh --prefix="$PREFX" --enable-xcb --enable-gallium-intel >> --with-dri-drivers=i915 >> That line actually compiles both classic AND gallium'ized drivers. The >> --with-dri-drivers flag is what you specify to compile classic mesa >> drivers. >> (also you wrote $PREFX, not $PREFIX, it looks like a bug) >> >> On Sun, 2010-04-18 at 22:42 +0800, CSJ wrote: >> > My build script is as attached named auto.sh, >> > and run it as: >> > auto.sh init >> > auto.sh get_xorg_proto >> > auto.sh build_xorg_proto >> > auto.sh get_xorg_lib >> > auto.sh build_xorg_lib >> > >> > and failed on build mesa lib. >> > >> > I'll try to patch Makefile to let it compile pass. >> > Thanks :) >> > >> > 2010/4/18 Luca Barbieri <[email protected]> >> > Normally the X11 headers are available without needing any >> > special -I >> > options, since they are at /usr/include/X11/Xlib.h >> > >> > It's quite possible that the Mesa build system may be broken >> > if you >> > have them somewhere else, since possibly no one tested that. >> > >> > Just figure out how to fix it and send a patch :) >> > >> >> >> >
Binary files a/src/egl/drivers/dri2/egl_dri2.so and b/src/egl/drivers/dri2/egl_dri2.so differ diff -ruN a/src/egl/drivers/glx/Makefile b/src/egl/drivers/glx/Makefile --- a/src/egl/drivers/glx/Makefile 2010-04-19 00:07:08.000000000 +0800 +++ b/src/egl/drivers/glx/Makefile 2010-04-18 23:41:14.000000000 +0800 @@ -10,7 +10,7 @@ -I$(TOP)/include \ -I$(TOP)/src/egl/main -EGL_CFLAGS = -EGL_LIBS = -lX11 -lGL +EGL_CFLAGS = `pkg-config --cflags x11` +EGL_LIBS = `pkg-config --libs x11` -lGL include ../Makefile.template Binary files a/src/egl/drivers/glx/egl_glx.so and b/src/egl/drivers/glx/egl_glx.so differ diff -ruN a/src/egl/main/Makefile b/src/egl/main/Makefile --- a/src/egl/main/Makefile 2010-04-19 00:07:08.000000000 +0800 +++ b/src/egl/main/Makefile 2010-04-18 23:39:53.000000000 +0800 @@ -7,7 +7,7 @@ EGL_MAJOR = 1 EGL_MINOR = 0 -INCLUDE_DIRS = -I$(TOP)/include +INCLUDE_DIRS = -I$(TOP)/include $(X11_INCLUDES) HEADERS = \ eglcompiler.h \
auto.sh
Description: Bourne shell script
_______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
