Skip to content

Instantly share code, notes, and snippets.

@daijinload
Last active July 16, 2017 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daijinload/9db2d9a53d538cdc77d5ae9deabd52fa to your computer and use it in GitHub Desktop.
Save daijinload/9db2d9a53d538cdc77d5ae9deabd52fa to your computer and use it in GitHub Desktop.
wget https://github.com/kdlucas/byte-unixbench/archive/v5.1.3.tar.gz
tar xvf v5.1.3.tar.gz
cd byte-unixbench-5.1.3/UnixBench

sudo apt-get install libx11-dev libgl1-mesa-dev libxext-dev perl perl-modules

# ※1
perl -pi -e "s/# GRAPHIC_TESTS = defined/GRAPHIC_TESTS = defined/g" Makefile
perl -pi -e "s/GL_LIBS = -lGL -lXext -lX11/GL_LIBS = -lGL -lXext -lX11 -lm/g" Makefile
make
./Run

# ※1
un comment "# GRAPHIC_TESTS = defined"

# Set "GL_LIBS" to the libraries needed to link a GL program.
GL_LIBS = -lGL -lXext -lX11 -lm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment