<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Thanks Gary, it works with -framework CoreAudio.<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2">----- Forwarded Message ----<br><b><span style="font-weight: bold;">From:</span></b> Gary Scavone <gary@ccrma.stanford.edu><br><b><span style="font-weight: bold;">To:</span></b> Atunu Name <atunu64@yahoo.ca><br><b><span style="font-weight: bold;">Sent:</span></b> Saturday, September 19, 2009 1:15:21 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Stk] Fw: compilation error<br></font><br>Hi Atuna,<br><br>I would expect your statement should be something like:<br><br>g++ -Wall -D__LITTLE_ENDIAN__ -I
/Users/atunu/Desktop/audio_tool/stk-4.4.1/include/ -o test test.cpp -L/Users/atunu/Desktop/audio_tool/stk-4.4.1/src/ -lstk<br><br>--gary<br><br>On 19-Sep-09, at 2:26 AM, Atunu Name wrote:<br><br>> Hello Gary,<br>> thank you for your response.<br>> I compiled the software according to the instructions. I can use play or record or others in the project/ examples/ folder.<br>> <br>> I tried o follow the link below:<br>> <a href="http://ccrma.stanford.edu/software/stk/compile.html" target="_blank">http://ccrma.stanford.edu/software/stk/compile.html</a><br>> The message are follows:<br>> g++ -Wall -D__LITTLE_ENDIAN__ -I /Users/atunu/Desktop/audio_tool/stk-4.4.1/include/stk -o test test.cpp -L /Users/atunu/Desktop/audio_tool/stk-4.4.1/src/libstk.a<br>> <br>> test.cpp:3:22: error: FileWvIn.h: No such file or directory<br>> test.cpp:4:21: error: RtWvOut.h: No such file or directory<br>> test.cpp:5: error: expected
namespace-name before ‘;’ token<br>> test.cpp:5: error: ‘<type error>’ is not a namespace<br>> test.cpp: In function ‘int main()’:<br>> test.cpp:10: error: ‘Stk’ has not been declared<br>> test.cpp:10: error: ‘setSampleRate’ was not declared in this scope<br>> test.cpp:13: error: ‘WvIn’ was not declared in this scope<br>> test.cpp:13: error: ‘input’ was not declared in this scope<br>> test.cpp:15: error: ‘WvOut’ was not declared in this scope<br>> test.cpp:15: error: ‘output’ was not declared in this scope<br>> test.cpp:19: error: expected type-specifier before ‘FileWvIn’<br>> test.cpp:19: error: expected `;' before ‘FileWvIn’<br>> test.cpp:23: error: expected type-specifier before ‘RtWvOut’<br>> test.cpp:23: error: expected `;' before ‘RtWvOut’<br>> test.cpp:25: error: expected type-specifier before ‘StkError’<br>> test.cpp:25: error: expected `)'
before ‘&’ token<br>> test.cpp:25: error: expected `{' before ‘&’ token<br>> test.cpp:25: error: expected primary-expression before ‘)’ token<br>> test.cpp:25: error: expected `;' before ‘)’ token<br>> test.cpp:47: error: expected type-specifier before ‘StkError’<br>> test.cpp:47: error: expected `)' before ‘&’ token<br>> test.cpp:47: error: expected `{' before ‘&’ token<br>> test.cpp:47: error: expected primary-expression before ‘)’ token<br>> test.cpp:47: error: expected `;' before ‘)’ token<br>> test.cpp:52: error: type ‘<type error>’ argument given to ‘delete’, expected pointer<br>> test.cpp:53: error: type ‘<type error>’ argument given to ‘delete’, expected pointer<br>> test.cpp:56: error: expected `}' at end of input<br>> test.cpp:56: error: expected `}' at end of input<br>> <br>> I tried with<br>> /usr/include/pthread or
-lpthread<br>> <br>> But still I could not compile the code. Is there anything that I can do to compile the code different from the source software? I could not compile test.cpp in the project/example folder too.<br>> Thank you.<br>> ----- Forwarded Message ----<br>> From: Gary Scavone <<a ymailto="mailto:gary@ccrma.stanford.edu" href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a>><br>> To: Atunu Name <<a ymailto="mailto:atunu64@yahoo.ca" href="mailto:atunu64@yahoo.ca">atunu64@yahoo.ca</a>><br>> Cc: <a ymailto="mailto:stk@ccrma.stanford.edu" href="mailto:stk@ccrma.stanford.edu">stk@ccrma.stanford.edu</a><br>> Sent: Thursday, September 17, 2009 5:45:30 PM<br>> Subject: Re: [Stk] compilation error<br>> <br>> Hi Atunu,<br>> <br>> I think you need the pthread library for the MUTEX stuff. In your second attempt, there appears to either be a badly formatted command line and/or the compiler
can't find the STK library. Did you run "make" in the src directory to compile the STK library?<br>> <br>> --gary<br>> <br>> On 16-Sep-09, at 12:05 PM, Atunu Name wrote:<br>> <br>> > Hello,<br>> ><br>> > I am trying to compile an example, test.cpp in a separate file. I have some errors:<br>> > g++ -o test -I../../audio_tool/stk-4.4.1/include test.cpp -L ../../audio_tool/stk-4.4.1/src/ -lstk<br>> > ../../audio_tool/stk-4.4.1/include/Mutex.h:67: error: ‘MUTEX’ does not name a type<br>> > ../../audio_tool/stk-4.4.1/include/Mutex.h:68: error: ‘CONDITION’ does not name a type<br>> ><br>> > I also tried the following:<br>> > g++ -O3 -Wall -o test -I ../../audio_tool/stk-4.4.1/include -DHAVE_GETTIMEOFDAY -D__MACOSX_CORE__-D__LITTLE_ENDIAN__ test.cpp -L ../../audio_tool/stk-4.4.1/src/ -lstk -lpthread -framework
CoreAudio<br>> > <command line>:1:16: warning: missing whitespace after the macro name<br>> > ld: library not found for -lstk<br>> > collect2: ld returned 1 exit status<br>> > My stk-4.4.1 is on the desktop, and I am trying to use the test.cpp to make some changes according to my need in another folder directory on my desktop.<br>> > I played around this but still errors. Can anybody help me with an example, please.<br>> > Thank you.<br>> ><br>> ><br>> ><br>> ><br>> > Yahoo! Canada Toolbar : Search from anywhere on the web and bookmark your favourite sites. Download it now!<br>> ><br>> > _______________________________________________<br>> > Stk mailing list<br>> > <a ymailto="mailto:Stk@ccrma.stanford.edu" href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>> > <a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk"
target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br>> <br>> <br>> Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free!_______________________________________________<br>> Stk mailing list<br>> <a ymailto="mailto:Stk@ccrma.stanford.edu" href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>> <a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br><br></div></div></div><br>
<p class="MsoNormal"> </p>
<tbody><tr>
<td style="padding: 0.75pt;">
<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr align="center" size="1" width="100%">
</span></font></div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><img id="_x0000_i1026" src="http://us.i1.yimg.com/us.yimg.com/i/ca/iotg_search.jpg" align="absbottom" border="0" height="25" hspace="4" width="25"><a href="http://ca.toolbar.yahoo.com/" target="_new"><b><span style="font-weight: bold;" lang="NO-BOK">Yahoo!
Canada Toolbar :</span></b><span lang="NO-BOK"> Search from anywhere on
the web and bookmark your favourite sites. Download it now! </span></a>
</span></font><span lang="NO-BOK"><o:p></o:p></span></p></body></html>