Cool, it worked!<br><br>(with lucid amd64, i added CFLAGS=-fPIC CXXFLAGS=-fPIC LDFLAGS=-fPIC  for the ./configure options to get it.)<br><br>thank you very much!<br><br>Stephane<br><br><div class="gmail_quote">On Sat, Aug 28, 2010 at 12:56 AM, Stephen Sinclair <span dir="ltr">&lt;<a href="mailto:sinclair@music.mcgill.ca">sinclair@music.mcgill.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Just to test this, I downloaded the stk2pd source and edited the file<br>
&quot;stk2pdTemplate&quot;, inserting &quot;using namespace stk;&quot; after &quot;#include<br>
&quot;xxx.h&quot;.  (Line 18.)<br>
<br>
Amazingly, everything compiled!  I didn&#39;t test them all, but Plucked~<br>
seemed to work fine.<br>
<br>
Very happy, I didn&#39;t even know about this stk2pd thing.<br>
<br>
Steve<br>
<div class="im"><br>
On Fri, Aug 27, 2010 at 6:33 PM, Gary Scavone &lt;<a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a>&gt; wrote:<br>
&gt; Hi Stephane,<br>
&gt;<br>
&gt; I don&#39;t support that STK &quot;distribution&quot; ... it looks to be pretty old.  But the error messages appear to be related to the Stk namespace.  Maybe there is a flag you need to provide to the compiler to support namespaces?<br>

&gt;<br>
&gt; --gary<br>
&gt;<br>
&gt; On 2010-08-27, at 7:18 AM, Stephane Nguyen wrote:<br>
&gt;<br>
</div><div><div></div><div class="h5">&gt;&gt; Hi all!<br>
&gt;&gt;<br>
&gt;&gt; I saw the message from Pierre Massat in the archives from june, I just<br>
&gt;&gt; got the same problem with the clarinet build process from the tutorial<br>
&gt;&gt; &quot;Embeding STK instruments in Pd&quot; , it seems there is some trouble<br>
&gt;&gt; with stk in the build process.<br>
&gt;&gt;<br>
&gt;&gt; (my OS is ubuntu lucid 64)<br>
&gt;&gt;<br>
&gt;&gt; and from the procedures of this tuto,here is what i get :<br>
&gt;&gt;<br>
&gt;&gt; steph@zik-station:~/Bureau/stk_test$ make<br>
&gt;&gt; g++ -c -O3 -march=core2 -DPD -I/home/steph/auto-build/pd-extended/pd/src -I/usr/include/stk -I/usr/local/include/flext clarinet.cpp -o pd-linux/clarinet.o<br>
&gt;&gt; clarinet.cpp:55: error: ISO C++ forbids declaration of ‘Instrmnt’ with no type<br>
&gt;&gt; clarinet.cpp:55: error: expected ‘;’ before ‘*’ token<br>
&gt;&gt; clarinet.cpp:56: error: ISO C++ forbids declaration of ‘Effect’ with no type<br>
&gt;&gt; clarinet.cpp:56: error: expected ‘;’ before ‘*’ token<br>
&gt;&gt; clarinet.cpp:57: error: ‘BiQuad’ does not name a type<br>
&gt;&gt; clarinet.cpp: In constructor ‘clarinet::clarinet(float)’:<br>
&gt;&gt; clarinet.cpp:88: error: ‘inst’ was not declared in this scope<br>
&gt;&gt; clarinet.cpp:89: error: ‘effect’ was not declared in this scope<br>
&gt;&gt; clarinet.cpp:92: error: ‘filter’ was not declared in this scope<br>
&gt;&gt; clarinet.cpp: In member function ‘void clarinet::setFreq(float)’:<br>
&gt;&gt; clarinet.cpp:112: error: ‘inst’ was not declared in this scope<br>
&gt;&gt; clarinet.cpp: In member function ‘void clarinet::setVolume(float)’:<br>
&gt;&gt; clarinet.cpp:119: error: ‘inst’ was not declared in this scope<br>
&gt;&gt; clarinet.cpp: In member function ‘virtual bool clarinet::NewObjs()’:<br>
&gt;&gt; clarinet.cpp:130: error: ‘inst’ was not declared in this scope<br>
&gt;&gt; clarinet.cpp:130: error: expected type-specifier before ‘Clarinet’<br>
&gt;&gt; clarinet.cpp:130: error: expected ‘;’ before ‘Clarinet’<br>
&gt;&gt; clarinet.cpp:135: error: expected type-specifier before ‘StkError’<br>
&gt;&gt; clarinet.cpp:135: error: expected ‘)’ before ‘&amp;’ token<br>
&gt;&gt; clarinet.cpp:135: error: expected ‘{’ before ‘&amp;’ token<br>
&gt;&gt; clarinet.cpp:135: error: expected primary-expression before ‘)’ token<br>
&gt;&gt; clarinet.cpp:135: error: expected ‘;’ before ‘)’ token<br>
&gt;&gt; clarinet.cpp: In member function ‘virtual void clarinet::ProcessObjs(int)’:<br>
&gt;&gt; clarinet.cpp:157: error: ‘inst’ was not declared in this scope<br>
&gt;&gt; clarinet.cpp: In member function ‘virtual void clarinet::m_signal(int, float* const*, float* const*)’:<br>
&gt;&gt; clarinet.cpp:170: error: ‘inst’ was not declared in this scope<br>
&gt;&gt; make: *** [pd-linux/clarinet.o] Erreur 1<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Then, just after this , I decided to<br>
&gt;&gt; try stk2pd from here :<br>
&gt;&gt;<br>
&gt;&gt; <a href="https://ccrma.stanford.edu/wiki/Stk2pd" target="_blank">https://ccrma.stanford.edu/wiki/Stk2pd</a><br>
&gt;&gt;<br>
&gt;&gt; (on this page ,the binaries files in the file &quot;stk2pd-externes-linux-07272007.tar.gz&quot;<br>
&gt;&gt; are still working with PD-extended 0.42.5 under ubunutu lucid 32bits with stk 4.4.2 on my<br>
&gt;&gt; netbook)<br>
&gt;&gt;<br>
&gt;&gt; At first,autoconf didn&#39;t want to write a configure file :<br>
&gt;&gt;<br>
&gt;&gt; steph@zik-station:~/src/stk2pd$ autoconf<br>
&gt;&gt; <a href="http://configure.ac:130" target="_blank">configure.ac:130</a>: error: AC_SUBST: `pd_suffix &#39; is not a valid shell variable name<br>
&gt;&gt;<br>
&gt;&gt; Removing the spaces near the parentheses in the <a href="http://configure.ac" target="_blank">configure.ac</a> (line 130 to 137)resolved the<br>
&gt;&gt; problem. (^^)<br>
&gt;&gt;<br>
&gt;&gt; Then :<br>
&gt;&gt;<br>
&gt;&gt; steph@zik-station:~/src/stk2pd$ ./configure --with-pd-dir=/home/steph/auto-build/pd-extended/pd/src --with-stk-dir=/home/steph/src/stk-4.4.2/<br>
&gt;&gt; checking build system type... x86_64-unknown-linux-gnu<br>
&gt;&gt; checking host system type... x86_64-unknown-linux-gnu<br>
&gt;&gt; checking for gcc... gcc<br>
&gt;&gt; checking whether the C compiler works... yes<br>
&gt;&gt; checking for C compiler default output file name... a.out<br>
&gt;&gt; checking for suffix of executables...<br>
&gt;&gt; checking whether we are cross compiling... no<br>
&gt;&gt; checking for suffix of object files... o<br>
&gt;&gt; checking whether we are using the GNU C compiler... yes<br>
&gt;&gt; checking whether gcc accepts -g... yes<br>
&gt;&gt; checking for gcc option to accept ISO C89... none needed<br>
&gt;&gt; checking whether ln -s works... yes<br>
&gt;&gt; checking for g++... g++<br>
&gt;&gt; checking whether we are using the GNU C++ compiler... yes<br>
&gt;&gt; checking whether g++ accepts -g... yes<br>
&gt;&gt; checking whether we are using the GNU C++ compiler... (cached) yes<br>
&gt;&gt; checking whether g++ accepts -g... (cached) yes<br>
&gt;&gt; cflags -g -O2<br>
&gt;&gt; ldflags<br>
&gt;&gt; checking how to run the C preprocessor... gcc -E<br>
&gt;&gt; checking for grep that handles long lines and -e... /bin/grep<br>
&gt;&gt; checking for egrep... /bin/grep -E<br>
&gt;&gt; checking for ANSI C header files... yes<br>
&gt;&gt; checking for sys/types.h... yes<br>
&gt;&gt; checking for sys/stat.h... yes<br>
&gt;&gt; checking for stdlib.h... yes<br>
&gt;&gt; checking for string.h... yes<br>
&gt;&gt; checking for memory.h... yes<br>
&gt;&gt; checking for strings.h... yes<br>
&gt;&gt; checking for inttypes.h... yes<br>
&gt;&gt; checking for stdint.h... yes<br>
&gt;&gt; checking for unistd.h... yes<br>
&gt;&gt; checking fcntl.h usability... yes<br>
&gt;&gt; checking fcntl.h presence... yes<br>
&gt;&gt; checking for fcntl.h... yes<br>
&gt;&gt; checking sys/ioctl.h usability... yes<br>
&gt;&gt; checking sys/ioctl.h presence... yes<br>
&gt;&gt; checking for sys/ioctl.h... yes<br>
&gt;&gt; checking sys/time.h usability... yes<br>
&gt;&gt; checking sys/time.h presence... yes<br>
&gt;&gt; checking for sys/time.h... yes<br>
&gt;&gt; checking termio.h usability... yes<br>
&gt;&gt; checking termio.h presence... yes<br>
&gt;&gt; checking for termio.h... yes<br>
&gt;&gt; checking for unistd.h... (cached) yes<br>
&gt;&gt; checking for an ANSI C-conforming const... yes<br>
&gt;&gt; checking for size_t... yes<br>
&gt;&gt; checking whether time.h and sys/time.h may both be included... yes<br>
&gt;&gt; checking whether byte ordering is bigendian... no<br>
&gt;&gt;<br>
&gt;&gt; pd dir is /home/steph/auto-build/pd-extended/pd/src<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; pd binary dir is /home/steph/auto-build/pd-extended/pd/src/../bin/pd<br>
&gt;&gt;<br>
&gt;&gt; checking m_pd.h usability... yes<br>
&gt;&gt; checking m_pd.h presence... yes<br>
&gt;&gt; checking for m_pd.h... yes<br>
&gt;&gt;<br>
&gt;&gt; stk dir is /home/steph/src/stk-4.4.2/<br>
&gt;&gt;<br>
&gt;&gt; checking for cos in -lm... yes<br>
&gt;&gt; checking for pthread_create in -lpthread... yes<br>
&gt;&gt; checking for main in -lstk... yes<br>
&gt;&gt; checking for audio API... checking for snd_pcm_open in -lasound... yes<br>
&gt;&gt; checking for jack_client_new in -ljack... yes<br>
&gt;&gt; checking whether gcc needs -traditional... no<br>
&gt;&gt; checking for strstr... no<br>
&gt;&gt; configure: creating ./config.status<br>
&gt;&gt; config.status: creating Makefile<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; steph@zik-station:~/src/stk2pd$ make<br>
&gt;&gt; ./ProcessInstrument Clarinet<br>
&gt;&gt; g++ -export_dynamic -shared -g -O2 -Wall -D__GXX__ -Wshadow -Wno-unused -Wno-parentheses -Wno-switch -D_LANGUAGE_C_PLUS_PLUS -Woverloaded-virtual -I/home/steph/auto-build/pd-extended/pd/src -I/home/steph/src/stk-4.4.2//include -I/home/steph/src/stk-4.4.2/ -funroll-loops -fomit-frame-pointer -DPD -D__LITTLE_ENDIAN__  -D__LINUX_JACK__ -D__LINUX_ALSA__ -D__LINUX_ALSASEQ__ -DRAWWAVE_PATH=\&quot;./rawwaves\&quot; -o externs/Clarinet~.pd_linux cppfiles/Clarinet~.cpp -ljack -lasound -lstk -lpthread -lm  -L/home/steph/src/stk-4.4.2//src/Release -L/home/steph/src/stk-4.4.2//src -L/usr/lib<br>

&gt;&gt; cppfiles/Clarinet~.cpp:37: error: ISO C++ forbids declaration of ‘Clarinet’ with no type<br>
&gt;&gt; cppfiles/Clarinet~.cpp:37: error: expected ‘;’ before ‘*’ token<br>
&gt;&gt; cppfiles/Clarinet~.cpp: In function ‘t_int* Clarinet_perform(t_int*)’:<br>
&gt;&gt; cppfiles/Clarinet~.cpp:56: error: ‘struct _Clarinet’ has no member named ‘stk’<br>
&gt;&gt; cppfiles/Clarinet~.cpp: In function ‘void Clarinet_noteOn(t_Clarinet*, t_floatarg)’:<br>
&gt;&gt; cppfiles/Clarinet~.cpp:67: error: ‘struct _Clarinet’ has no member named ‘stk’<br>
&gt;&gt; cppfiles/Clarinet~.cpp: In function ‘void Clarinet_freq(t_Clarinet*, t_floatarg)’:<br>
&gt;&gt; cppfiles/Clarinet~.cpp:76: error: ‘struct _Clarinet’ has no member named ‘stk’<br>
&gt;&gt; cppfiles/Clarinet~.cpp: In function ‘void Clarinet_ctrl(t_Clarinet*, t_symbol*, int, t_atom*)’:<br>
&gt;&gt; cppfiles/Clarinet~.cpp:87: error: ‘struct _Clarinet’ has no member named ‘stk’<br>
&gt;&gt; cppfiles/Clarinet~.cpp: In function ‘void* Clarinet_new()’:<br>
&gt;&gt; cppfiles/Clarinet~.cpp:113: error: ‘struct _Clarinet’ has no member named ‘stk’<br>
&gt;&gt; cppfiles/Clarinet~.cpp:113: error: expected type-specifier before ‘Clarinet’<br>
&gt;&gt; cppfiles/Clarinet~.cpp:113: error: expected ‘;’ before ‘Clarinet’<br>
&gt;&gt; cppfiles/Clarinet~.cpp: In function ‘void Clarinet_free(t_Clarinet*)’:<br>
&gt;&gt; cppfiles/Clarinet~.cpp:121: error: ‘struct _Clarinet’ has no member named ‘stk’<br>
&gt;&gt; make: *** [all] Erreur 1<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Could you tell me what to do?<br>
&gt;&gt;<br>
&gt;&gt; Best regards,<br>
&gt;&gt;<br>
&gt;&gt; Stephane<br>
</div></div><div><div></div><div class="h5">&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>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>