<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div>Last two days I did the following:<br></div><ul><li>compiled stk to get libstk.a</li><li>compiled flext including libstk.a (against pd vanilla 0.48.1)</li><li>I built disis_munger~.pd_linux.</li></ul></div></div></div>The object seems to have build successfully, but when I put it in te same directory of the help file and load the help file (disis_munger~-help.pd) I get the following (at the terminal on which I launched purr-data):<br><br>undefined:1<br>proc(flext_escatoms {lst} {\nset tmp {}\nforeach a $lst {\nset a [regsub {\$} $a \\$]\nset a [regsub {,} $a \\,]\nset a [regsub {;} $a \\\;]\nlappend tmp $a\n}\nreturn $tmp\n}\nproc flext_makevalue {id ix} {\nset vid [string trimleft $id .]\nset var_attr_name [concat [concat var_name_$ix]_$vid ]\nset var_attr_init [concat [concat var_init_$ix]_$vid ]\nset var_attr_val [concat [concat var_val_$ix]_$vid ]\nset var_attr_save [concat [concat var_save_$ix]_$vid ]\nset var_attr_type [concat [concat var_type_$ix]_$vid ]\nglobal $var_attr_name $var_attr_init $var_attr_val $var_attr_save $var_attr_type\nset lst {}\nif { [expr $$var_attr_type] != 0 } {\nlappend lst [eval concat $$var_attr_name]\nset tmp [flext_escatoms [eval concat $$var_attr_val]]\nset lst [concat $lst [llength $tmp] $tmp]\nset tmp [flext_escatoms [eval concat $$var_attr_init]]\nset lst [concat $lst [llength $tmp] $tmp]\nlappend lst [eval concat $$var_attr_save]\n}\nreturn $lst\n}\nproc flext_apply {id ix} {\nset lst [flext_makevalue $id<br><br>SyntaxError: missing ) after argument list<br>    at perfect_parser (/opt/purr-data/lib/pd-l2ork/bin/pdgui.js:1705:48)<br>    at Socket.<anonymous> (/opt/purr-data/lib/pd-l2ork/bin/pdgui.js:1723:9)<br>    at emitOne (events.js:96:13)<br>    at Socket.emit (events.js:191:7)<br>    at readableAddChunk (_stream_readable.js:178:18)<br>    at Socket.Readable.push (_stream_readable.js:136:10)<br>    at TCP.onread (net.js:560:20)<br><br><br></div>No windows opens. If then I open the help file again then it opens but keep saying <br><br></div>warning: mycoll : multiply defined<br></div><br>So it seems that the first time it loaded the help patch (up to a certain level, without the window), and the second time it loads the windows but it finds duplicated objects.<br><br></div>So something is clearly screwed up on my side. <br><br></div>Albert, I'll try your makefile, hopefully it works better.<br></div>In case, can you share the binary (.pd_linux)? I suppose it is 64 bit linux, right? <br></div>Is it built statically or dynamically against flext and stk?<br><br></div>Thanks,<br><br></div>Alberto<br><div><div><div><div><div><div><div><div><div><br><br><br></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-04 7:58 GMT+01:00 Albert Graef <span dir="ltr"><<a href="mailto:aggraef@gmail.com" target="_blank">aggraef@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class=""><div class="gmail_quote">On Sun, Mar 4, 2018 at 7:01 AM, Albert Graef <span dir="ltr"><<a href="mailto:aggraef@gmail.com" target="_blank">aggraef@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="m_-1948136584534128270m_-1314353982383436725markdown-here-wrapper"><span></span>Well, I was finally able to build disis_munger~ against the latest flext and stk sources. I just ignored all those crazy flext build scripts (which don’t work in msys anyway) and rolled my own Makefile (attached) by gleaning all the compile options from the Linux build scripts. It’s compiling and linking fine, using the static flext and stk libraries.</div></div></blockquote><div><br></div></div></span>Here is a better version of the Makefile which just assumes that pd, flext, stk and disis_munger sit next to each other (as subdirs in the same directory). It should also be easy to adapt this for an in-situ build in the Purr Data source tree.<br clear="all"></div><span class=""><div class="gmail_extra"><br>-- <br><div class="m_-1948136584534128270gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Dr. Albert Gr"af<br>Computer Music Research Group, JGU Mainz, Germany<br>Email:  <a href="mailto:aggraef@gmail.com" target="_blank">aggraef@gmail.com</a><br>WWW:    <a href="https://plus.google.com/+AlbertGraef" target="_blank">https://plus.google.com/+<wbr>AlbertGraef</a></div></div>
</div></span></div>
<br>______________________________<wbr>_________________<br>
L2Ork-dev mailing list<br>
<a href="mailto:L2Ork-dev@disis.music.vt.edu">L2Ork-dev@disis.music.vt.edu</a><br>
<a href="https://disis.music.vt.edu/listinfo/l2ork-dev" rel="noreferrer" target="_blank">https://disis.music.vt.edu/<wbr>listinfo/l2ork-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div></div><div><a href="https://soundcloud.com/albertoz" target="_blank">https://soundcloud.com/albertoz</a></div><div><a href="https://soundcloud.com/albertoz" target="_blank"><span></span></a><a href="https://www.flickr.com/photos/94787902@N08/" target="_blank">https://www.flickr.com/photos/94787902@N08/</a></div><div><div><a href="http://sites.google.com/site/albertozin/" target="_blank">http://sites.google.com/site/albertozin/</a> <br></div></div><div><br></div><div>47 41 4d 45 20 4f 56 45 52</div></div></div>
</div>