Menu

Building from source

Anton Smyrnov

GLOB requires several libraries to be installed:

  1. OpenGL is used for sending vertices to the graphics card. Installation instructions are available at this link http://cacs.usc.edu/education/cs596/ogl_setup.pdf.
  2. GLEW is used for detecting deprecation and support at runtime. Follow the instructions here: http://glew.sourceforge.net/install.html
  3. Since GLUT is deprecated now, GLFW library must be used by users as a windowing interface. Installation instructions can be found here: http://www.glfw.org/download.html

Then, the following must be added to the linker:
-lGLEW, -lGLU, -lglfw

For text extrusions, if you include "polygon/text.hpp" (example/example.cpp does), you will additionally need the following to be installed:

  1. Freetype library is used for working with font glyphs. The installation instructions are available here: http://www.freetype.org/download.html
  2. Boost-system library of Boost is used for detecting available fonts.
  3. Boost-filesystem library of Boost is used for traversing directories and similar operations for fonts.

Finally, add additional libraries to the linker:
-lfreetype, -lboost_system, -lboost_filesystem

To run the unit tests, the following libraries must be installed:

  1. Google Test is used as a unit testing framework. Installation instructions can be found here: http://code.google.com/p/googletest/
  2. Boost-serialization library of Boost is used for storing reference models for the 3D meshes and 2D shapes in text files.
    Finally, the following must be added to the linker:
    -lgtest, -lboost_serialization.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.