воскресенье, 17 ноября 2013 г.

Nate Robins OpenGL tutors on Ubuntu Linux

Nate Robins tutors are great helpers for everybody who wants (or obliged) to learn OpenGL.

The only problem: pre-compiled Linux binaries aren't presented on Nate's website and provided sources doesn't compile in Linux "out of the box".

As it took me some time to figure out how to compile them (I'm quite new to C++), so I'm going to share compilation details here.

All you have to do is to change LDFLAGS string in Makefile from:

LDFLAGS = -lGL -lglu -lglut

To:

LDFLAGS = -lGL -lGLU -lglut -lm

Then, just execute

make

in terminal (don't forget to cd in the directory containing source code), and you're done.

If any errors still appear in the output, try to install the dependencies:

sudo apt-get install freeglut3-dev

Комментариев нет:

Отправить комментарий