Thanks!

I would say, distribute everything /except kernel32.dll/ (this one is always present on Windows)

ucrtbase(d).dll (Universal C Runtime) is always present on Windows 10, but not necessarily on older Windows versions.

BTW, ucrtbased.dll is the debug version of ucrtbase.dll (without 'd').

Alternatively, you might also try to link statically with the /MT option:

https://learn.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run-time-library?view=msvc-170

Christof

On 05.01.2023 21:31, William Brent wrote:
Thanks for all the tips Christof, here's a Dropbox link to a .zip of the external: https://www.dropbox.com/s/v45itm3lrwsxaax/leapmotion.zip?dl=0


On Thu, Jan 5, 2023 at 10:21 AM Christof Ressi <i...@christofressi.com> wrote:

    > so...just one last question (hopefully): what's the best
    practice for
    > packaging an external like this? The dependencies are:

    kernel32.dll is always present and must not be distributed.

    msvcp140d.dll, ucrtbase.dll and vcruntime140*.dll are Microsoft C
    runtime libraries.

    Can you send me the binaries, so I can quickly have a look myself?

    > Would a .bat script be a good idea so that all of these could be
    > copied to Windows/System32?

    Anything, but not this! The days of copying stuff into System32 are -
    fortunately - long gone :-)

    Christof




    _______________________________________________
    Pd-dev mailing list
    Pd-dev@lists.iem.at
    https://lists.puredata.info/listinfo/pd-dev



--
William Brent

“Great minds flock together”
Conflations: conversational idiom for the 21st century

www.conflations.com <http://www.conflations.com>
_______________________________________________
Pd-dev mailing list
Pd-dev@lists.iem.at
https://lists.puredata.info/listinfo/pd-dev

Reply via email to