# Compiling for MinGW on win7

**URL:** <https://discourse.glfw.org/t/compiling-for-mingw-on-win7/79>\
**Category:** support\
**Created:** [July 12, 2014, 2:06pm UTC](https://discourse.glfw.org/t/compiling-for-mingw-on-win7/79 "2014-07-12T14:06:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 12, 2014, 2:06pm UTC](https://discourse.glfw.org/t/compiling-for-mingw-on-win7/79/1 "2014-07-12T14:06:27Z")

</div>

**[pawelk010](https://sourceforge.net/u/pawelk010/)** wrote on [Saturday, July 12, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/8b73a8be/#3a95):

Hi,  
Coming back to some light programming I see a new version of GLFW. Cool.

I’m trying to compile for MinGW on win7.

Following the new “Compiling GLFW” guide I downloaded and installed cmake…

Output of cmake is:

The C compiler identification is GNU 4.8.1  
Check for working C compiler: P:/mingw32/bin/gcc.exe  
Check for working C compiler: P:/mingw32/bin/gcc.exe – works  
Detecting C compiler ABI info  
Detecting C compiler ABI info - done  
Found OpenGL: opengl32  
Looking for include file pthread.h  
Looking for include file pthread.h - found  
Looking for pthread\_create  
Looking for pthread\_create - not found  
Looking for pthread\_create in pthreads  
Looking for pthread\_create in pthreads - not found  
Looking for pthread\_create in pthread  
Looking for pthread\_create in pthread - found  
Found Threads: TRUE  
Could NOT find Doxygen (missing: DOXYGEN\_EXECUTABLE)  
Using Win32 for window creation  
Using WGL for context creation  
Configuring done  
Generating done

Apart from the threading and the doxygen stuff, it seems to have worked but _I don’t see any linkable library_ files anywhere.

When previously (successfully) compiling 2.7.7 there was, quoting from the docs: “… libglfw.a (the static link version of GLFW), glfw.dll (the DLL version of GLFW) and libglfwdll.a (the DLL import library).”

I don’t see any .a or .dll files in the “build” directory that I created for this process. I don’t see any executables for the examples or tests, either.

Top level contents of the build folder is:

Folders:  
CMakeFiles  
docs  
examples  
src  
tests

Files:  
CMakeCache.txt  
cmake\_install.cmake  
cmake\_uninstall.cmake  
Makefile

Mostly just a lot of .cmake and .make files in those folders.

I’d love some help.

Thanks.  
Pawel.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [July 13, 2014, 1:16pm UTC](https://discourse.glfw.org/t/compiling-for-mingw-on-win7/79/2 "2014-07-13T13:16:58Z")

</div>

**[pawelk010](https://sourceforge.net/u/pawelk010/)** wrote on [Sunday, July 13, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/8b73a8be/#3a95/9f39):

Hi.  
Cmake doesn’t _compile_. I still needed to run mingw-make. I’m clearly giving away how green I am but I think if the doc is titled “Compiling GLFW” it should suggest what’s needed to… compile GLFW. 🙂

I was looking at the SFML docs when I realised my mistake:  
[http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php](http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php)

I now have the .a file, and the examples and tests have compiled.

Onwards and upwards…
