Ошибка связывания при сборке приложения OpenGL на Ma c с командной строкой - PullRequest
0 голосов
/ 25 апреля 2020

Я новичок в построении командной строки на Ма c. Работая над кроссплатформенным приложением, использующим OpenGL, IM Gui и GLFW, я продолжаю получать ошибки связывания:

    Undefined symbols for architecture x86_64:
  "__glfwCreateContextEGL", referenced from:
      __glfwPlatformCreateWindow in libGLFW.a(cocoa_window.o)
  "__glfwCreateContextNSGL", referenced from:
      __glfwPlatformCreateWindow in libGLFW.a(cocoa_window.o)
  "__glfwCreateContextOSMesa", referenced from:
      __glfwPlatformCreateWindow in libGLFW.a(cocoa_window.o)
  "__glfwInitEGL", referenced from:
      __glfwPlatformCreateWindow in libGLFW.a(cocoa_window.o)
  "__glfwInitNSGL", referenced from:
      __glfwPlatformCreateWindow in libGLFW.a(cocoa_window.o)
  "__glfwInitOSMesa", referenced from:
      __glfwPlatformCreateWindow in libGLFW.a(cocoa_window.o)
  "__glfwPlatformCreateMutex", referenced from:
      _glfwInit in libGLFW.a(init.o)
  "__glfwPlatformCreateTls", referenced from:
      _glfwInit in libGLFW.a(init.o)
  "__glfwPlatformDestroyMutex", referenced from:
      _terminate in libGLFW.a(init.o)
  "__glfwPlatformDestroyTls", referenced from:
      _terminate in libGLFW.a(init.o)
  "__glfwPlatformGetTls", referenced from:
      _glfwDestroyWindow in libGLFW.a(window.o)
      __glfwRefreshContextAttribs in libGLFW.a(context.o)
      _glfwMakeContextCurrent in libGLFW.a(context.o)
      _glfwExtensionSupported in libGLFW.a(context.o)
      _glfwGetCurrentContext in libGLFW.a(context.o)
      _glfwSwapInterval in libGLFW.a(context.o)
      _glfwGetProcAddress in libGLFW.a(context.o)
      ...
  "__glfwPlatformLockMutex", referenced from:
      __glfwInputError in libGLFW.a(init.o)
  "__glfwPlatformSetTls", referenced from:
      __glfwInputError in libGLFW.a(init.o)
      _glfwInit in libGLFW.a(init.o)
  "__glfwPlatformUnlockMutex", referenced from:
      __glfwInputError in libGLFW.a(init.o)
  "__glfwTerminateNSGL", referenced from:
      __glfwPlatformTerminate in libGLFW.a(cocoa_init.o)
  "__glfwUpdateDisplayLinkDisplayNSGL", referenced from:
      -[GLFWWindowDelegate windowDidChangeScreen:] in libGLFW.a(cocoa_window.o)

Я связываюсь с платформами Cocoa, CoreVideo и IOKit. Есть идеи, что мне не хватает?

...