April 23, 2012
The old way
The easy way is at the bottom of the post :)
- Download the sources from SourceForge:
http://glew.sourceforge.net/
- Unzip/Untar the file (Some browsers will do this automatically)
- Before compiling ...
Usually you would run `make` but the shell script will fail to find/guess "$system" variable so we need to set it manually (as of in version 1.7.0 [08-26-11]). So open the makefile with some editor and change system to be `darwin` as shown in the image.
- Compile, Install and Clean
make
sudo make install
make clean
Some harmless warnings appear but ... let them be.
- We are done!
Glew's headers are in /usr/include/GL and the dynamic and static libraries are in /usr/lib/ as usual :)
The easy way
- Use homebrew and save you all these little hazels ... :)
brew install glew
Links
- Installing GLEW in Mac OS X (Leopard) - Julian Villegas
- GLEW on Mac OS - 175 CS Forum
4 comments :
Thanks, very useful. Just I smiled when I saw the easy way at page bottom, when I already had used the other way.
Sorry, that is my bad, I added a line saying there easy way is at the bottom :)
Glad to help
Post a Comment