ejoy2d mac编译遇到问题

平台:Mac

Lua版本:5.3.2 请确定装的是5.3.2 不是请重装


错误1.    _CF => CoreFoundation.framework


Undefined symbols for architecture x86_64:
  "_CFArrayAppendValue", referenced from:
      __glfwInitJoysticks in libglfw3.a(iokit_joystick.m.o)
      _addJoystickElement in libglfw3.a(iokit_joystick.m.o)
  "_CFArrayApplyFunction", referenced from:
      _matchCallback in libglfw3.a(iokit_joystick.m.o)
  "_CFArrayCreateMutable", referenced from:
      __glfwInitJoysticks in libglfw3.a(iokit_joystick.m.o)
      _matchCallback in libglfw3.a(iokit_joystick.m.o)
  "_CFArrayGetCount", referenced from:
      _matchCallback in libglfw3.a(iokit_joystick.m.o)
      _removeJoystick in libglfw3.a(iokit_joystick.m.o)
      _pollJoystickEvents in libglfw3.a(iokit_joystick.m.o)
      __glfwPlatformGetJoystickAxes in libglfw3.a(iokit_joystick.m.o)
      __glfwPlatformGetJoystickButtons in libglfw3.a(iokit_joystick.m.o)
      __glfwSetVideoMode in libglfw3.a(cocoa_monitor.m.o)
      __glfwPlatformGetVideoModes in libglfw3.a(cocoa_monitor.m.o)
      ...
  "_CFArrayGetValueAtIndex", referenced from:
      _removeJoystick in libglfw3.a(iokit_joystick.m.o)
      _pollJoystickEvents in libglfw3.a(iokit_joystick.m.o)
      __glfwSetVideoMode in libglfw3.a(cocoa_monitor.m.o)
      __glfwPlatformGetVideoModes in libglfw3.a(cocoa_monit


错误2.   _CG => CoreGraphics.framework
Undefined symbols for architecture x86_64:
  "_CGAcquireDisplayFadeReservation", referenced from:
      _beginFadeReservation in libglfw3.a(cocoa_monitor.m.o)
  "_CGAssociateMouseAndMouseCursorPosition", referenced from:
      __glfwPlatformApplyCursorMode in libglfw3.a(cocoa_window.m.o)
  "_CGDisplayBounds", referenced from:
      _transformY in libglfw3.a(cocoa_window.m.o)
      __glfwPlatformGetMonitorPos in libglfw3.a(cocoa_monitor.m.o)
  "_CGDisplayCopyAllDisplayModes", referenced from:
      __glfwSetVideoMode in libglfw3.a(cocoa_monitor.m.o)
      __glfwPlatformGetVideoModes in libglfw3.a(cocoa_monitor.m.o)
  "_CGDisplayCopyDisplayMode", referenced from:
      __glfwSetVideoMode in libglfw3.a(cocoa_monitor.m.o)
      __glfwPlatformGetVideoMode in libglfw3.a(cocoa_monitor.m.o)
  "_CGDisplayFade", referenced from:
      _beginFadeReservation in libglfw3.a(cocoa_monitor.m.o)
      _endFadeReservation in libglfw3.a(cocoa_monitor.m.o)
  "_CGDisplayGammaTableCapacity", referenced from:
      __glfwPlatformGetGammaRamp in libglfw3.a(cocoa_monitor.m.o)
  "_CGDisplayIOServicePort", referenced from:
      _getDisplayName in libglfw3.a(cocoa_monitor.m.o)
  "_CGDisplayIsAsleep", referenced from:
      __glfwPlatformGetMonitors in libglfw3.a(cocoa_monitor.m.o)
  "_CGDisplayModeCopyPixelEncoding", referenced from:


错误3.   _CV => CoreVideo.framework

Undefined symbols for architecture x86_64:
  "_CVDisplayLinkCreateWithCGDisplay", referenced from:
      __glfwSetVideoMode in libglfw3.a(cocoa_monitor.m.o)
      __glfwPlatformGetVideoMode in libglfw3.a(cocoa_monitor.m.o)
      __glfwPlatformGetVideoModes in libglfw3.a(cocoa_monitor.m.o)
  "_CVDisplayLinkGetNominalOutputVideoRefreshPeriod", referenced from:
      _vidmodeFromCGDisplayMode in libglfw3.a(cocoa_monitor.m.o)
  "_CVDisplayLinkRelease", referenced from:
      __glfwSetVideoMode in libglfw3.a(cocoa_monitor.m.o)
      __glfwPlatformGetVideoMode in libglfw3.a(cocoa_monitor.m.o)
      __glfwPlatformGetVideoModes in libglfw3.a(cocoa_monitor.m.o)


错误4.   _IO => IOKit.framework


Undefined symbols for architecture x86_64:
  "_IODisplayCreateInfoDictionary", referenced from:
      _getDisplayName in libglfw3.a(cocoa_monitor.m.o)
  "_IOHIDDeviceCopyMatchingElements", referenced from:
      _matchCallback in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDDeviceGetProperty", referenced from:
      _matchCallback in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDDeviceGetValue", referenced from:
      _getElementValue in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDElementGetLogicalMax", referenced from:
      _addJoystickElement in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDElementGetLogicalMin", referenced from:
      _addJoystickElement in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDElementGetType", referenced from:
      _addJoystickElement in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDElementGetTypeID", referenced from:
      _getElementsCFArrayHandler in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDElementGetUsage", referenced from:
      _addJoystickElement in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDElementGetUsagePage", referenced from:
      _addJoystickElement in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDManagerCreate", referenced from:
      __glfwInitJoysticks in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDManagerOpen", referenced from:
      __glfwInitJoysticks in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDManagerRegisterDeviceMatchingCallback", referenced from:
      __glfwInitJoysticks in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDManagerRegisterDeviceRemovalCallback", referenced from:
      __glfwInitJoysticks in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDManagerScheduleWithRunLoop", referenced from:
      __glfwInitJoysticks in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDManagerSetDeviceMatchingMultiple", referenced from:
      __glfwInitJoysticks in libglfw3.a(iokit_joystick.m.o)
  "_IOHIDValueGetIntegerValue", referenced from:
      _getElementValue in libglfw3.a(iokit_joystick.m.o)


错误5.   _NSAppKit => AppKit.framework

Undefined symbols for architecture x86_64:
  "_NSApp", referenced from:
      -[GLFWApplicationDelegate applicationDidFinishLaunching:] in libglfw3.a(cocoa_window.m.o)
      __glfwPlatformPostEmptyEvent in libglfw3.a(cocoa_window.m.o)
      _initializeAppKit in libglfw3.a(cocoa_window.m.o)
      __glfwPlatformShowWindow in libglfw3.a(cocoa_window.m.o)
      __glfwPlatformPollEvents in libglfw3.a(cocoa_window.m.o)
      __glfwPlatformWaitEvents in libglfw3.a(cocoa_window.m.o)
      _createMenuBar in libglfw3.a(cocoa_window.m.o)
      ...
  "_NSAppKitVersionNumber", referenced from:
      _convertRectToBacking in libglfw3.a(cocoa_window.m.o)
      -[GLFWContentView scrollWheel:] in libglfw3.a(cocoa_window.m.o)
      _createWindow in libglfw3.a(cocoa_window.m.o)
      _createMenuBar in libglfw3.a(cocoa_window.m.o)
  "_NSCalibratedRGBColorSpace", referenced from:
      __glfwPlatformCreateCursor in libglfw3.a(cocoa_window.m.o)
  "_NSFilenamesPboardType", referenced from:
      -[GLFWContentView initWithGlfwWindow:] in libglfw3.a(cocoa_window.m.o)
      -[GLFWContentView performDragOperation:] in libglfw3.a(cocoa_window.m.o)
  "_NSSelectorFromString", referenced from:
      _createMenuBar in libglfw3.a(cocoa_window.m.o)
  "_NSStringPboardType", referenced from:
      __glfwPlatformSetClipboardString in libglfw3.a(cocoa_window.m.o)
      __glfwPlatformGetClipboardString in libglfw3.a(cocoa_window.m.o)
  "_NSZeroPoint", referenced from:
      +[GLFWContentView initialize] in libglfw3.a(cocoa_window.m.o)


编译成功




  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值