Closed push-pop closed 11 years ago
hi @push-pop, I'm actually working on this right now. Custom events are not working correctly across the board. They all create Poco Exceptions. Indeed, core event listeners (setup, update, exit, mouse, etc) seem to be working, but whenever custom listeners are added, we get exceptions. I believe this (and other threading issues) may be because poco was compiled without linking to the RPI's custom pthreads library ... thats my working theory at least. We'll see shortly!
the problem seems to be the version of poco, i've just compiled 1.4.3p1 and everything works without problem. will upload it in a moment
I also just got events working with the apt-get version of poco. @arturoc -- do you know of any differences between the 1.3 series (in the apt-get repo) and 1.4.3p1+ that we would need in oF?
Also, could you post your configure parameters for poco @arturoc? I'm curious to see how it differed from my original compile.
i didn't use anything special, just removed shared libraries, samples and tests to make compiling faster
Very strange. I did the exact same. I didn't ever try 1.4.3p1 though. I believe the current poco libs in develop-raspberrypi/linuxarmv6l is 1.4.4. And my attempt to get 1.4.5 to work yesterday didn't work either. If 1.4.3p1 is working, it's a drop in replacement. Just for reference though, the debian poco 1.3 libs do work (at least for my initial tests), so that could be an good option in the future.
On Tue, Dec 4, 2012 at 1:06 PM, arturo notifications@github.com wrote:
i didn't use anything special, just removed shared libraries, samples and tests to make compiling faster
— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/61#issuecomment-11010358.
fixed with #63
The event examples that add a custom event listener (ex: advancedEventsExample TestApp.cpp ln 13) hang in setup on ofAddListener().
I thought ofAddListener was called to set listeners for Mouse, Keyboard, etc... on the creation of the App?
Not sure then why it hangs on a custom event. Will be looking into it once I get debug builds working.