Help compiling mesa/gallium from git!

Bill Spitzak spitzak at gmail.com
Tue Feb 18 23:58:41 PST 2014


Okay, a bit more luck, in that I can compile weston.

I mostly discovered that there are parts of mesa you just cannot turn 
off, no matter how much you are certain they are not used. Mesa 
internally has calls into various functions in these modules from others 
so they cannot be removed.

My current mesa configuration:

   ./autogen.sh --prefix=$WLD --enable-gles2 --enable-gallium-egl \
       --with-egl-platforms=wayland,x11,drm --enable-gbm \
       --with-gallium-drivers=swrast \
       --with-dri-drivers=swrast --disable-dri3 --disable-glx

The most important thing was the dri-driver, otherwise you get the 
_glapi_Dispatch symbol missing. Also x11, drm, gbm, and gles2 are needed 
or mesa just will not compile.

I now have to run wayland with --use-pixman, when before it either 
detected that it needed to use this, or the gl-renderer worked for some 
reason.

I cannot run any egl demos, even though I have been told this will allow 
them to run with software emulation. weston-simple-egl produces this:

$ env ELG_LOG_LEVEL=debug weston/weston-simple-egl weston-simple-egl: 
clients/simple-egl.c:159: init_egl: Assertion `ret && n >= 1' failed.
[23:44:01.295] libwayland: disconnect from client 0x7578d0
Aborted
spitzak at asus:~/swdevl/wayland$ env EGL_LOG_LEVEL=debug 
weston/weston-simple-egl
libEGL debug: Native platform type: wayland (autodetected)
libEGL debug: EGL search path is /home/spitzak/install/lib/egl
libEGL debug: added /home/spitzak/install/lib/egl/egl_gallium.so to 
module array
libEGL debug: dlopen(/home/spitzak/install/lib/egl/egl_gallium.so)
libEGL info: use wayland for display 0x1e28010
libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in 
eglInitialize(failed to initialize screen)

libEGL info: use wayland for display 0x1e28010
libEGL info: use software fallback
libEGL debug: the best driver is Gallium
libEGL debug: the value (0x8) of attribute 0x3040 did not meet the 
criteria (0x4)
libEGL debug: the value (0x8) of attribute 0x3040 did not meet the 
criteria (0x4)
libEGL debug: the value (0x8) of attribute 0x3040 did not meet the 
criteria (0x4)
libEGL debug: the value (0x8) of attribute 0x3040 did not meet the 
criteria (0x4)
libEGL debug: the value (0x8) of attribute 0x3040 did not meet the 
criteria (0x4)
libEGL debug: the value (0x8) of attribute 0x3040 did not meet the 
criteria (0x4)
libEGL debug: the value (0x8) of attribute 0x3040 did not meet the 
criteria (0x4)
libEGL debug: the value (0x8) of attribute 0x3040 did not meet the 
criteria (0x4)
libEGL debug: the value (0x8) of attribute 0x3040 did not meet the 
criteria (0x4)
libEGL debug: the value (0x8) of attribute 0x3040 did not meet the 
criteria (0x4)
weston-simple-egl: clients/simple-egl.c:159: init_egl: Assertion `ret && 
n >= 1' failed.
[23:44:06.115] libwayland: disconnect from client 0x7578d0
Aborted



More information about the wayland-devel mailing list