Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: met some problem when install the glew library on the platform of Mac ox 10.9.1

  1. #1
    Newbie Newbie
    Join Date
    Feb 2014
    Posts
    2

    Unhappy met some problem when install the glew library on the platform of Mac ox 10.9.1

    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?

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,183
    Looks like your standard includes are not installed properly. Do a:

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •