GLEW-2.1.0

#### Beyond Linux® From Scratch (systemd Edition) - Version 9.0

### Chapter 25. X Libraries

- Prev

  gdk-pixbuf-2.38.1

- Next

  GLU-9.0.1

- Up
- Home

# GLEW-2.1.0

## Introduction to GLEW

GLEW is the OpenGL Extension Wrangler Library.

This package is known to build and work properly using an LFS-9.0 platform.

### Package Information

- Download (HTTP): https://downloads.sourceforge.net/glew/glew-2.1.0.tgz

- Download MD5 sum: b2ab12331033ddfaa50dc39345343980

- Download size: 747 KB

- Estimated disk space required: 16 MB

- Estimated build time: less than 0.1 SBU

### glew Dependencies

#### Required

Mesa-19.1.4

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/GLEW

## 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.

Last updated on 2019-08-22 17:29:06 -0700

- Prev

  gdk-pixbuf-2.38.1

- Next

  GLU-9.0.1

- Up
- Home