10-04-2024 04:21 AM
Hi ,
I am trying to build and deploy a project which used .DLLs. When I run it on my Local PC it works fine, but when I build it, package it and deploy it over the NIPM, it seems like it doesn't include the other dependent .DLLs of the main .DLL.
Any ideas to why this is happening ? and any suggestions to make this work please ?
Solved! Go to Solution.
10-04-2024 04:34 AM
That depends on the DLL. Is it from a third party driver? Is the CLN configured with a path and the DLL is included in the buld specification?
Start here: LabVIEW Executable Cannot Find DLL
Does the DLL depend on other libraries that need to be installed?
check the dependencies of the DLL with this tool and see what is missing on the other machine; https://lucasg.github.io/Dependencies/
10-07-2024 10:28 AM - edited 10-07-2024 10:34 AM
The LabVIEW Application Builder only can detect DLLs that are used directly in Call Library Nodes and add them automatically to the build output. Dependencies of those DLLs or if you use the "Use Library Path on the diagram" option in the Call Library the DLL itself specified through such paths, can not be detected automatically. If you want them included you have to add them explicitly to the project and add them to your build as "always Included" resources. And you should place them in the directory of your executable, if they are dependencies of DLLs you call. LabVIEW is not involved in loading dependencies, this is done by Windows and Windows will NOT search any special directories like the default "data" directory in a LabVIEW build but only the directory in which the main executable is located, the Windows System directory or any directory listed in the PATH environment variable.