[Stk] STK and Pure data

Stephen Sinclair sinclair at music.mcgill.ca
Tue Feb 2 17:41:40 PST 2010


Ah, ok, thanks.  I compiled it without errors before sending that
email, but I'm still using Ubuntu 9.04, so it's possible you got
different results if you're using a newer/different system.

In any case ,I'll add that fix to my repo anyways.

cheers,
Steve

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



More information about the Stk mailing list