我是靠谱客的博主 生动芹菜,最近开发中收集的这篇文章主要介绍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)


编译成功




最后

以上就是生动芹菜为你收集整理的ejoy2d mac编译遇到问题的全部内容,希望文章能够帮你解决ejoy2d mac编译遇到问题所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(53)

评论列表共有 0 条评论

立即
投稿
返回
顶部