hello,
does not work on Windows:
yeah that libtkdnd is built for MacOS 64-bit only (i believe). tkdnd would have to be built for windows (dll?).
really the repo needs a submodule (https://github.com/petasis/tkdnd) but i think i remember it was such a pain to get built ( see https://github.com/petasis/tkdnd/issues/1 ) i just pushed what worked for my system and left it at that. it should work on all os's now that pd is all tk 8.5 and greater. i think part of the problem a couple years ago was MacOS pd vanilla was still stuck at tk 8.4.
even trying to build quick now i get:
$ ./configure --with-tcl /System/Library/Frameworks/Tk.framework/Versions/8.5/tkConfig.sh
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /System/Library/Frameworks/Tk.framework/Versions/8.5/tkConfig.sh
checking TEA configuration... ok (TEA 3.13)
configure: configuring tkdnd 2.9
checking system version... Darwin-17.4.0
checking for Tcl configuration... configure: error: yes directory doesn't contain tclConfig.sh
....and dont have time to troubleshoot.
m
On Mon, Mar 12, 2018 at 6:16 PM, Lucas Cordiviola lucarda27@hotmail.com wrote:
Unfortunately
https://github.com/megrimm/pd-dnd-plugin
does not work on Windows:
Loading plugin: C:/Users/Lucarda/AppData/Roaming/pd/dnd-plugin.tcl
Drag and Drop on Window Drag and Drop on Canvas
UNHANDLED ERROR: couldn't load library "C:/Users/Lucarda/AppData/ Roaming/pd/tkdnd/libtkdnd2.8.dylib": invalid argument while executing "load $dir/$PKG_LIB_FILE $PACKAGE_NAME" (procedure "tkdnd::initialise" line 92) invoked from within "tkdnd::initialise {C:/Users/Lucarda/AppData/Roaming/pd/tkdnd} libtkdnd2.8.dylib tkdnd" ("package ifneeded tkdnd 2.8" script) invoked from within "package require tkdnd" ("uplevel" body line 18) invoked from within "uplevel #0 $tclcode" FAILED TO LOAD C:/Users/Lucarda/AppData/Roaming/pd/dnd-plugin.tcl
Mensaje telepatico asistido por maquinas.
On 3/12/2018 5:34 AM, IOhannes m zmoelnig wrote:
On 2018-03-12 07:53, Alexandre Torres Porres wrote:
Hi, would it be possible to write an external that could respond to drag and drop? Like opening a file or something? Was anything like this ever done? Or is it impossible cause it'd require some changes to Pd?
yes, it was done. e.g. https://github.com/megrimm/pd-dnd-plugin
fg asrdm IOhannes
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list