Error 126 loading external spat5.spat~ on Windows

Hello,
I would like to use spat package (last version 5.1.0) but when I call the object “spat5.spat~” I’ve this message :
Error 126 loading external spat5.spat~
I’ve a windows machine of course… And with max 7.

I tried many things, nothing works.

I thing it’s mayby a error of compilation, but I don’t enough to know what to do.

Looking for some helps, thanks!

Clement

Hi Clément,

How about that :

macOS :

  • mount the Spat 5 disk image
  • copy the content to your Max Packages folder (typically ~/Documents/Max 7/Packages)
  • launch Max in 64 bit mode

Windows:

  • install the “Visual C++ Redistributable Packages for Visual Studio 2017”; you can (freely) download it from Microsoft website: https://www.visualstudio.com/downloads/.
    Select “Microsoft Visual C++ 2017 Redistributable” and “x64” and follow the instructions for installation.

  • unzip the spat 5 archive, and copy the content to your Max Packages folder

  • copy the following DLL files from the Spat package:
    /dependencies/zlib1.dll
    /dependencies/hdf5_hl.dll
    /dependencies/hdf5.dll
    /dependencies/libcurl.dll
    /dependencies/netcdf.dll
    alongside the Max 64 bit executable i.e.: C:\Programmes\Cycling ’74\Max 7\

  • launch Max 64 bit

(in the previous instructions, replace “Max 7” with “Max 8” if needed)

Hello,
Thanks for answer so quickly.
I’ve allready see this solution but I don’t really understand… Can you explain me a little bit more please ? I have to find “Microsoft Visual C++ 2017 Redistributable” in the individual conponent ?
Thanks
Clément

Maybe this link will be easier :
https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads
Then download the “vc_redist.x64.exe” file (Visual Studio 2017) and install it.

T.

Perfect !
It’s work!
Thank you so much I spend the whole day with that…
Clement

Hi,

Some news about this, I’ve just have this (error 126) because the .dll dependencies were not in the same folder as Max