Results 1 to 2 of 2

Thread: compiling simple cube demo

  1. #1

    compiling simple cube demo

    I got the cube demo and makefile off of this website. I tried to compile, but get this error:
    gcc -Wall -I/usr/X11R6/include/ -o cube -L/usr/X11R6/lib cube.o -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm
    /usr/bin/ld: cannot find -lglut
    collect2: ld returned 1 exit status
    make: *** [cube] Error 1

    How do I resolve this -lglut problem?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2003
    Toulouse, France

    Re: compiling simple cube demo

    you need to install glut ...
    the package is available in every linux distro.

Similar Threads

  1. Simple Cube not Showing up with simple Example ...
    By tmason in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-26-2014, 11:42 PM
  2. OpenGL Cube demo
    By atteal in forum OpenGL: Linux
    Replies: 4
    Last Post: 12-02-2010, 03:15 AM
  3. Problem compiling Nokia Series 60 Demo App
    By praveens in forum OpenGL ES
    Replies: 1
    Last Post: 10-31-2004, 01:04 PM
  4. Simple Demo
    By opentribe in forum OpenGL ES
    Replies: 2
    Last Post: 04-27-2004, 08:59 PM
  5. Simple IBR demo
    By tooltech in forum OpenGL: Advanced Coding
    Replies: 13
    Last Post: 07-22-2003, 07:15 AM

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