Hi Matthew,<br><br><div class="gmail_quote">2013/1/25 Matthew Kettlewell <span dir="ltr">&lt;<a href="mailto:matt@kettlewell.net" target="_blank">matt@kettlewell.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hello - </div><div><br></div><div>I&#39;m trying to compile / link STK for the first time on a Fedora LXDE 17 machine.  There is an RPM of it, so I&#39;m using that for now, but would like to be able to compile new versions, debug options etc as well.</div>

<div><br></div><div>It appears that pthread isn&#39;t being linked into the demo projects, but I&#39;m not a configure guru to figure out where it needs to be checked/added... </div><div><br></div><div>
In fact, it appears that pthread isn&#39;t even being checked for when I run ./configure (no arguments )</div><div><br></div></div></blockquote><div><br>I can confirm this bug on Fedora 17. The problem as you mention, is that configure is not checking for/adding pthread to the LIBS variable. This used to be fine, since pthread is already required by other libraries used by Stk. However, it&#39;s now required to explicitly link against it. i I&#39;ve attached a patch to <a href="http://configure.ac">configure.ac</a>. You&#39;ll have to regenerate configure with autoreconf for it to work:<br>
<br>patch -input=configure.patch<br>./configure<br>make<br>cd projects/demo<br>make libdemo<br><br>Good luck!<br><br>Best,<br>Tristan<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div></div><div>And here&#39;s the result of the link error  that I&#39;m seeing.</div><div><br></div>
<div><div>cd projects/demo &amp;&amp; make libdemo</div><div>make[1]: Entering directory `/home/matt/Downloads/STK-4.4.4/stk-4.4.4/projects/demo&#39;</div><div>g++  -O3 -Wall -I../../include -I../../include/../src/include -DHAVE_GETTIMEOFDAY -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -DRAWWAVE_PATH=\&quot;../../rawwaves/\&quot; -o demo utilities.cpp demo.cpp -L../../src -lstk -lasound -lm </div>

<div>/usr/bin/ld: ../../src/libstk.a(RtAudio.o): undefined reference to symbol &#39;pthread_create@@GLIBC_2.1&#39;</div><div>/usr/bin/ld: note: &#39;pthread_create@@GLIBC_2.1&#39; is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line</div>

<div>/lib/libpthread.so.0: could not read symbols: Invalid operation</div><div>collect2: error: ld returned 1 exit status</div><div>make[1]: *** [libdemo] Error 1</div><div>make[1]: Leaving directory `/home/matt/Downloads/STK-4.4.4/stk-4.4.4/projects/demo&#39;</div>

<div>make: *** [all] Error 2</div></div><div><br></div><div><br></div><div>Any thoughts / help are welcome.<br><br>Thanks</div><div><br></div><div>Matt</div><div><br></div></div>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Tristan Matthews<br>web: <a href="http://tristanswork.blogspot.com">http://tristanswork.blogspot.com</a><br>