Hi,<br>i just wanted to thank you all for your help. I finally managed to compile 4.2.0. Hurrah!<br><br>Pierre<br><br><div class="gmail_quote">2010/2/4 Julius Smith <span dir="ltr">&lt;<a href="mailto:jos@ccrma.stanford.edu">jos@ccrma.stanford.edu</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;">Perhaps this is a useful excerpt from<br>
<a href="https://ccrma.stanford.edu/%7Ejos/stkintro/Snags_Fixes.html" target="_blank">https://ccrma.stanford.edu/~jos/stkintro/Snags_Fixes.html</a><br>
<br>
&quot;In general, when a compilation fails due to a function [or macro]<br>
being undeclared, look at the ``man page&#39;&#39; for that function to see<br>
what header file should be included to declare it (e.g., man fclose<br>
at a shell prompt, or &lt;Esc&gt;xman&lt;enter&gt;fclose&lt;enter&gt; in Emacs). If the<br>
header file is not in a standard place (such as endian.h), you can<br>
find it using the locate command. (If that fails, try again after an<br>
updatedb command).&quot;<br>
<br>
- jos<br>
<div><div></div><div class="h5"><br>
At 09:35 AM 2/4/2010, Gary Scavone wrote:<br>
&gt;add #include &lt;limits.h&gt;<br>
&gt;<br>
&gt;--gary<br>
&gt;<br>
&gt;On 2010-02-04, at 12:21 PM, Pierre Massat wrote:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt; here&#39;s the error i get in RtAudio (trying to compile 4.2.0):<br>
&gt; &gt;<br>
&gt; &gt; RtAudio.cpp: In member function &#39;virtual bool<br>
&gt; RtApiAlsa::probeDeviceOpen(int, RtApi::StreamMode, int, int,<br>
&gt; RtAudioFormat, int*, int)&#39;:<br>
&gt; &gt; RtAudio.cpp:3990: error: &#39;INT_MAX&#39; was not declared in this scope<br>
&gt; &gt;<br>
&gt; &gt; I don&#39;t know which header i should add to make it work...<br>
&gt; &gt;<br>
&gt; &gt; I have Fedora 12, with the CCRMA rt kernel installed. As for gcc,<br>
&gt; i m assuming i have the latest version since i downloaded it only<br>
&gt; two days ago from the CCRMA repository.<br>
&gt; &gt;<br>
&gt; &gt; Pierre<br>
&gt; &gt;<br>
&gt; &gt; 2010/2/3 Stephen Sinclair &lt;<a href="mailto:sinclair@music.mcgill.ca">sinclair@music.mcgill.ca</a>&gt;<br>
&gt; &gt; On Tue, Feb 2, 2010 at 6:24 PM, Pierre Massat &lt;<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; thank you all for your replies. I still can&#39;t compile anything till the<br>
&gt; &gt; &gt; end... the thing is that i don&#39;t need the latest version, i need version<br>
&gt; &gt; &gt; 4.2.0 because some Pure Data externals based on ragamatic require it (and<br>
&gt; &gt; &gt; they won&#39;t compile with the newest STK). Since i plan on using<br>
&gt; it with flext<br>
&gt; &gt; &gt; to create my own Pd externals, i need an old version anyway.<br>
&gt; &gt; &gt; So 4.2.0 won&#39;t compile, even with all the #include lines added. Same with<br>
&gt; &gt; &gt; 4.2.1. Is there something i m missing here? I know that STK is<br>
&gt; supposed to<br>
&gt; &gt; &gt; always be an alpha release, but why is it so hard to compile?<br>
&gt; &gt; &gt; I m not posting the errors this time as there were too many (i stopped at<br>
&gt; &gt; &gt; RtAudio which caused an error that i couldn&#39;t fix).<br>
&gt; &gt; &gt; Thanks again for your help!<br>
&gt; &gt;<br>
&gt; &gt; Well, it is hard to help if you don&#39;t post the errors, but again I<br>
&gt; &gt; advise you to just look for which headers are needed for the functions<br>
&gt; &gt; that are referenced and add them to the cpp files.  (If that is the<br>
&gt; &gt; only problem..)<br>
&gt; &gt;<br>
&gt; &gt; Otherwise, by all means post your results so we can help.  Also, what<br>
&gt; &gt; OS and gcc version are you using?  I notice that in my Ubuntu 9.04<br>
&gt; &gt; installation, dpkg reports that the package for stk is at version<br>
&gt; &gt; 4.2.0, so maybe you could get some mileage out of using that<br>
&gt; &gt; pre-compiled version?<br>
&gt; &gt;<br>
&gt; &gt; Of course, it&#39;s not really expected that an old version maintained to<br>
&gt; &gt; compile in a newer system, but I&#39;m sure it can be patched to work with<br>
&gt; &gt; a bit of effort.  However I think it would be instead worth your while<br>
&gt; &gt; to get those Pd externals working with the latest version of STK.  For<br>
&gt; &gt; one thing, it includes some improvements for inlining of the tick()<br>
&gt; &gt; functions, so it would make things a bit more optimized.<br>
&gt; &gt;<br>
&gt; &gt; Steve<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Stk mailing list<br>
&gt; &gt; <a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
&gt; &gt; <a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br>
&gt;<br>
&gt;<br>
&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>
<br>
</div></div>Julius O. Smith III &lt;<a href="mailto:jos@ccrma.stanford.edu">jos@ccrma.stanford.edu</a>&gt;<br>
Prof. of Music and Assoc. Prof. (by courtesy) of Electrical Engineering<br>
CCRMA, Stanford University<br>
<a href="http://ccrma.stanford.edu/%7Ejos/" target="_blank">http://ccrma.stanford.edu/~jos/</a><br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Stk mailing list<br>
<a 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>
</div></div></blockquote></div><br>