Problems linking against GLFW in OSXGLFW vinculación tema en el Makefile en OSX Lion
he leído esto ya, pero parece ser una cuestión diferente conmigo.
El comando siendo corrió en el makefile es,
g++ -o main main.cpp -lglfw -framework Cocoa -framework OpenGL
El error que estoy recibiendo cuando corro el makefile es,
Undefined symbols for architecture x86_64:
"_IOMasterPort", referenced from:
__glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
"_IOServiceMatching", referenced from:
__glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
"_IOServiceGetMatchingServices", referenced from:
__glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
"_IOIteratorNext", referenced from:
__glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
"_IORegistryEntryCreateCFProperties", referenced from:
__glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
"_IOCreatePlugInInterfaceForService", referenced from:
__glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [all] Error 1
¡Muchas gracias! – snarehanger
Me salvaste el día :-) – Mayoneez
Solo agrego algunos detalles aquí: se necesita el framework IOKit porque es utilizado por el soporte de joystick OS X recientemente agregado. – elmindreda