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

SegFault on audioOutputExample #77

Closed danzeeeman closed 11 years ago

danzeeeman commented 11 years ago

I had to modify Makefile.armv6l with the following to get anything with ofSoundStream in it to compile:

SYSTEMLIBS += -lGLESv2 -lEGL -lbcm_host -L/opt/vc/lib -lportaudio

but now I'm getting a segfault when I try playback.

If anyone has a working audioOutput repo for the pi please commit the changes and do a pull request.

danzeeeman commented 11 years ago

found my problem with the segfault helps if I install the codecs. I'm going to modify the Makefile.armv6 and commit it.

bakercp commented 11 years ago

Hey @danthemellowman I'm not sure what the Makefile.armv6l actually is -- I think it is from a very early attempt to get the pi working with the old makefile system. The new makefiles have all of the flags you mentioned. Can you outline how you got it to compile with the Makefile.armv6l?

CB

danzeeeman commented 11 years ago

I went off of this from @arturoc

https://github.com/arturoc/openFrameworks/commit/420281e2565474dbb41ffc0a7ba5ce471bd22f14

I also removed the references to portaudio and rtaudio like below

PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/rtAudio PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/portaudio

in:

openFrameworks/libs/openFrameworksCompiled/project/linuxarmv6l/configure.core.linuxarmv6l.default.make openFrameworks/libs/openFrameworksCompiled/project/linuxarmv6l/config.linuxarmv6l.default.make

arturoc commented 11 years ago

we actually need these exclusions:

PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/rtAudio PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/portaudio

the library we use is portaudio and it's used from the system now so the core headers need to be excluded

danzeeeman commented 11 years ago

Yeah I added those back in last night. I was frustrated that I just removed any references to portaudio and rtaudio until it compiled. On Dec 10, 2012 3:16 AM, "arturo" notifications@github.com wrote:

we actually need these exclusions:

PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/rtAudio PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/portaudio

the library we use is portaudio and it's used from the system now so the core headers need to be excluded

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/77#issuecomment-11184900.