To be more precise :
Spat (5.2 and higher) still requires DLL to work.
These DLLs are located in the /support folder.
This folder is automatically searched by Max, assuming you put spat5 into the Packages folder, which is my recommendation.
All instructions should be up to date here :
I have installed visual studio.
You dont need to “install visual studio”. But you might need to install the “Visual C++ Redistributable Packages for Visual Studio 2019” (which is not the same)
But this does not solve the problem
I dont know what the problem is.
Is it okay to use the old dependencies?
No. You need the new DLLs files located in the /support folder.
Error 126 is the error we used to get when the .DLL files were not installed alongside Max. These files are now in the Max package, there shouldn’t be this error…
Wouldn’t there be some objects left somewhere from a version of Spat or any misleading with Max, see in the projects ?
There is no manipulation to do… I suggest you erase all traces of Spat on the PC and re-install it…
If the problem really remains (but it shouldn’t !), you can try to copy all the DLLs (about 30 files) from the spat5/support folder to the Max.exe folder.
I confirm what @marjin said. I am preparing a pc for an installation and spat keeps giving me this error message. I’m sorry. Thank you very much for all your work, Spat5 is great!
Putting the dll files (all of them) inside my documents > max 8 > packages did the trick for me. However this is not a great permanent solution because I want to be able to run the patch as a standalone. Therefore, it would be much better if spat could find the dependencies when they are located in the root executable folder. Aside from this inconvenience, I am very happy about the size reduction for spat5 on Windows.
MuBu and Spat are totally separated projects, so problems are un-related.
However, it is very likely that MuBu also requires the “Visual C++ Redistributable Packages for Visual Studio 2019”. So, you should really try to do that first.
In theory, you can leave the DLLs where they are (in the spat5-x64\support folder).
If you really have trouble, you could try to copy all the 28 DLLs in the same folder as “Max.exe”.
Apologies for my late reaction.
let me be a little bit more specific:
platform: windows 10
visual c++ dist. kit. 2019 is installed.
For spat 5.2:
The support folder must be in: [my documents / max 8 / packages
When doing this, spat 5.2 works correctly.
If I would put the dependencies in the max installation folder:
C:\Program Files\Cycling '74\Max 8
it will not work, and error 126 shows up.
For this reason, I am unable to compile a standalone for spat 5.2 I need the dependencies to be situated in the root folder, like with older versions of spat.
Version 5.1.9 works perfectly fine when I put the DLL depencencies alongside the executable, Spat 5.2 does not find them that way.
When you build a standalone named “Foo”, you need to put all the necessary DLLs in the same folder as the generated “Foo.exe”.
I believe the “Include File…” strategy (build script) mentioned by @smalllotus should work. Otherwise I just manually copy the files, and that works well.
The “Visual C++ Redistributable Packages for Visual Studio 2019” have to be installed on the “client” computer (computer(s) where the Foo.exe standalone will be executed).