GLEW-2.2.0

Introduction to GLEW

GLEW is the OpenGL Extension Wrangler Library.

[注記]

注記

LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。

Package Information

glew Dependencies

Required

Mesa-23.3.1

Installation of GLEW

Install GLEW by running the following commands:

sed -i 's%lib64%lib%g' config/Makefile.linux &&
sed -i -e '/glew.lib.static:/d' \
       -e '/0644 .*STATIC/d'    \
       -e 's/glew.lib.static//' Makefile     &&
make

This package does not come with a test suite.

Now, as the root user:

make install.all

Command Explanations

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.

make install.all: This installs the programs as well as the library.

Contents

Installed Programs: glewinfo, visualinfo
Installed Library: libGLEW.so
Installed Directory: /usr/include/GL

Short Descriptions

glewinfo

provides information about the supported extensions

visualinfo

is an extended version of glxinfo

libGLEW.so

provides functions to access OpenGL extensions