From the course: Learning OpenGL

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Building an OpenGL project from scratch

Building an OpenGL project from scratch - OpenGL Tutorial

From the course: Learning OpenGL

Start my 1-month free trial

Building an OpenGL project from scratch

I recommend for this course that you use CMake to automate the generation of your project files But, if you're having trouble using CMake, you can build your project from scratch. So, an Xcode for example, you wanna set your headers search paths to search in the exercise files include directory, the exercise files directory, and the exercise files/GLFW/include directory. You also need to make sure that you're linking to the correct libraries. You wanna make sure that you're linking to GLFW itself. GLFW will need to be built using CMake. so you'll need to CD into the GLFW directory, and build GLFW from there. You'll want to point to wherever GLU is installed on your system. And you'll need to link to the Cocoa OpenGL I/O kit, core foundation, and core video frameworks. If you're on a Windows machine, you need to make sure that you're linked to the GLU library and OpenGL 32.lib in addition to the GLFW library. Also make sure that your library search paths are set so that they search in…

Contents