Static build on CodeBlocks with mingw

arampl wrote on Sunday, May 04, 2014:

  1. Download CMake for Windows http://www.cmake.org/cmake/resources/software.html

  2. Install it and run.

  3. Set path to GLFW source (root of source tarball, not folder “src”).

  4. Set path to CodeBlocks project file (where you want it to be created).

  5. Press “Configure” and choose generator “CodeBlocks MinGW makefiles”.

  6. Press “Generate”.

  7. Open generated project in CodeBlocks.

  8. Here, in source tree, you now have library, all examples and tests.

  9. After build you will have static library - “libglfw3.a” (in the “src”) and executables for examples and tests.

Tested with CodeBlocks 12.11 on Windows 7 64