[Stk] can't compile the rtsine tutorial on linux/jack

Gary Scavone gary at ccrma.Stanford.EDU
Sat Sep 10 18:45:30 PDT 2011


Hi Iain,

The preprocessor definition should be __UNIX_JACK__ (rather than __LINUX_JACK__).

--gary

On 2011-09-10, at 9:06 PM, Iain Duncan wrote:

> Hi folks, I'm trying to work through the tutorials, and can't get the rtsine one to compile on linux. I have successfully compiled the RtAudio package separately and been able to run the tests, and have been able to compile the tutorials up to rtsine, but on this one I get the following:
> 
> g++ -Wall -D__LINUX_JACK__ -D__LITTLE_ENDIAN__ -o rtsine RtAudio.cpp rtsine.cpp -lpthread -ljack -lrt -lstk -L/usr/lib/stk -I/usr/include/stk
> 
> In file included from /usr/include/stk/RtWvOut.h:6,
> from rtsine.cpp:13:
> /usr/include/stk/Mutex.h:67: error: ‘MUTEX’ does not name a type
> /usr/include/stk/Mutex.h:68: error: ‘CONDITION’ does not name a type
> 
> Anyone have any idea what might be wrong there? I built STK with the --with-jack flag, and as have compiled other projects using jack and pthread so I'm lost! The flags above are the same ones I'm using for the other stk tutorials, so I know the stk files are being found ok.
> 
> thanks
> Iain
> _______________________________________________
> Stk mailing list
> Stk at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk




More information about the Stk mailing list