openFrameworks-RaspberryPi / openFrameworks

This repo has migrated into the openFramworks core! Please go to http://github.com/openFrameworks/openFrameworks for the latest!
http://github.com/openFrameworks/openFrameworks
Other
104 stars 11 forks source link

ofAddListener() Hangs on eventExamples #61

Closed push-pop closed 11 years ago

push-pop commented 11 years ago

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.

bakercp commented 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!

arturoc commented 11 years ago

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

bakercp commented 11 years ago

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?

bakercp commented 11 years ago

Also, could you post your configure parameters for poco @arturoc? I'm curious to see how it differed from my original compile.

arturoc commented 11 years ago

i didn't use anything special, just removed shared libraries, samples and tests to make compiling faster

bakercp commented 11 years ago

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.


http://christopherbaker.net

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.

bakercp commented 11 years ago

fixed with #63