To build just run the build script with the command: ./build.sh Please notice that you must have:
- cmake installed (min version 2.8)
- make installed
- opengl, glu and glut installed
In case that the script fails, try these steps:
- mkdir build // creates an empty dir
- cd build
- cmake ..
- make
- ./cg01_intersection
If both of the methods above fail, just compile the main.cpp source file with your preferred compiler. Do not forget to use opengl, glut and glu dependancies. Commands below (using g++):
Linux: g++ main.cpp -o cg01-intersection -std=c++11 -lglut -lGLU -lGL
OSX: g++ main.cpp -o cg01-intersection -std=c++11 -framework OpenGL -framework GLUT
If you keep getting fatal error: GL/glut.h: No such file or directory run this command (linux):
sudo apt-get install freeglut3-dev