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"><<a href="mailto:sinclair@music.mcgill.ca">sinclair@music.mcgill.ca</a>></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>
"stk2pdTemplate", inserting "using namespace stk;" after "#include<br>
"xxx.h". (Line 18.)<br>
<br>
Amazingly, everything compiled! I didn't test them all, but Plucked~<br>
seemed to work fine.<br>
<br>
Very happy, I didn'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 <<a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a>> wrote:<br>
> Hi Stephane,<br>
><br>
> I don't support that STK "distribution" ... 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>
><br>
> --gary<br>
><br>
> On 2010-08-27, at 7:18 AM, Stephane Nguyen wrote:<br>
><br>
</div><div><div></div><div class="h5">>> 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>
>> "Embeding STK instruments in Pd" , 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 ‘&’ token<br>
>> clarinet.cpp:135: error: expected ‘{’ before ‘&’ 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" target="_blank">https://ccrma.stanford.edu/wiki/Stk2pd</a><br>
>><br>
>> (on this page ,the binaries files in the file "stk2pd-externes-linux-07272007.tar.gz"<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't want to write a configure file :<br>
>><br>
>> steph@zik-station:~/src/stk2pd$ autoconf<br>
>> <a href="http://configure.ac:130" target="_blank">configure.ac:130</a>: error: AC_SUBST: `pd_suffix ' is not a valid shell variable name<br>
>><br>
>> 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>
>> 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=\"./rawwaves\" -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>
</div></div><div><div></div><div class="h5">>> _______________________________________________<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>
><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>
><br>
><br>
</div></div></blockquote></div><br>