Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Mac OS X Mavericks Build Issues  (Read 7525 times)

0 Members and 1 Guest are viewing this topic.

jaredonline

  • Newbie
  • *
  • Posts: 4
    • View Profile
Mac OS X Mavericks Build Issues
« on: November 08, 2013, 06:45:07 am »
Hey there!

I posted about this on GitHub (but then closed my ticket because I thought I had solved the problem).  I'm (ultimately) trying to get DSFML-C to build, but am having issues there too. Jebbs suggested I ask here for some help.

I can get it to build using the dynamic libraries I've build manually of SFML 2.0, but not the static ones.  Here's what happens:

[jared@Adam-Smith clang (master)]$ make
[  2%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Clock.cpp.o
[  4%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Mutex.cpp.o
[  6%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Sleep.cpp.o
[  9%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Thread.cpp.o
[ 11%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Time.cpp.o
Linking CXX shared library ../../../lib/libcsfml-system.dylib
[ 11%] Built target csfml-system
[ 13%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Context.cpp.o
[ 15%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Joystick.cpp.o
[ 18%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Keyboard.cpp.o
[ 20%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Mouse.cpp.o
[ 22%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/VideoMode.cpp.o
[ 25%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Window.cpp.o
Linking CXX shared library ../../../lib/libcsfml-window.dylib
Undefined symbols for architecture x86_64:
  "_CFArrayCreate", referenced from:
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_CFArrayGetCount", referenced from:
      sf::priv::VideoModeImpl::getFullscreenModes() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::loadKeyboard(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadMouse(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::convertSFModeToCGMode(sf::VideoMode) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CFArrayGetValueAtIndex", referenced from:
      sf::priv::VideoModeImpl::getFullscreenModes() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::loadKeyboard(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadMouse(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::convertSFModeToCGMode(sf::VideoMode) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CFDataGetBytePtr", referenced from:
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFDictionaryCreateMutable", referenced from:
      sf::priv::HIDInputManager::copyDevicesMask(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFDictionarySetValue", referenced from:
      sf::priv::HIDInputManager::copyDevicesMask(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFGetTypeID", referenced from:
      sf::priv::HIDInputManager::getLocationID(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFNumberCreate", referenced from:
      sf::priv::HIDInputManager::copyDevicesMask(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFNumberGetTypeID", referenced from:
      sf::priv::HIDInputManager::getLocationID(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFNumberGetValue", referenced from:
      sf::priv::HIDInputManager::getLocationID(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFRelease", referenced from:
      sf::priv::VideoModeImpl::getFullscreenModes() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      sf::priv::InputImpl::setMousePosition(sf::Vector2<int> const&) in libsfml-window-s.a(InputImpl.mm.o)
      sf::priv::JoystickImpl::isConnected(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::close() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::isKeyPressed(sf::Keyboard::Key) in libsfml-window-s.a(HIDInputManager.mm.o)
      ...
  "_CFRetain", referenced from:
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadMouse(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadKey(__IOHIDElement*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadButton(__IOHIDElement*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFRunLoopGetCurrent", referenced from:
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_CFRunLoopRunInMode", referenced from:
      sf::priv::HIDJoystickManager::getJoystickCount() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::update() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_CFSetGetCount", referenced from:
      sf::priv::JoystickImpl::isConnected(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::initializeKeyboard() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::initializeMouse() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFSetGetValues", referenced from:
      sf::priv::JoystickImpl::isConnected(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::initializeKeyboard() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::initializeMouse() in libsfml-window-s.a(HIDInputManager.mm.o)
  "_CFStringCompare", referenced from:
      sf::priv::modeBitsPerPixel(CGDisplayMode*) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
      sf::priv::displayBitsPerPixel(unsigned int) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
      sf::priv::convertCGModeToSFMode(CGDisplayMode*) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayCopyAllDisplayModes", referenced from:
      sf::priv::VideoModeImpl::getFullscreenModes() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      sf::priv::convertSFModeToCGMode(sf::VideoMode) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayCopyDisplayMode", referenced from:
      sf::priv::displayBitsPerPixel(unsigned int) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayModeCopyPixelEncoding", referenced from:
      sf::priv::modeBitsPerPixel(CGDisplayMode*) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
      sf::priv::displayBitsPerPixel(unsigned int) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
      sf::priv::convertCGModeToSFMode(CGDisplayMode*) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayModeGetHeight", referenced from:
      sf::priv::convertCGModeToSFMode(CGDisplayMode*) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayModeGetWidth", referenced from:
      sf::priv::convertCGModeToSFMode(CGDisplayMode*) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayModeRelease", referenced from:
      sf::priv::displayBitsPerPixel(unsigned int) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGDisplayMoveCursorToPoint", referenced from:
      -[SFOpenGLView setCursorPositionToX:Y:] in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_CGDisplayPixelsHigh", referenced from:
      sf::priv::VideoModeImpl::getDesktopMode() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      -[SFWindowController screenHeight] in libsfml-window-s.a(SFWindowController.mm.o)
  "_CGDisplayPixelsWide", referenced from:
      sf::priv::VideoModeImpl::getDesktopMode() in libsfml-window-s.a(VideoModeImpl.cpp.o)
  "_CGEventCreateMouseEvent", referenced from:
      sf::priv::InputImpl::setMousePosition(sf::Vector2<int> const&) in libsfml-window-s.a(InputImpl.mm.o)
  "_CGEventPost", referenced from:
      sf::priv::InputImpl::setMousePosition(sf::Vector2<int> const&) in libsfml-window-s.a(InputImpl.mm.o)
  "_CGLEnable", referenced from:
      -[SFWindowController applyContext:] in libsfml-window-s.a(SFWindowController.mm.o)
  "_CGLSetParameter", referenced from:
      -[SFWindowController applyContext:] in libsfml-window-s.a(SFWindowController.mm.o)
  "_CGMainDisplayID", referenced from:
      sf::priv::VideoModeImpl::getFullscreenModes() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      sf::priv::VideoModeImpl::getDesktopMode() in libsfml-window-s.a(VideoModeImpl.cpp.o)
      sf::priv::convertSFModeToCGMode(sf::VideoMode) in libsfml-window-s.a(cg_sf_conversion.cpp.o)
  "_CGWindowLevelForKey", referenced from:
      -[SFWindowController initWithMode:andStyle:] in libsfml-window-s.a(SFWindowController.mm.o)
  "_GetCurrentProcess", referenced from:
      sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long) in libsfml-window-s.a(WindowImplCocoa.mm.o)
      sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long) in libsfml-window-s.a(WindowImplCocoa.mm.o)
      sf::priv::WindowImplCocoa::setUpProcess() in libsfml-window-s.a(WindowImplCocoa.mm.o)
  "_IOHIDDeviceCopyMatchingElements", referenced from:
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::loadKeyboard(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadMouse(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDDeviceGetProperty", referenced from:
      sf::priv::HIDInputManager::getLocationID(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDDeviceGetValue", referenced from:
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::isKeyPressed(sf::Keyboard::Key) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::isMouseButtonPressed(sf::Mouse::Button) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDElementGetDevice", referenced from:
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::isKeyPressed(sf::Keyboard::Key) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::isMouseButtonPressed(sf::Mouse::Button) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDElementGetPhysicalMax", referenced from:
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
  "_IOHIDElementGetPhysicalMin", referenced from:
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
  "_IOHIDElementGetType", referenced from:
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
  "_IOHIDElementGetUsage", referenced from:
      sf::priv::JoystickImpl::open(unsigned int) in libsfml-window-s.a(JoystickImpl.cpp.o)
      (anonymous namespace)::JoystickButtonSortPredicate(__IOHIDElement*, __IOHIDElement*) in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::loadMouse(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadKey(__IOHIDElement*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadButton(__IOHIDElement*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDElementGetUsagePage", referenced from:
      sf::priv::HIDInputManager::loadKeyboard(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::loadMouse(__IOHIDDevice*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDManagerClose", referenced from:
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerCopyDevices", referenced from:
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDJoystickManager::copyJoysticks() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerCreate", referenced from:
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerOpen", referenced from:
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerRegisterDeviceMatchingCallback", referenced from:
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerRegisterDeviceRemovalCallback", referenced from:
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerScheduleWithRunLoop", referenced from:
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerSetDeviceMatching", referenced from:
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDManagerSetDeviceMatchingMultiple", referenced from:
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDManagerUnscheduleFromRunLoop", referenced from:
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
      sf::priv::HIDJoystickManager::~HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_IOHIDValueGetIntegerValue", referenced from:
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
      sf::priv::HIDInputManager::isKeyPressed(sf::Keyboard::Key) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::isMouseButtonPressed(sf::Mouse::Button) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_IOHIDValueGetScaledValue", referenced from:
      sf::priv::JoystickImpl::update() in libsfml-window-s.a(JoystickImpl.cpp.o)
  "_LMGetKbdType", referenced from:
      sf::priv::HIDInputManager::loadKey(__IOHIDElement*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_NSApp", referenced from:
      -[SFOpenGLView initModifiersState] in libsfml-window-s.a(SFOpenGLView.mm.o)
      +[SFApplication processEvent] in libsfml-window-s.a(SFApplication.m.o)
  "_NSCalibratedRGBColorSpace", referenced from:
      -[SFWindowController setIconTo:by:with:] in libsfml-window-s.a(SFWindowController.mm.o)
  "_NSDefaultRunLoopMode", referenced from:
      +[SFApplication processEvent] in libsfml-window-s.a(SFApplication.m.o)
  "_NSEqualSizes", referenced from:
      -[SFOpenGLView setCursorPositionToX:Y:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView cursorPositionFromEvent:] in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_NSPointInRect", referenced from:
      -[SFOpenGLView isMouseInside] in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_NSViewFrameDidChangeNotification", referenced from:
      -[SFOpenGLView initWithFrame:] in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_NSZeroSize", referenced from:
      -[SFOpenGLView initWithFrame:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView setCursorPositionToX:Y:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView cursorPositionFromEvent:] in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_OBJC_CLASS_$_NSApplication", referenced from:
      objc-class-ref in libsfml-window-s.a(WindowImplCocoa.mm.o)
      objc-class-ref in libsfml-window-s.a(SFWindowController.mm.o)
      objc-class-ref in libsfml-window-s.a(SFApplication.m.o)
  "_OBJC_CLASS_$_NSArray", referenced from:
      objc-class-ref in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_OBJC_CLASS_$_NSAutoreleasePool", referenced from:
      objc-class-ref in libsfml-window-s.a(AutoreleasePoolWrapper.mm.o)
  "_OBJC_CLASS_$_NSBitmapImageRep", referenced from:
      objc-class-ref in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_CLASS_$_NSCursor", referenced from:
      objc-class-ref in libsfml-window-s.a(SFViewController.mm.o)
      objc-class-ref in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_CLASS_$_NSDate", referenced from:
      objc-class-ref in libsfml-window-s.a(SFApplication.m.o)
  "_OBJC_CLASS_$_NSEvent", referenced from:
      objc-class-ref in libsfml-window-s.a(InputImpl.mm.o)
      objc-class-ref in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_OBJC_CLASS_$_NSImage", referenced from:
      objc-class-ref in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_CLASS_$_NSMenu", referenced from:
      objc-class-ref in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_CLASS_$_NSNotificationCenter", referenced from:
      objc-class-ref in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_OBJC_CLASS_$_NSObject", referenced from:
      _OBJC_CLASS_$_SFViewController in libsfml-window-s.a(SFViewController.mm.o)
      _OBJC_CLASS_$_SFApplication in libsfml-window-s.a(SFApplication.m.o)
  "_OBJC_CLASS_$_NSOpenGLContext", referenced from:
      objc-class-ref in libsfml-window-s.a(SFContext.mm.o)
  "_OBJC_CLASS_$_NSOpenGLPixelFormat", referenced from:
      objc-class-ref in libsfml-window-s.a(SFContext.mm.o)
  "_OBJC_CLASS_$_NSOpenGLView", referenced from:
      _OBJC_CLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
      objc-class-ref in libsfml-window-s.a(SFContext.mm.o)
  "_OBJC_CLASS_$_NSResponder", referenced from:
      _OBJC_CLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_CLASS_$_NSString", referenced from:
      objc-class-ref in libsfml-window-s.a(cpp_objc_conversion.mm.o)
  "_OBJC_CLASS_$_NSThread", referenced from:
      objc-class-ref in libsfml-window-s.a(SFViewController.mm.o)
      objc-class-ref in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_CLASS_$_NSView", referenced from:
      objc-class-ref in libsfml-window-s.a(InputImpl.mm.o)
      objc-class-ref in libsfml-window-s.a(WindowImplCocoa.mm.o)
  "_OBJC_CLASS_$_NSWindow", referenced from:
      objc-class-ref in libsfml-window-s.a(InputImpl.mm.o)
      objc-class-ref in libsfml-window-s.a(WindowImplCocoa.mm.o)
      objc-class-ref in libsfml-window-s.a(SFContext.mm.o)
      _OBJC_CLASS_$_SFWindow in libsfml-window-s.a(SFWindow.m.o)
  "_OBJC_METACLASS_$_NSObject", referenced from:
      _OBJC_METACLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
      _OBJC_METACLASS_$_SFViewController in libsfml-window-s.a(SFViewController.mm.o)
      _OBJC_METACLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
      _OBJC_METACLASS_$_SFApplication in libsfml-window-s.a(SFApplication.m.o)
      _OBJC_METACLASS_$_SFWindow in libsfml-window-s.a(SFWindow.m.o)
  "_OBJC_METACLASS_$_NSOpenGLView", referenced from:
      _OBJC_METACLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
  "_OBJC_METACLASS_$_NSResponder", referenced from:
      _OBJC_METACLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
  "_OBJC_METACLASS_$_NSWindow", referenced from:
      _OBJC_METACLASS_$_SFWindow in libsfml-window-s.a(SFWindow.m.o)
  "_SetFrontProcess", referenced from:
      sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long) in libsfml-window-s.a(WindowImplCocoa.mm.o)
      sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long) in libsfml-window-s.a(WindowImplCocoa.mm.o)
      sf::priv::WindowImplCocoa::setUpProcess() in libsfml-window-s.a(WindowImplCocoa.mm.o)
  "_TISCopyCurrentKeyboardLayoutInputSource", referenced from:
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
  "_TISGetInputSourceProperty", referenced from:
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
  "_TransformProcessType", referenced from:
      sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long) in libsfml-window-s.a(WindowImplCocoa.mm.o)
      sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long) in libsfml-window-s.a(WindowImplCocoa.mm.o)
      sf::priv::WindowImplCocoa::setUpProcess() in libsfml-window-s.a(WindowImplCocoa.mm.o)
  "_UCKeyTranslate", referenced from:
      sf::priv::HIDInputManager::loadKey(__IOHIDElement*) in libsfml-window-s.a(HIDInputManager.mm.o)
  "___CFConstantStringClassReference", referenced from:
      CFString in libsfml-window-s.a(SFOpenGLView.mm.o)
      CFString in libsfml-window-s.a(SFOpenGLView.mm.o)
      CFString in libsfml-window-s.a(HIDInputManager.mm.o)
      CFString in libsfml-window-s.a(HIDInputManager.mm.o)
      CFString in libsfml-window-s.a(HIDInputManager.mm.o)
      CFString in libsfml-window-s.a(cg_sf_conversion.cpp.o)
      CFString in libsfml-window-s.a(cg_sf_conversion.cpp.o)
      ...
  "__objc_empty_cache", referenced from:
      _OBJC_CLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
      _OBJC_METACLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
      _OBJC_CLASS_$_SFViewController in libsfml-window-s.a(SFViewController.mm.o)
      _OBJC_METACLASS_$_SFViewController in libsfml-window-s.a(SFViewController.mm.o)
      _OBJC_CLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
      _OBJC_METACLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
      _OBJC_METACLASS_$_SFApplication in libsfml-window-s.a(SFApplication.m.o)
      ...
  "__objc_empty_vtable", referenced from:
      _OBJC_CLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
      _OBJC_METACLASS_$_SFOpenGLView in libsfml-window-s.a(SFOpenGLView.mm.o)
      _OBJC_CLASS_$_SFViewController in libsfml-window-s.a(SFViewController.mm.o)
      _OBJC_METACLASS_$_SFViewController in libsfml-window-s.a(SFViewController.mm.o)
      _OBJC_CLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
      _OBJC_METACLASS_$_SFWindowController in libsfml-window-s.a(SFWindowController.mm.o)
      _OBJC_METACLASS_$_SFApplication in libsfml-window-s.a(SFApplication.m.o)
      ...
  "_glEnable", referenced from:
      sf::priv::GlContext::globalInit() in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::initialize() in libsfml-window-s.a(GlContext.cpp.o)
      (anonymous namespace)::getInternalContext() in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::create() in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::create(sf::ContextSettings const&, sf::priv::WindowImpl const*, unsigned int) in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::create(sf::ContextSettings const&, unsigned int, unsigned int) in libsfml-window-s.a(GlContext.cpp.o)
  "_glGetString", referenced from:
      sf::priv::GlContext::globalInit() in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::initialize() in libsfml-window-s.a(GlContext.cpp.o)
      (anonymous namespace)::getInternalContext() in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::create() in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::create(sf::ContextSettings const&, sf::priv::WindowImpl const*, unsigned int) in libsfml-window-s.a(GlContext.cpp.o)
      sf::priv::GlContext::create(sf::ContextSettings const&, unsigned int, unsigned int) in libsfml-window-s.a(GlContext.cpp.o)
  "_kCFAllocatorDefault", referenced from:
      sf::priv::HIDInputManager::copyDevicesMask(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDJoystickManager::HIDJoystickManager() in libsfml-window-s.a(HIDJoystickManager.cpp.o)
  "_kCFTypeDictionaryKeyCallBacks", referenced from:
      sf::priv::HIDInputManager::copyDevicesMask(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_kCFTypeDictionaryValueCallBacks", referenced from:
      sf::priv::HIDInputManager::copyDevicesMask(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
      sf::priv::HIDInputManager::copyDevices(unsigned int, unsigned int) in libsfml-window-s.a(HIDInputManager.mm.o)
  "_kTISPropertyUnicodeKeyLayoutData", referenced from:
      sf::priv::HIDInputManager::HIDInputManager() in libsfml-window-s.a(HIDInputManager.mm.o)
  "_objc_enumerationMutation", referenced from:
      sf::priv::getSFOpenGLViewFromSFMLWindow(sf::Window const&) in libsfml-window-s.a(InputImpl.mm.o)
  "_objc_msgSend", referenced from:
      sf::priv::getSFOpenGLViewFromSFMLWindow(sf::Window const&) in libsfml-window-s.a(InputImpl.mm.o)
      sf::priv::InputImpl::getMousePosition() in libsfml-window-s.a(InputImpl.mm.o)
      sf::priv::InputImpl::getMousePosition(sf::Window const&) in libsfml-window-s.a(InputImpl.mm.o)
      sf::priv::InputImpl::setMousePosition(sf::Vector2<int> const&, sf::Window const&) in libsfml-window-s.a(InputImpl.mm.o)
      -[SFOpenGLView initWithFrame:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView setCursorPositionToX:Y:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView frameDidChange:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      ...
  "_objc_msgSendSuper2", referenced from:
      -[SFOpenGLView initWithFrame:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView dealloc] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFViewController initWithView:] in libsfml-window-s.a(SFViewController.mm.o)
      -[SFViewController dealloc] in libsfml-window-s.a(SFViewController.mm.o)
      -[SFWindowController initWithWindow:] in libsfml-window-s.a(SFWindowController.mm.o)
      -[SFWindowController initWithMode:andStyle:] in libsfml-window-s.a(SFWindowController.mm.o)
      -[SFWindowController dealloc] in libsfml-window-s.a(SFWindowController.mm.o)
      ...
  "_objc_msgSend_fixup", referenced from:
      l_objc_msgSend_fixup_class in libsfml-window-s.a(InputImpl.mm.o)
      l_objc_msgSend_fixup_isKindOfClass_ in libsfml-window-s.a(InputImpl.mm.o)
      l_objc_msgSend_fixup_length in libsfml-window-s.a(SFOpenGLView.mm.o)
      l_objc_msgSend_fixup_class in libsfml-window-s.a(WindowImplCocoa.mm.o)
      l_objc_msgSend_fixup_isKindOfClass_ in libsfml-window-s.a(WindowImplCocoa.mm.o)
      l_objc_msgSend_fixup_alloc in libsfml-window-s.a(WindowImplCocoa.mm.o)
      l_objc_msgSend_fixup_release in libsfml-window-s.a(WindowImplCocoa.mm.o)
      ...
  "_objc_msgSend_stret", referenced from:
      -[SFOpenGLView initWithFrame:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView setCursorPositionToX:Y:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView frameDidChange:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView isMouseInside] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFOpenGLView cursorPositionFromEvent:] in libsfml-window-s.a(SFOpenGLView.mm.o)
      -[SFViewController initWithView:] in libsfml-window-s.a(SFViewController.mm.o)
      -[SFViewController size] in libsfml-window-s.a(SFViewController.mm.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[2]: *** [lib/libcsfml-window.2.0.dylib] Error 1
make[1]: *** [src/SFML/Window/CMakeFiles/csfml-window.dir/all] Error 2
make: *** [all] Error 2

I'd love some help [=

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Mac OS X Mavericks Build Issues
« Reply #1 on: November 08, 2013, 07:27:07 am »
Is it the first time that you build static SFML libraries on OS X? Or did you succeed to do so before? I say that because there was a major modification to static build recently, which is untested on OS X. If it's broken (as expected), you'll have to wait until Hiura has time to fix it (this may not happen until the end of the year).
Laurent Gomila - SFML developer

jaredonline

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Mac OS X Mavericks Build Issues
« Reply #2 on: November 08, 2013, 07:32:16 am »
This is the first time I've tried to build the static libraries on OS X. Is there anything I can do in the meantime?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Mac OS X Mavericks Build Issues
« Reply #3 on: November 08, 2013, 08:25:42 am »
Yes, you can identify the libraries / frameworks that must be linked to solve these errors.
Laurent Gomila - SFML developer

jaredonline

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Mac OS X Mavericks Build Issues
« Reply #4 on: November 08, 2013, 10:53:46 pm »
So, you'll have to forgive how much of a newb I am, but after a bunch of Googling I was able to get the libcsfml-window.dylib to link by adding the following to CMakeLists.txt

Code: [Select]
if(MACOSX)
  find_library(CORE_FOUNDATION NAMES CoreFoundation)
  find_library(APPLICATION_SERVICES NAMES ApplicationServices)
  find_library(OPEN_GL NAMES OpenGL)
  find_library(IO_KIT Names IOKit)
  find_library(CORE_SERVICES Names CoreServices)
  find_library(COCOA Names Cocoa)
  find_library(CARBON Names Carbon)
endif()

And then setting the following
Code: [Select]
CMAKE_SHARED_LINKER_FLAGS:STRING=-framework CoreFoundation -framework ApplicationServices -framework OpenGL -framework IOKit -framework CoreServices -framework Cocoa -framework Carbon

That gets libcsfml-window, libcsfml-network and libcsfml-system to link, but now it fails on graphics.

This seems extraordinarily hacky... and probably is the wrong thing to be doing?

jaredonline

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Mac OS X Mavericks Build Issues
« Reply #5 on: November 09, 2013, 03:09:59 am »
I got it to build! *exciting*

Here's what I did:

Code: [Select]
if(MACOSX)
  find_library(CORE_FOUNDATION NAMES CoreFoundation)
  find_library(CORE_AUDIO NAMES CoreAudio)
  find_library(APPLICATION_SERVICES NAMES ApplicationServices)
  find_library(OPEN_GL NAMES OpenGL)
  find_library(IO_KIT NAMES IOKit)
  find_library(CORE_SERVICES NAMES CoreServices)
  find_library(COCOA NAMES Cocoa)
  find_library(CARBON NAMES Carbon)
  find_library(FREETYPE NAMES freetype)
  find_library(SNDFILE NAMES sndfile)
endif()

Code: [Select]
-framework CoreAudio -framework OpenAL -framework CoreFoundation -framework ApplicationServices -framework OpenGL -framework IOKit -framework CoreServices -framework Cocoa -framework Carbon -L/Users/jared/src/SFML-2.0/extlibs/libs-osx/lib -lglew -ljpeg  -F/Users/jared/src/SFML-2.0/extlibs/libs-osx/Frameworks/ -framework sndfile -framework freetype