SourceForge has been redesigned. Learn more.
Close

Trying to use on Mac, getting errors when linking

Using GLFW
Anonymous
2013-03-02
2013-03-19
  • Anonymous

    Anonymous - 2013-03-02

    Hello, I am trying to compile the demo code here:
    https://github.com/OpenGLInsights/OpenGLInsightsCode/issues/4#issuecomment-14309492

    It seemed to need a mac version of GLFW, so I downloaded and compile it. But when I link it to this project I get these errors:

    "_IOCreatePlugInInterfaceForService", referenced from:
    glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
    "_IOIteratorNext", referenced from:
    glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
    "_IOMasterPort", referenced from:
    glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
    "_IORegistryEntryCreateCFProperties", referenced from:
    glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
    "_IOServiceGetMatchingServices", referenced from:
    glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
    "_IOServiceMatching", referenced from:
    glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
    ld: symbol(s) not found for architecture x86_64

    How do I fix that?

    Thanks!
    Bob

     
  • Camilla Löwy

    Camilla Löwy - 2013-03-19

    You need to link against the IOKit framework, as is explained in section 4.2.5 of the readme file.