GLEW is the OpenGL Extension Wrangler Library.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://downloads.sourceforge.net/glew/glew-2.3.0.tgz
Download MD5 sum: 1b321240e1f6651175e953b46bccb3f2
Download size: 848 KB
Estimated disk space required: 15 MB
Estimated build time: less than 0.1 SBU
Install GLEW by running the following commands:
sed -i 's%lib64%lib%g' config/Makefile.linux &&
sed -e '/glew.lib.static:/d' \
-e '/0644 .*STATIC/d' \
-e 's/glew.lib.static//' \
-e 's|/local||' \
-i Makefile &&
make
This package does not come with a test suite.
Now, as the root user:
make install.all
sed -i 's%lib64%lib%g'
...: This ensures that the library is installed in
/usr/lib.
sed -i -e '/glew.lib.static:/d' ...: This suppresses the static library.
sed -i -e 's|/local||'
...: This ensures the package is installed in
/usr.
make install.all: This installs the programs as well as the library.