ejoy2d mac編譯遇到問題
阿新 • • 發佈:2019-01-25
平臺:Mac
Lua版本:5.3.2 請確定裝的是5.3.2 不是請重灌
錯誤1. _CF => CoreFoundation.framework
錯誤2. _CG => CoreGraphics.frameworkUndefined 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
錯誤3. _CV => CoreVideo.frameworkUndefined 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:
錯誤4. _IO => IOKit.frameworkUndefined 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)
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)
編譯成功