23scurtu / cs488-graphics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CS488 Fall 2015 Project Code


Dependencies


Building Projects

We use premake4 as our cross-platform build system. First you will need to build all the static libraries that the projects depend on. To build the libraries, open up a terminal, and cd to the top level of the CS488 project directory and then run the following:

$ premake4 gmake
$ make

This will build the following static libraries, and place them in the top level lib folder of your cs488 project directory.

  • libcs488-framework.a
  • libglfw3.a
  • libimgui.a

Next we can build a specific project. To do this, cd into one of the project folders, say A0 for example, and run the following terminal commands in order to compile the A0 executable using all .cpp files in the A0 directory:

$ cd A0/
$ premake4 gmake
$ make

Windows

Sorry for all of the hardcore Microsoft fans out there. We have not had time to test the build system on Windows yet. Currently our build steps work for OSX and Linux, but all the steps should be the same on Windows, except you will need different libraries to link against when building your project executables. Some good news is that premake4 can output a Visual Studio .sln file by running:

$ premake4 vs2013

This should point you in the general direction.

About


Languages

Language:C++ 41.4%Language:C 33.3%Language:HTML 18.3%Language:Python 2.4%Language:Objective-C 1.1%Language:Lua 0.9%Language:CMake 0.8%Language:CSS 0.8%Language:JavaScript 0.4%Language:Objective-C++ 0.2%Language:Makefile 0.2%Language:M 0.1%Language:Roff 0.0%Language:GLSL 0.0%Language:Shell 0.0%Language:Batchfile 0.0%