Hi,<br>thank you all for your replies. I still can&#39;t compile anything till the end... the thing is that i don&#39;t need the latest version, i need version 4.2.0 because some Pure Data externals based on ragamatic require it (and they won&#39;t compile with the newest STK). Since i plan on using it with flext to create my own Pd externals, i need an old version anyway.<br>
So 4.2.0 won&#39;t compile, even with all the #include lines added. Same with 4.2.1. Is there something i m missing here? I know that STK is supposed to always be an alpha release, but why is it so hard to compile? <br>I m not posting the errors this time as there were too many (i stopped at RtAudio which caused an error that i couldn&#39;t fix). <br>
Thanks again for your help!<br><br>Pierre<br><br><div class="gmail_quote">2010/2/2 Nikos Chantziaras <span dir="ltr">&lt;<a href="mailto:nikos.chantziaras@gmail.com">nikos.chantziaras@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for looking into it :)<br>
<br>
The patch you attached fixes most errors, but there are two more &quot;#include &lt;cstdio&gt;&quot; that are needed due to fseek(), fclose() and friends: one in src/FileRead.cpp and one in src/FireWrite.cpp. After that, building in all project directories and in src succeeds without build errors.<div>
<div></div><div class="h5"><br>
<br>
<br>
On 02/02/2010 09:34 PM, Stephen Sinclair wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You also need to<br>
<br>
#include&lt;cstring&gt;<br>
<br>
In general, any time this happens on standard-ish functions, grep for<br>
the function in /usr/include/* and you&#39;ll probably find it.<br>
<br>
I should mention, since I haven&#39;t mentioned it on this list before,<br>
that I have a git repository which is forked off of the STK release<br>
tarballs that fixes a few of these issues.. basically I&#39;m just using<br>
it to track any small changes I occasionally make to STK.  (Which is<br>
not many at all.)  But these missing headers happens to be one of<br>
them.  You can find it at<br>
<br>
<a href="http://github.com/radarsat1/stk" target="_blank">http://github.com/radarsat1/stk</a><br>
<br>
Incidentally, github seems to be down temporarily.. (&quot;Repository under<br>
migration&quot;)  so in the meantime, I&#39;ve attached a patch on the 4.4.1<br>
tarball release that adds my changes. Apply it in the stk-4.4.1 folder<br>
with &quot;patch -p1&quot;.<br>
<br>
Steve<br>
<br>
<br>
On Tue, Feb 2, 2010 at 11:24 AM, Pierre Massat&lt;<a href="mailto:pimassat@gmail.com" target="_blank">pimassat@gmail.com</a>&gt;  wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
I m sorry to bother you again with my compiling issue. I have tried adding<br>
#include&lt;stdio.h&gt;  to Stk.h, as well as<br>
#include&lt;cstdio&gt;<br>
using namespace std;<br>
to WvIn.h, to no avail. Now i get these errors with WvIn.h :<br>
<br>
WvIn.cpp: In member function ‘void WvIn::openFile(std::string, bool, bool)’:<br>
WvIn.cpp:111: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp: In member function ‘bool WvIn::getWavInfo(const char*)’:<br>
WvIn.cpp:204: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp:277: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp: In member function ‘bool WvIn::getAifInfo(const char*)’:<br>
WvIn.cpp:388: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp:393: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp:463: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp:476: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp: In member function ‘bool WvIn::getMatInfo(const char*)’:<br>
WvIn.cpp:509: error: ‘strstr’ was not declared in this scope<br>
WvIn.cpp:521: error: ‘strncmp’ was not declared in this scope<br>
Any idea??<br>
<br>
Pierre<br>
<br>
2010/2/2 Karl Nordstrom&lt;<a href="mailto:northstream@gmail.com" target="_blank">northstream@gmail.com</a>&gt;<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Whenever I build Stk, I have to fix it too.<br>
<br>
Karl<br>
<br>
On Mon, Feb 1, 2010 at 9:42 PM, Nikos Chantziaras<br>
&lt;<a href="mailto:nikos.chantziaras@gmail.com" target="_blank">nikos.chantziaras@gmail.com</a>&gt;  wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I posted about this bug back in October along with some patches. Any<br>
plans to actually fix this?  It seems kinda backwards to require the<br>
user to fix it :P<br>
<br>
<a href="http://ccrma-mail.stanford.edu/pipermail/stk/2009-October/000645.html" target="_blank">http://ccrma-mail.stanford.edu/pipermail/stk/2009-October/000645.html</a><br>
<br>
On 02/02/2010 03:40 AM, Gary Scavone wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Pierre,<br>
<br>
You probably need to add #include&lt;stdio.h&gt;    to Stk.h.<br>
<br>
Regards,<br>
<br>
--gary<br>
<br>
On 2010-02-01, at 6:25 PM, Pierre Massat wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
I am now trying to compile STK 4.2.0. The configure part went fine,<br>
but i can&#39;t compile the library from within src. I get a bunch of errors<br>
when i get to WvIn.cpp, which i have pasted below. I get the same kind of<br>
errors whenever i try to compile the demo project. Do you know how i could<br>
fix that?<br>
<br>
Regards,<br>
<br>
Pierre<br>
<br>
WvIn.cpp: In destructor ‘virtual WvIn::~WvIn()’:<br>
WvIn.cpp:64: error: ‘fclose’ was not declared in this scope<br>
WvIn.cpp: In member function ‘void WvIn::closeFile()’:<br>
WvIn.cpp:88: error: ‘fclose’ was not declared in this scope<br>
WvIn.cpp: In member function ‘void WvIn::openFile(std::string, bool,<br>
bool)’:<br>
WvIn.cpp:97: error: ‘fopen’ was not declared in this scope<br>
WvIn.cpp:110: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:111: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp:120: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:121: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp: In member function ‘bool WvIn::getWavInfo(const char*)’:<br>
WvIn.cpp:203: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:204: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp:205: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:209: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:210: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:215: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:216: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:228: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:236: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:247: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:248: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:272: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:275: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:277: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp:278: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:282: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:283: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:288: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:299: error: ‘ftell’ was not declared in this scope<br>
WvIn.cpp: In member function ‘bool WvIn::getSndInfo(const char*)’:<br>
WvIn.cpp:316: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:317: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:333: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:344: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:350: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:351: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:357: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp: In member function ‘bool WvIn::getAifInfo(const char*)’:<br>
WvIn.cpp:386: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:387: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:388: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp:392: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:393: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp:394: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:398: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:399: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:404: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:405: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:413: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:425: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:437: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:462: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:463: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp:472: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:475: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:476: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp:477: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:481: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:482: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:486: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:488: error: ‘ftell’ was not declared in this scope<br>
WvIn.cpp: In member function ‘bool WvIn::getMatInfo(const char*)’:<br>
WvIn.cpp:505: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:506: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:509: error: ‘strstr’ was not declared in this scope<br>
WvIn.cpp:518: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:519: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:521: error: ‘strncmp’ was not declared in this scope<br>
WvIn.cpp:532: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:542: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:543: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:546: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:549: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:552: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:554: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:568: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:569: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:574: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:594: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:595: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:598: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:599: error: ‘ftell’ was not declared in this scope<br>
WvIn.cpp: In member function ‘virtual void WvIn::readData(long<br>
unsigned int)’:<br>
WvIn.cpp:642: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:643: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:654: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:655: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:666: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:667: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:678: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:679: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:690: error: ‘fseek’ was not declared in this scope<br>
WvIn.cpp:691: error: ‘fread’ was not declared in this scope<br>
WvIn.cpp:703: error: ‘fclose’ was not declared in this scope<br>
<br>
<br>
2010/2/1 Pierre Massat&lt;<a href="mailto:pimassat@gmail.com" target="_blank">pimassat@gmail.com</a>&gt;<br>
Hi Gary,<br>
Thank you very much for your quick reply!<br>
Best regards,<br>
<br>
Pierre<br>
<br>
2010/1/29 Gary Scavone&lt;<a href="mailto:gary@ccrma.stanford.edu" target="_blank">gary@ccrma.stanford.edu</a>&gt;<br>
<br>
Hi Pierre,<br>
<br>
The old source for version 3.2 is at:<br>
<br>
- <a href="http://ccrma.stanford.edu/software/stk/release/stk3.2.tar.gz" target="_blank">http://ccrma.stanford.edu/software/stk/release/stk3.2.tar.gz</a><br>
<br>
Regards,<br>
<br>
--gary<br>
<br>
On 2010-01-27, at 4:56 PM, Pierre Massat wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi everyone,<br>
I recently sent a message to the list asking for some help with the<br>
tutorial entitled &quot;Embeding STK instruments in Pd&quot;. From the replies i got<br>
from Thomas Grill (on the flext-list) it seems like a lot of things have<br>
changed in both Flext and the STK library since the tutorial was written.<br>
Does anybody know if one can still hope for an updated version of the<br>
tutorial and its examples? I get the feeling that a few years back things<br>
were a little easier for Pd users to have access to STK instruments (the<br>
STK-based externals by Yves Godon were working, and, i m assuming, so was<br>
the tutorial example). Do you at least know where i could get an old source<br>
package of STK 3.2, so that i could get Yves Degodon&#39;s externals to compile?<br>
I ve found a post in the archives with a link to a repository with older<br>
versions of STK, but it won&#39;t work (i get a &quot;403 Forbidden&quot; error message).<br>
I have not yet lost all hope, but i am close.<br>
<br>
Pierre<br>
</blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote>
-- <br>
</div></div></blockquote></div><br>