Results 1 to 3 of 3

Thread: How do I link the glut libs (glut32.lib) into my MAC OS 10.3.7 program

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2005
    Location
    NY USA
    Posts
    5

    How do I link the glut libs (glut32.lib) into my MAC OS 10.3.7 program

    Hi
    I am trying to compile a simple code but I seem to need to link the glut libs (glut32.lib) in to my program first .

    How do I do that?

    Thanx

    Tom

  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2003
    Posts
    369

    Re: How do I link the glut libs (glut32.lib) into my MAC OS 10.3.7 program

    I'm not sure you can do that. I believe .lib files are windows specific. You would need to find an implementation fo glut for Mac OS. Take a look at mesa It's used for Linux but since Mac OS X is essentially BSD maybe you can somehow compile it. Good luck!

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2004
    Location
    Vicksburg MS
    Posts
    12

    Re: How do I link the glut libs (glut32.lib) into my MAC OS 10.3.7 program

    Apples OpenGL Libraries are part of the OpenGL Framework for MacOSX. It should be in either /System/Frameworks or /Library/Frameworks. Also note that the headers for MacOSX are <OpenGL/gl.h> <OpenGL/glu.h> and <OpenGL/glut.h>. There is some switch for specifing frameworks to apple's version of gcc or you could use Xcode.

    <edit>

    Here is a better answer from another thread.

    Originally posted by arekkusu:
    You need to link against GLUT. Use -framework GLUT -lobjc if you're compiling from the command line, or add GLUT to the project if you're using Xcode.

    Keith has a tutorial for this.

Similar Threads

  1. LINK : fatal error LNK1104: cannot open file "glut32.lib"
    By erinshek_91 in forum OpenGL: General
    Replies: 0
    Last Post: 07-10-2013, 07:45 PM
  2. glut32.dll, glut.h(i need this)
    By i_softech in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 10-24-2001, 05:36 AM
  3. glut32.dll, glut.h(i need this)
    By i_softech in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-22-2001, 04:25 AM
  4. where can I download glut32.lib, glut32.dll and glut.h
    By blitz79 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-28-2000, 01:15 AM
  5. Replies: 1
    Last Post: 06-10-2000, 08:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean