Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

compiling for MinGW on win7

Using GLFW
PawelK
2014-07-12
2014-07-13
  • PawelK
    PawelK
    2014-07-12

    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.

     
    • PawelK
      PawelK
      2014-07-13

      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

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

      Onwards and upwards...