PDA

View Full Version : met some problem when install the glew library on the platform of Mac ox 10.9.1



gyygtt
02-24-2014, 06:41 PM
It is my first to use OpenGL.
And I want install the glew library.
The version of the glew library I downloaded is 1.10.0.
I try to install it by the terminal.
And while I type into, make,
Then there is an error manifested on the terminal, saying as below,
_____________________________________
tangketans-imac:glew-1.10.0 gaoyuan$ make
cc -DGLEW_NO_GLU -O2 -Wall -W -Iinclude -dynamic -fno-common -fPIC -o tmp/darwin/default/shared/glew.o -c src/glew.c
src/glew.c:93:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
^
1 error generated.
make: *** [tmp/darwin/default/shared/glew.o] Error 1
_____________________________________

Could you please help me to solve this?

Dark Photon
02-25-2014, 07:13 AM
Looks like your standard includes are not installed properly. Do a:

ls -ld /usr/include /usr/include/stdlib.h