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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Anonymouseable

Pages: [1]
1
Window / [FIXED] Segfault in sf::Window::pollEvent
« on: August 11, 2013, 09:12:34 pm »
Hi,
SFML seems to be having some trouble asking Mac OS for joystick information... I'll just leave you with this stacktrace (the window and event objects are should be valid).
Code: [Select]
#0  0x00007fff8fc90250 in objc_msgSend ()
#1  0x00000001000fce18 in typeinfo for sf::GlResource ()
#2  0x00007fff8f2a4602 in __CFRunLoopModeIsEmpty ()
#3  0x00007fff8f2c8037 in CFRunLoopRunSpecific ()
#4  0x00000001000dd934 in sf::priv::HIDJoystickManager::update (this=0x1000fdeb0) at /Users/linus/Programming/SFML/src/SFML/Window/OSX/HIDJoystickManager.cpp:127
#5  0x00000001000dd8e9 in sf::priv::HIDJoystickManager::getJoystickCount (this=0x1000fdeb0) at /Users/linus/Programming/SFML/src/SFML/Window/OSX/HIDJoystickManager.cpp:58
#6  0x00000001000ddc9e in sf::priv::JoystickImpl::isConnected (index=0) at /Users/linus/Programming/SFML/src/SFML/Window/OSX/JoystickImpl.cpp:87
#7  0x00000001000d046a in sf::priv::JoystickManager::update (this=0x1000fcf48) at /Users/linus/Programming/SFML/src/SFML/Window/JoystickManager.cpp:80
#8  0x00000001000d60c5 in sf::priv::WindowImpl::processJoystickEvents (this=0x1013104d0) at /Users/linus/Programming/SFML/src/SFML/Window/WindowImpl.cpp:148
#9  0x00000001000d5f9e in sf::priv::WindowImpl::popEvent (this=0x1013104d0, event=@0x7fff5fbff988, block=false) at /Users/linus/Programming/SFML/src/SFML/Window/WindowImpl.cpp:105
#10 0x00000001000d537c in sf::Window::pollEvent (this=0x7fff5fbffa90, event=@0x7fff5fbff988) at /Users/linus/Programming/SFML/src/SFML/Window/Window.cpp:186
#11 0x0000000100003f3b in Sim::run (this=0x7fff5fbffa30) at /Users/linus/programming/swarmers-v3/Sim.cpp:65
#12 0x0000000100002ec9 in main () at /Users/linus/programming/swarmers-v3/main.cpp:7

Thanks in advance to anyone who can help me!
I'm also taking a look at the problem but am not expecting to find out much (I'm not in the slightest experienced with Objective-C and the Mac OS APIs).

Notes:
  • SFML from git, on master (currently d077210). Also occurs with SFML 2.0 (sorry, haven't tested it with stock 2.1, but it doesn't seem all that likely that it was fixed in 2.1 only to regress again).
  • OSX 10.8.4

2
General / Role of extlibs in build
« on: July 02, 2013, 05:15:26 pm »
Hi,

I've been working on writing a homebrew formula for SFML, and am slightly perplexed as to why/how the extlibs are necessary. Why not install them separately?

Anyway, in this scenario, I see 2 options:
  • Use the extlibs (though to my knowledge homebrew doesn't provide any mechanisms or standards for installing frameworks, which would make this a sub-optimal solution)
  • To specify freetype, sndfile, GLEW and jpeg as dependencies of SFML in the formula. This would mean that if other homebrew formulae depending on these libraries are installed, they wouldn't have to be installed in double. However, it would not install the frameworks for these libraries, and I don't know how that will play along with using SFML in XCode.
Which of these would be preferable, or can anyone propose another alternative?

Thanks in advance.

EDIT:
Quote from: Homebrew website
Homebrew won’t install files outside its prefix, and you can place a Homebrew installation wherever you like.
I can't break this convention if I want the formula to get included in the main Homebrew repository, so seeing as Mac OS doesn't search /usr/local/ for frameworks (right? correct me if I'm wrong) installing frameworks from a homebrew formula isn't really a possibility/desirable functionality.

Pages: [1]
anything