Hi all!<br><br>I saw the message from Pierre Massat in the archives from june, I just<br>got the same problem with the clarinet build process from the tutorial<br>&quot;Embeding STK instruments in Pd&quot; , it seems there is some trouble<br>
with stk in the build process.<br><br>(my OS is ubuntu lucid 64)<br><br>and from the procedures of this tuto,here is what i get :<br><br>steph@zik-station:~/Bureau/stk_test$ make<br>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>
clarinet.cpp:55: error: ISO C++ forbids declaration of ‘Instrmnt’ with no type<br>clarinet.cpp:55: error: expected ‘;’ before ‘*’ token<br>clarinet.cpp:56: error: ISO C++ forbids declaration of ‘Effect’ with no type<br>clarinet.cpp:56: error: expected ‘;’ before ‘*’ token<br>
clarinet.cpp:57: error: ‘BiQuad’ does not name a type<br>clarinet.cpp: In constructor ‘clarinet::clarinet(float)’:<br>clarinet.cpp:88: error: ‘inst’ was not declared in this scope<br>clarinet.cpp:89: error: ‘effect’ was not declared in this scope<br>
clarinet.cpp:92: error: ‘filter’ was not declared in this scope<br>clarinet.cpp: In member function ‘void clarinet::setFreq(float)’:<br>clarinet.cpp:112: error: ‘inst’ was not declared in this scope<br>clarinet.cpp: In member function ‘void clarinet::setVolume(float)’:<br>
clarinet.cpp:119: error: ‘inst’ was not declared in this scope<br>clarinet.cpp: In member function ‘virtual bool clarinet::NewObjs()’:<br>clarinet.cpp:130: error: ‘inst’ was not declared in this scope<br>clarinet.cpp:130: error: expected type-specifier before ‘Clarinet’<br>
clarinet.cpp:130: error: expected ‘;’ before ‘Clarinet’<br>clarinet.cpp:135: error: expected type-specifier before ‘StkError’<br>clarinet.cpp:135: error: expected ‘)’ before ‘&amp;’ token<br>clarinet.cpp:135: error: expected ‘{’ before ‘&amp;’ token<br>
clarinet.cpp:135: error: expected primary-expression before ‘)’ token<br>clarinet.cpp:135: error: expected ‘;’ before ‘)’ token<br>clarinet.cpp: In member function ‘virtual void clarinet::ProcessObjs(int)’:<br>clarinet.cpp:157: error: ‘inst’ was not declared in this scope<br>
clarinet.cpp: In member function ‘virtual void clarinet::m_signal(int, float* const*, float* const*)’:<br>clarinet.cpp:170: error: ‘inst’ was not declared in this scope<br>make: *** [pd-linux/clarinet.o] Erreur 1<br><br><br>
Then, just after this , I decided to<br>try stk2pd from here :<br><br><a href="https://ccrma.stanford.edu/wiki/Stk2pd">https://ccrma.stanford.edu/wiki/Stk2pd</a><br><br>(on this page ,the binaries files in the file &quot;stk2pd-externes-linux-07272007.tar.gz&quot;<br>
are still working with PD-extended 0.42.5 under ubunutu lucid 32bits with stk 4.4.2 on my <br>netbook)<br><br>At first,autoconf didn&#39;t want to write a configure file :<br><br>steph@zik-station:~/src/stk2pd$ autoconf<br>
<a href="http://configure.ac:130">configure.ac:130</a>: error: AC_SUBST: `pd_suffix &#39; is not a valid shell variable name<br><br>Removing the spaces near the parentheses in the <a href="http://configure.ac">configure.ac</a> (line 130 to 137)resolved the<br>
problem. (^^)<br><br>Then :<br><br>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>checking build system type... x86_64-unknown-linux-gnu<br>
checking host system type... x86_64-unknown-linux-gnu<br>checking for gcc... gcc<br>checking whether the C compiler works... yes<br>checking for C compiler default output file name... a.out<br>checking for suffix of executables... <br>
checking whether we are cross compiling... no<br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes<br>checking for gcc option to accept ISO C89... none needed<br>
checking whether ln -s works... yes<br>checking for g++... g++<br>checking whether we are using the GNU C++ compiler... yes<br>checking whether g++ accepts -g... yes<br>checking whether we are using the GNU C++ compiler... (cached) yes<br>
checking whether g++ accepts -g... (cached) yes<br>cflags -g -O2<br>ldflags <br>checking how to run the C preprocessor... gcc -E<br>checking for grep that handles long lines and -e... /bin/grep<br>checking for egrep... /bin/grep -E<br>
checking for ANSI C header files... yes<br>checking for sys/types.h... yes<br>checking for sys/stat.h... yes<br>checking for stdlib.h... yes<br>checking for string.h... yes<br>checking for memory.h... yes<br>checking for strings.h... yes<br>
checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checking for unistd.h... yes<br>checking fcntl.h usability... yes<br>checking fcntl.h presence... yes<br>checking for fcntl.h... yes<br>checking sys/ioctl.h usability... yes<br>
checking sys/ioctl.h presence... yes<br>checking for sys/ioctl.h... yes<br>checking sys/time.h usability... yes<br>checking sys/time.h presence... yes<br>checking for sys/time.h... yes<br>checking termio.h usability... yes<br>
checking termio.h presence... yes<br>checking for termio.h... yes<br>checking for unistd.h... (cached) yes<br>checking for an ANSI C-conforming const... yes<br>checking for size_t... yes<br>checking whether time.h and sys/time.h may both be included... yes<br>
checking whether byte ordering is bigendian... no<br><br>pd dir is /home/steph/auto-build/pd-extended/pd/src<br><br><br>pd binary dir is /home/steph/auto-build/pd-extended/pd/src/../bin/pd<br><br>checking m_pd.h usability... yes<br>
checking m_pd.h presence... yes<br>checking for m_pd.h... yes<br><br>stk dir is /home/steph/src/stk-4.4.2/<br><br>checking for cos in -lm... yes<br>checking for pthread_create in -lpthread... yes<br>checking for main in -lstk... yes<br>
checking for audio API... checking for snd_pcm_open in -lasound... yes<br>checking for jack_client_new in -ljack... yes<br>checking whether gcc needs -traditional... no<br>checking for strstr... no<br>configure: creating ./config.status<br>
config.status: creating Makefile<br><br><br><br><br>steph@zik-station:~/src/stk2pd$ make<br>./ProcessInstrument Clarinet<br>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>
cppfiles/Clarinet~.cpp:37: error: ISO C++ forbids declaration of ‘Clarinet’ with no type<br>cppfiles/Clarinet~.cpp:37: error: expected ‘;’ before ‘*’ token<br>cppfiles/Clarinet~.cpp: In function ‘t_int* Clarinet_perform(t_int*)’:<br>
cppfiles/Clarinet~.cpp:56: error: ‘struct _Clarinet’ has no member named ‘stk’<br>cppfiles/Clarinet~.cpp: In function ‘void Clarinet_noteOn(t_Clarinet*, t_floatarg)’:<br>cppfiles/Clarinet~.cpp:67: error: ‘struct _Clarinet’ has no member named ‘stk’<br>
cppfiles/Clarinet~.cpp: In function ‘void Clarinet_freq(t_Clarinet*, t_floatarg)’:<br>cppfiles/Clarinet~.cpp:76: error: ‘struct _Clarinet’ has no member named ‘stk’<br>cppfiles/Clarinet~.cpp: In function ‘void Clarinet_ctrl(t_Clarinet*, t_symbol*, int, t_atom*)’:<br>
cppfiles/Clarinet~.cpp:87: error: ‘struct _Clarinet’ has no member named ‘stk’<br>cppfiles/Clarinet~.cpp: In function ‘void* Clarinet_new()’:<br>cppfiles/Clarinet~.cpp:113: error: ‘struct _Clarinet’ has no member named ‘stk’<br>
cppfiles/Clarinet~.cpp:113: error: expected type-specifier before ‘Clarinet’<br>cppfiles/Clarinet~.cpp:113: error: expected ‘;’ before ‘Clarinet’<br>cppfiles/Clarinet~.cpp: In function ‘void Clarinet_free(t_Clarinet*)’:<br>
cppfiles/Clarinet~.cpp:121: error: ‘struct _Clarinet’ has no member named ‘stk’<br>make: *** [all] Erreur 1<br><br><br>Could you tell me what to do?<br><br>Best regards,<br><br>Stephane<br>