[Stk] segfault running crtsine tutorial
Iain Duncan
iainduncanlists at gmail.com
Sun Sep 11 11:45:17 PDT 2011
Thanks Gary. I tried the following:
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
And my output is still:
iain at musicbox:~/audio/stk/tutorials/crtsine$ ./crtsine
Playing ... press <enter> to quit.
Segmentation fault
I'm mucking about to see if I can spot what's different between playsaw and
crtsine on this system.
iain
On Sun, Sep 11, 2011 at 6:50 AM, Gary Scavone <gary at ccrma.stanford.edu>wrote:
> Hi Iain,
>
> 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.
>
> --gary
>
> On 2011-09-10, at 10:23 PM, Iain Duncan wrote:
>
> > 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.
> >
> > Works ok:
> >
> > g++ -Wall -D__UNIX_JACK__ -D__LITTLE_ENDIAN__ -o playsaw playsaw.cpp
> ../RtAudio.cpp -lpthread -ljack -lrt
> >
> > Doesn't work:
> >
> > iain at 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
> >
> > iain at musicbox:~/audio/stk/tutorials/crtsine$ ./crtsine
> > SSE2 detected
> > SSE2 detected
> > SSE2 detected
> >
> > Playing ... press <enter> to quit.
> > Segmentation fault
> >
> > 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/20110911/0bd15fbe/attachment.html
More information about the Stk
mailing list