Closed ziyunfei closed 6 years ago
brew install glfw --without-shared-library ./configure --enable-libx264 --enable-gpl --enable-opengl --enable-filter=gltransition --extra-libs='-lGLEW -lglfw3' make
LD libavfilter/libavfilter.7.dylib Undefined symbols for architecture x86_64: "_IODisplayCreateInfoDictionary", referenced from: __glfwPlatformGetMonitors in libglfw3.a(cocoa_monitor.m.o) "_IOHIDDeviceCopyMatchingElements", referenced from: _matchCallback in libglfw3.a(cocoa_joystick.m.o) "_IOHIDDeviceGetProperty", referenced from: _matchCallback in libglfw3.a(cocoa_joystick.m.o) "_IOHIDDeviceGetValue", referenced from: _getElementValue in libglfw3.a(cocoa_joystick.m.o) "_IOHIDElementGetLogicalMax", referenced from: _getElementsCFArrayHandler in libglfw3.a(cocoa_joystick.m.o) "_IOHIDElementGetLogicalMin", referenced from: _getElementsCFArrayHandler in libglfw3.a(cocoa_joystick.m.o) "_IOHIDElementGetType", referenced from: _getElementsCFArrayHandler in libglfw3.a(cocoa_joystick.m.o) "_IOHIDElementGetTypeID", referenced from: _getElementsCFArrayHandler in libglfw3.a(cocoa_joystick.m.o) "_IOHIDElementGetUsage", referenced from: _getElementsCFArrayHandler in libglfw3.a(cocoa_joystick.m.o) "_IOHIDElementGetUsagePage", referenced from: _getElementsCFArrayHandler in libglfw3.a(cocoa_joystick.m.o) "_IOHIDManagerCreate", referenced from: __glfwInitJoysticksNS in libglfw3.a(cocoa_joystick.m.o) "_IOHIDManagerOpen", referenced from: __glfwInitJoysticksNS in libglfw3.a(cocoa_joystick.m.o) "_IOHIDManagerRegisterDeviceMatchingCallback", referenced from: __glfwInitJoysticksNS in libglfw3.a(cocoa_joystick.m.o) "_IOHIDManagerRegisterDeviceRemovalCallback", referenced from: __glfwInitJoysticksNS in libglfw3.a(cocoa_joystick.m.o) "_IOHIDManagerScheduleWithRunLoop", referenced from: __glfwInitJoysticksNS in libglfw3.a(cocoa_joystick.m.o) "_IOHIDManagerSetDeviceMatchingMultiple", referenced from: __glfwInitJoysticksNS in libglfw3.a(cocoa_joystick.m.o) "_IOHIDValueGetIntegerValue", referenced from: _getElementValue in libglfw3.a(cocoa_joystick.m.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [libavfilter/libavfilter.7.dylib] Error 1
Your extra-libs argument is wrong; please double-check the readme.
Right extra-libs for me: --extra-libs='-lGLEW -lglfw3 -framework Cocoa -framework IOKit -framework CoreFoundation -framework CoreVideo'
--extra-libs='-lGLEW -lglfw3 -framework Cocoa -framework IOKit -framework CoreFoundation -framework CoreVideo'