hello,
it seems there is a problem on some computers with plugins I have recently released- TetGen and SpoutControls. They work fine on most pcs, but on some there is an error saying dll not found.
As nobody reported problems with Triangle I believe it has something to do with TetGen/SpoutControls calling a native dll. I have followed the instructions here vvvv sdk to compile from the addonpack solution, ie added this code to the plugin:
static SystemSpoutSenderNode()
{
var platform = IntPtr.Size == 4 ? "x86" : "x64";
var pathToThisAssembly = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
var pathToBinFolder = Path.Combine(pathToThisAssembly, "dependencies", platform);
var envPath = Environment.GetEnvironmentVariable("PATH");
envPath = string.Format("{0};{1}", envPath, pathToBinFolder);
Environment.SetEnvironmentVariable("PATH", envPath);
}
(btw @devvvv: the vvvv-sdk page is missing the round brackets in this code)
It looks to me like the folder is not added to PATH, but I don’t know why.
I have only found 1 computer with the problem, but I do not have constant access, so it’s quite hard to debug; also I ran out of things to try. I can confirm now that on that 1 machine both SpoutControls AND TetGen show the same error. When I remove the above code and copy the dll next to vvvv.exe the dll still can not be found.
Also I can tell it seems to have nothing to do with OS, OS platform or vvvv version (x32 or x64).
Any ideas on what could be wrong would be highly appreciated, thanks in advance!