GLEW

From CBLFS
Revision as of 10:21, 20 January 2009 by Antoine- (talk | contribs) (New page: {| style="text-align: left; background-color: AliceBlue;" |- !Download Source: | https://sourceforge.net/project/downloading.php?group_id=67586&filename=glew-1.5.1-src.tgz |} ---- {{Pack...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Download Source: https://sourceforge.net/project/downloading.php?group_id=67586&filename=glew-1.5.1-src.tgz

Introduction to GLEW

Project Homepage: http://glew.sourceforge.net/


Dependencies

Required

Non-Multilib

GLEW expects a binary 'arch' at /usr/bin but our script will do as well. Unless you already have '/usr/bin/arch', do the following:

echo "echo $(uname -m)" > /usr/bin/arch && chmod +x /usr/bin/arch

Compile the package:

sed -i 's/X11R6/X11R7/g' config/*
make

Install the package:

make install

If you didn't have it:

rm /usr/bin/arch

Multilib

32Bit

Again with the '/usr/bin/arch':

echo 'echo i386' > /usr/bin/arch && chmod +x /usr/bin/arch

Compile the package:

sed -i 's/X11R6/X11R7/g' config/*
sed -i 's/ cc/ cc -m32/' config/*
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" make CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}"

Install the package:

make install

If you didn't have it:

rm /usr/bin/arch

N32

64Bit

For '/usr/bin/arch':

echo 'echo x86_64' > /usr/bin/arch && chmod +x /usr/bin/arch

Compile the package:

sed -i 's/X11R6/X11R7/g' config/*
sed -i 's/ cc/ cc -m64/' config/*
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" make CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}"

Install the package:

make install

If you didn't have it:

rm /usr/bin/arch

Contents

Installed Directories: /usr/include/GL
Installed Programs: visualinfo, glewinfo
Installed Libraries: libGLEW.{a,so}

Short Descriptions

visualinfo is an extended version of glxinfo.
glewinfo allows you to verify the entry points for the extensions supported on your platform.
Retrieved from "?title=GLEW&oldid=16676"