Results 1 to 3 of 3

Thread: Trying to install opengl dev (compile an opengl program)

  1. #1
    Join Date
    Jun 2010
    Beans
    20

    Trying to install opengl dev (compile an opengl program)

    Hello, I'm new to Ubuntu. I was using fedora before and all the opengl development files were in a single package (+ dependencies). I can't seem to track down that for Ubuntu.

    Sure, I found the mesa libraries (libgl1-mesa-dev and libglu1-mesa-dev) and even tried freeglut3-dev, but none compiles the opengl program that runs on my fedora fine.

    I get this error message:

    Code:
    /tmp/ccFnAvO6.o: In function `display()':
    RoamingTerrain.cpp:(.text+0x6067): undefined reference to `gluLookAt'
    /tmp/ccFnAvO6.o: In function `myReshape(int, int)':
    RoamingTerrain.cpp:(.text+0x60e5): undefined reference to `gluPerspective'
    collect2: ld returned 1 exit status
    Anyone know what I am missing? I compile via g++ -lglut RoamingTerrain.cpp

  2. #2
    Join Date
    Jun 2010
    Beans
    20

    Re: Trying to install opengl dev (compile an opengl program)

    Help, anyone? Please? ;_;

  3. #3
    Join Date
    Jun 2010
    Beans
    20

    Re: Trying to install opengl dev (compile an opengl program)

    Quote Originally Posted by someoney3000 View Post
    Help, anyone? Please? ;_;
    For anyone who finds this thread, go here: http://ubuntuforums.org/showthread.php?t=345177

    Furthermore, I noticed it matters where the -lglut command comes in; i.e. g++ RoamingTerrain.cpp -lglut

Bookmarks

Posting Permissions

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