<div>Thanks Gary. I tried the following:<br></div><div><br></div><div>g++ -Wall -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -o crtsine crtsine.cpp /usr/local/src/RtAudio.cpp -lpthread -lasound -lrt -lstk -I/usr/include/stk<br><br>
</div><div>And my output is still: </div><div><br></div><div>iain@musicbox:~/audio/stk/tutorials/crtsine$ ./crtsine<br><br>Playing ... press &lt;enter&gt; to quit.<br>Segmentation fault<br><br></div><div>I&#39;m mucking about to see if I can spot what&#39;s different between  playsaw and crtsine on this system.</div>
<div><br></div><div>iain</div><br><div class="gmail_quote">On Sun, Sep 11, 2011 at 6:50 AM, 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>
You might try compiling for the ALSA API (instead of Jack) to see if you have the same problem.  I just ran both programs (rtsine and crtsine) on OS-X without any apparent problems.<br>
<br>
--gary<br>
<div><div class="h5"><br>
On 2011-09-10, at 10:23 PM, Iain Duncan wrote:<br>
<br>
&gt; I am getting a segfault when running the crtsinetutorial, wondering where to start figuring that out. As mentioned in a different email, I was able to compile and play the playsaw.cpp test from RtAudio package, so I know RtAudio is working ok.<br>

&gt;<br>
&gt; Works ok:<br>
&gt;<br>
&gt; g++ -Wall -D__UNIX_JACK__ -D__LITTLE_ENDIAN__ -o playsaw playsaw.cpp ../RtAudio.cpp -lpthread -ljack -lrt<br>
&gt;<br>
&gt; Doesn&#39;t work:<br>
&gt;<br>
&gt; iain@musicbox:~/audio/stk/tutorials/crtsine$ g++ -Wall -D__UNIX_JACK__ -D__LITTLE_ENDIAN__ -o crtsine crtsine.cpp RtAudio.cpp -lpthread -ljack -lrt -lstk -I/usr/include/stk<br>
&gt;<br>
&gt; iain@musicbox:~/audio/stk/tutorials/crtsine$ ./crtsine<br>
&gt; SSE2 detected<br>
&gt; SSE2 detected<br>
&gt; SSE2 detected<br>
&gt;<br>
&gt; Playing ... press &lt;enter&gt; to quit.<br>
&gt; Segmentation fault<br>
&gt;<br>
&gt; Thanks<br>
&gt; Iain<br>
&gt;<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>