Closed seanshpark closed 7 years ago
Packages
sudo apt-get install libxcb-dri3-dev libxcb-present-dev libxcb-sync-dev libxshmfence-dev
sudo apt-get install libx11-xcb-dev libxcb-glx0-dev libxcb-dri2-0-dev
Configure
mkdir -p $HOME/v/build/mesa
cd $HOME/v/build/mesa
$HOME/v/src/mesa/mesa-17.0.0/./configure --prefix=$HOME/v/local \
--enable-gles1 --enable-gles2 --disable-llvm-shared-libs
environment settings, add in ~/.profile
export PATH=$PATH:$HOME/v/local/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/v/local/lib
export PKG_CONFIG_PATH=$HOME/v/local/lib/pkgconfig
GLEW is required to build demos of mesa
diff --git a/config/Makefile.linux-clang b/config/Makefile.linux-clang
index 2992b89..eb4e715 100644
--- a/config/Makefile.linux-clang
+++ b/config/Makefile.linux-clang
@@ -32,3 +32,7 @@ LIB.DEVLNK = lib$(NAME).so
LIB.SHARED = lib$(NAME).so.$(SO_VERSION)
LIB.STATIC = lib$(NAME).a
LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME)
+
+# for maxwell
+LDFLAGS.EXTRA += -L/home/maxwell/v/local/lib
+CFLAGS.EXTRA += -I/home/maxwell/v/local/include
# if you get the source from git
SYSTEM=linux-clang-egl GLEW_PREFIX=$HOME/v/local GLEW_DEST=$HOME/v/local make extensions
# build from install
SYSTEM=linux-clang-egl GLEW_PREFIX=$HOME/v/local GLEW_DEST=$HOME/v/local make
SYSTEM=linux-clang-egl GLEW_PREFIX=$HOME/v/local GLEW_DEST=$HOME/v/local make install
It's installed to $GLEW_DEST/lib64
for 64bit systems
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/v/local/lib64
WIP mesa demo
GLEW_CFLAGS=/home/maxwell/v/local/include GLEW_LIBS=/home/maxwell/v/local/lib64 \
./configure --disable-vg --disable-osmesa --disable-libdrm --disable-x11 --disable-wayland --disable-gbm
Suspended.
Download: https://www.mesa3d.org/download.html Compile: https://www.mesa3d.org/install.html
File: mesa-17.0.0.tar.gz from https://mesa.freedesktop.org/archive/17.0.0/