[L2Ork-dev] disis_munger~ in last purr-data release?

Alberto Zin alberto.zin at gmail.com
Sun Mar 4 06:03:34 EST 2018


Last two days I did the following:

   - compiled stk to get libstk.a
   - compiled flext including libstk.a (against pd vanilla 0.48.1)
   - I built disis_munger~.pd_linux.

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):

undefined:1
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

SyntaxError: missing ) after argument list
    at perfect_parser (/opt/purr-data/lib/pd-l2ork/bin/pdgui.js:1705:48)
    at Socket.<anonymous> (/opt/purr-data/lib/pd-l2ork/bin/pdgui.js:1723:9)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at TCP.onread (net.js:560:20)


No windows opens. If then I open the help file again then it opens but keep
saying

warning: mycoll : multiply defined

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.

So something is clearly screwed up on my side.

Albert, I'll try your makefile, hopefully it works better.
In case, can you share the binary (.pd_linux)? I suppose it is 64 bit
linux, right?
Is it built statically or dynamically against flext and stk?

Thanks,

Alberto




2018-03-04 7:58 GMT+01:00 Albert Graef <aggraef at gmail.com>:

> On Sun, Mar 4, 2018 at 7:01 AM, Albert Graef <aggraef at gmail.com> wrote:
>
>> 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.
>>
>
> 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.
>
> --
> Dr. Albert Gr"af
> Computer Music Research Group, JGU Mainz, Germany
> Email:  aggraef at gmail.com
> WWW:    https://plus.google.com/+AlbertGraef
>
> _______________________________________________
> L2Ork-dev mailing list
> L2Ork-dev at disis.music.vt.edu
> https://disis.music.vt.edu/listinfo/l2ork-dev
>



-- 
https://soundcloud.com/albertoz
<https://soundcloud.com/albertoz>https://www.flickr.com/photos/94787902@N08/
http://sites.google.com/site/albertozin/

47 41 4d 45 20 4f 56 45 52
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://disis.music.vt.edu/pipermail/l2ork-dev/attachments/20180304/753ca621/attachment-0001.html>


More information about the L2Ork-dev mailing list