Building Applications with GLWF3可以见http://www.glfw.org/docs/latest/build.html#build_link_osx
但它给的用命令行模式在Mac OS X上使用的方法是不全的,会导致不少错误,比如:
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_64
collect2: error: ld returned 1 exit status
make: *** [myapplicationname] Error 1