Getting Started on Grapics programming

Hi,

I was wondering if someone could help me out, i wanted to start doing some graphics programing in c++. Stuff like creating simple shapes and drawing fractals, but im not sure at all which graphics library i should be using or how to set it up. I heard of OpenGL but apparently openGL isnt something you can't just download?

Could some help point me in the right direction. Im using Kubuntu 11.04.

Thanks for the help.
What you need is SFML:
http://www.sfml-dev.org/
ok, ive downloaded SFML.

I have followed all of the steps on this page:

http://www.sfml-dev.org/tutorials/1.6/start-linux.php

up to typin in this:

 
g++ -o clock clock.o -lsfml-system 


into the terminal

the i try to run the clock by

./clock

but i get the error:

./clock: error while loading shared libraries: libsfml-system.so.1.6: cannot open shared object file: No such file or directory


any suggestions?
Did you build SFML yourself? Don't do that, unless you want to use the 2.0 version.
Rather, use the package manager and install the package libsfml-dev (edit: you'll need freeglut3-dev too).
Last edited on
nice that worked thanks!

Can you just explain what theses lines are actually doing:

1
2
g++ -c clock.cpp
g++ -o clock clock.o -lsfml-system


verses:

g++ -o clock clock.cpp which is what i normally do to compile a c++ program

thanks
Topic archived. No new replies allowed.