GLEW: Difference between revisions
From CBLFS
Jump to navigationJump to search
Weibullguy (talk | contribs) No edit summary |
Wishstudio (talk | contribs) Download address correction & version bump, plus some additional info for Non-Multilib installation |
||
| Line 2: | Line 2: | ||
|- | |- | ||
!Download Source: | !Download Source: | ||
|http:// | |http://prdownloads.sourceforge.net/sourceforge/glew/glew-1.5.2.tgz | ||
|} | |} | ||
| Line 18: | Line 18: | ||
== Non-Multilib == | == Non-Multilib == | ||
GLEW expects a binary 'arch' | GLEW expects a binary 'arch', if you didn't have one, do the following: | ||
echo "echo $(uname -m)" > /usr/bin/arch && chmod +x /usr/bin/arch | echo "echo $(uname -m)" > /usr/bin/arch && chmod +x /usr/bin/arch | ||
| Line 25: | Line 24: | ||
Compile the package: | Compile the package: | ||
sed -i | sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" config/* | ||
sed -i "s@/lib64@/lib@g" config/* | |||
make | make | ||
Revision as of 04:12, 24 February 2010
| Download Source: | http://prdownloads.sourceforge.net/sourceforge/glew/glew-1.5.2.tgz |
|---|
Introduction to GLEW
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform. OpenGL core and extension functionality is exposed in a single header file.
Project Homepage: http://glew.sourceforge.net/
Dependencies
Required
Non-Multilib
GLEW expects a binary 'arch', if you didn't have one, do the following:
echo "echo $(uname -m)" > /usr/bin/arch && chmod +x /usr/bin/arch
Compile the package:
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" config/*
sed -i "s@/lib64@/lib@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. |