openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

Fixes to enable building on Linux (openSUSE LEAP)

Open highperformancecoder opened this issue 9 years ago • 3 comments

highperformancecoder avatar Jun 09 '16 01:06 highperformancecoder

where is that macro usually defined? will it allow to use pulse in other distibutions?

arturoc avatar Jun 09 '16 10:06 arturoc

In answer to your question, the macro is used within the RtAudio.h header, but seems to be an internal compilation flag of the RtAudio library!!

Also, unfortunately, the version information is a string, so cannot be used for excluding problematic enum labels. Damn people for not taking API evolution seriously!

Short of dumping the entire RtAudio 4.1.2 source code into the openFrameworks repository and building that from scratch on Linux systems, I'm not sure what else to do, as the API doesn't provide ways of selecting valid feature sets.

highperformancecoder avatar Jun 09 '16 23:06 highperformancecoder

I'm thinking the answer is to build a small utility c++ program that includes RtAudio.h with __LINUX_PULSE__ defined. If it succeeds, we know we can define that macro in the openFrameworks CFLAGS. This is a strategy often taken in configure scripts.

highperformancecoder avatar Jun 11 '16 02:06 highperformancecoder