Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: gluPerspective  (Read 2656 times)

0 Members and 1 Guest are viewing this topic.

bobl

  • Newbie
  • *
  • Posts: 18
    • View Profile
gluPerspective
« on: February 08, 2010, 07:56:19 pm »
I've been looking at the window-opengl tutorial ie...

   //http://www.sfml-dev.org/tutorials/1.3/window-opengl.php

which I'm compiling with...

   g++ -o window-opengl window-opengl.cpp -lsfml-graphics -lsfml-window -lsfml-system

The sticking point seems to be the line...

    gluPerspective(90.f, 1.f, 1.f, 500.f);

ls /usr/lib/libGLU* gives me...

    /usr/lib/libGLU.a  
    /usr/lib/libGLU.so.1            DIR
    /usr/lib/libGLU.so              DIR
    /usr/lib/libGLU.so.1.3.070300

so libGLU looks to exist.
I tried compiling with "-lglu" added in but this didn't work.
I'm not sure if this is the right specification or if its got to be in a certain place in the line.

Any suggestions much appreciated.

bobl

  • Newbie
  • *
  • Posts: 18
    • View Profile
gluPerspective
« Reply #1 on: February 08, 2010, 08:49:52 pm »
Just working my way through this...

http://www.sfml-dev.org/forum/viewtopic.php?t=1880&sid=1397d9c455d32225fdcdc4bed5542c29

One thing this did highlight was that I was working on a 1.3 example using the 1.5 package. Unfortunately even using the 1.5 example the proposed solution didn't work for me as shown as a post on that thread.

bobl

  • Newbie
  • *
  • Posts: 18
    • View Profile
gluPerspective
« Reply #2 on: February 08, 2010, 10:28:24 pm »
The answer was staring me in the face in the 1.5 sdk opengl makefile sample.

g++ -o window-opengl window-opengl.cpp -lsfml-graphics -lsfml-window -lsfml-system -lGLU -lGL

Thank you Laurent!

 

anything