GLWF3 's introduction please visit its official website: http://www.glfw.org/docs/latest/index.html
According to its official website installation introduction, use CMake to install from the source code GLWF3
Building applications with GLWF3 can see HTTP://WWW.GLFW.ORG/DOCS/LATEST/BUILD.HTML#BUILD_LINK_OSX
But the method it gives to use the command-line mode on Mac OS X is incomplete and can cause many errors, such as:
Undefined Symbols for Architecture x86_64: ' _lmgetkbdtype ', referenced from: __glfwplatformgetkeyname in LIBGLFW3.A (COCOA_WINDOW.M.O) "_tiscopycurrentkeyboardlayoutinputsource", referenced from: __ Glfwplatforminit in libglfw3.a (COCOA_INIT.M.O) "_tisgetinputsourceproperty", referenced from: __ Glfwplatforminit in libglfw3.a (COCOA_INIT.M.O) "_ktispropertyunicodekeylayoutdata", referenced from: __ Glfwplatforminit in libglfw3.a (COCOA_INIT.M.O) Ld:symbol (s) not found for architecture X86_64collect2:error:ld returned 1 Exit Statusmake: * * * [myapplicationname] Error 1
The exact compilation commands are:
Cc-o Myprog myprog.c-lglfw3-framework carbon-framework cocoa-framework opengl-framework iokit-framework CoreFoundat Ion-framework Corevideo
The cc above is either defined in the environment variable or replaced with Gcc-mp-x.
Using GLWF3 in command line mode on Mac OS X 10.10