<div>Thanks for your help Gary. Changing the compilation command to:<br></div><div><br></div><div>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</div>
<div><br></div><div>it now compiles ok. Unfortunately, running it get:</div><div><br></div><div>iain@musicbox:~/audio/stk/tutorials/rtsine$ ./rtsine<br>Bus error<br><br>Any idea how to debug that? Jack is running, I checked that! ;-)<br>
</div><div><br></div><div>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.</div>
<div><br></div><div>thanks</div><div>Iain</div><br><div class="gmail_quote">On Sat, Sep 10, 2011 at 6:45 PM, Gary Scavone <span dir="ltr">&lt;<a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Iain,<br>
<br>
The preprocessor definition should be __UNIX_JACK__ (rather than __LINUX_JACK__).<br>
<br>
--gary<br>
<div><div class="h5"><br>
On 2011-09-10, at 9:06 PM, Iain Duncan wrote:<br>
<br>
&gt; Hi folks, I&#39;m trying to work through the tutorials, and can&#39;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:<br>

&gt;<br>
&gt; 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<br>
&gt;<br>
&gt; In file included from /usr/include/stk/RtWvOut.h:6,<br>
&gt; from rtsine.cpp:13:<br>
&gt; /usr/include/stk/Mutex.h:67: error: ‘MUTEX’ does not name a type<br>
&gt; /usr/include/stk/Mutex.h:68: error: ‘CONDITION’ does not name a type<br>
&gt;<br>
&gt; 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&#39;m lost! The flags above are the same ones I&#39;m using for the other stk tutorials, so I know the stk files are being found ok.<br>

&gt;<br>
&gt; thanks<br>
&gt; Iain<br>
</div></div>&gt; _______________________________________________<br>
&gt; Stk mailing list<br>
&gt; <a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
&gt; <a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br>
<br>
</blockquote></div><br>