[Stk] can't compile the rtsine tutorial on linux/jack
Iain Duncan
iainduncanlists at gmail.com
Sat Sep 10 19:13:23 PDT 2011
Thanks for your help Gary. Changing the compilation command to:
g++ -Wall -D__UNIX_JACK__ -D__LITTLE_ENDIAN__ -o rtsine RtAudio.cpp
rtsine.cpp -lpthread -ljack -lrt -lstk -L/usr/lib/stk -I/usr/include/stk
it now compiles ok. Unfortunately, running it get:
iain at musicbox:~/audio/stk/tutorials/rtsine$ ./rtsine
Bus error
Any idea how to debug that? Jack is running, I checked that! ;-)
BTW, how is the tutorial page source code handled? I would be happy to add
my findings/examples to the bottom of them so that others trying to do this
on their own with Linux and Jack can use it.
thanks
Iain
On Sat, Sep 10, 2011 at 6:45 PM, Gary Scavone <gary at ccrma.stanford.edu>wrote:
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/pipermail/stk/attachments/20110910/82fa742a/attachment.html
More information about the Stk
mailing list