[PD-dev] [ pure-data-Patches-3485016 ] (Win) allow externals to load DLLs from the same folder

SourceForge.net noreply at sourceforge.net
Sun Sep 2 21:43:48 CEST 2012


Patches item #3485016, was opened at 2012-02-06 08:38
Message generated for change (Comment added) made by eighthave
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3485016&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
Group: feature
>Status: Closed
Resolution: Accepted
Priority: 7
Private: No
Submitted By: Hans-Christoph Steiner (eighthave)
Assigned to: Miller Puckette (millerpuckette)
Summary: (Win) allow externals to load DLLs from the same folder

Initial Comment:
In order to have objects like readanysf~ and purest_json work on Windows, they need to include DLLs for libraries like ffmpeg and curl. In order for the DLLs of the objects to load other DLLs from that same folder, SetDllDirectory() needs to be set first.  This requires a minimum of Windows XP SP1 (10 years old at this point).

There are three patches included, the first sets up the new build system for this, the second sets up makefile.mingw for this.  The third is the actual change to s_loader.c.  I think MSVC sets WINVER automatically, but just be sure its set to 0x0502 for this to work.

----------------------------------------------------------------------

>Comment By: Hans-Christoph Steiner (eighthave)
Date: 2012-09-02 12:43

Message:
You can always find these patches in the Pd-extended 'patch_series' branch
if they seem corrupted.

As for git, if you have messed up commits, you can always easily reset your
branch back to ignore those messed up commits.  Just use 'git branch' to
set the branch to a given branch hash:

git branch master 731b8721d28bc4ed0c0b533b981b7d3dd1f1df6e

----------------------------------------------------------------------

Comment By: Miller Puckette (millerpuckette)
Date: 2012-08-31 17:21

Message:
I think this is now patched (but quite messily so there might be mistakes).
 Some of it was already part
of commit  5dadaf43c9206823b434d11c6cc6c6e6be020dc3


----------------------------------------------------------------------

Comment By: Miller Puckette (millerpuckette)
Date: 2012-08-31 17:05

Message:
I applied this messily - it seems a lot of the edits had already been
applied - probably broke stuff but
am not sure how to unwind this safely.

----------------------------------------------------------------------

Comment By: Miller Puckette (millerpuckette)
Date: 2012-02-19 18:19

Message:
drat, the "zip" file attached looks like empty HTML glueball.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3485016&group_id=55736



More information about the Pd-dev mailing list