yuq / mesa-lima

Deprecated, new place: https://gitlab.freedesktop.org/lima
https://github.com/yuq/mesa-lima/wiki
165 stars 18 forks source link

how you complete MESA 18 ? #55

Closed stevenvandenbrandenstift closed 6 years ago

stevenvandenbrandenstift commented 6 years ago

Hello,

I tried compiling MESA via scons, But with what does it compile ?

And how to generate the configure script ? In case of using Autotools is still supported as in the Wiki ?

yuq commented 6 years ago

I haven't used scons to compile mesa before, just use autotools for it. "configure" file is generated with the "autogen.sh" script.

7134956 commented 6 years ago

For installation in the user's directory something like this.

sudo apt-get build-dep libgl1-mesa-dri

sudo apt-get install \
    automake libtool \
    bison flex \
    gettext \
    libdrm-dev \
    libexpat1-dev \
    libudev-dev \
    libx11-xcb-dev \
    libxcb-dri3-dev \
    libxcb-dri2-0-dev \
    libxcb-glx0-dev \
    libxcb-xfixes0-dev \
    libxcb-present-dev \
    libxcb-sync-dev \
    libxshmfence-dev \
    libxdamage-dev \
    libxext-dev \
    libxfixes-dev \
    python-mako \
    x11proto-present-dev \
    x11proto-dri3-dev \
    x11proto-dri2-dev \
    x11proto-gl-dev

cd mesa-lima

git pull

./configure --with-gallium-drivers=exynos,sun4i,meson,rockchip,lima --with-dri-drivers= --with-platforms=drm,x11 --disable-xvmc --disable-vdpau --enable-debug

./autogen.sh \
     --prefix=$HOME/prefix \
     --with-dri-drivers= \
     --with-egl-platforms=x11,drm \
     --disable-xvmc --disable-vdpau --enable-debug \
     --with-gallium-drivers=exynos,sun4i,meson,rockchip,lima

make -j4
make install

To start applications like that.

exec env \
    LIBGL_DEBUG=verbose \
    MESA_DEBUG=1 \
    EGL_LOG_LEVEL=debug \
    LD_LIBRARY_PATH=/home/andrei/prefix/lib \
    LIBGL_DRIVERS_PATH=/home/andrei/prefix/lib \
    GBM_DRIVERS_PATH=/home/andrei/prefix/lib/dri \
    $@
stevenvandenbrandenstift commented 6 years ago

Thanks a lot. Maybe this can be added to the Wiki , i am going to test this on a protab 255 XXL tablet with an A10 allwinner chipset.