07-18-2023 12:08 AM
Hello all,
my Labview is 32-bit , so I generated 32-bit libs of Opencv using the link
https://stackoverflow.com/questions/64103671/opencv-32-bit-libs-dlls-for-visual-studio-project
i have written a code of open camera using Opencv and dll got successfully generated , but when i'am trying to use it in labview i get error saying "dll is not loaded or dll fails to load " is there something I'am missing.
Regards
Tushar
Solved! Go to Solution.
07-18-2023 04:40 AM
What Visual Studio version did you use to create the DLL? Do you try to run the LabVIEW project that access the DLL on the same computer as you created your DLL on in Visual Studio?
If not, did you make sure to create a release version of the DLL, not a debug version? The debug version of DLLs needs the debug version of Visual Studio C runtime installed and the only legal way to get that installed on a computer is to install the according Visual Studio IDE.
07-18-2023 05:56 AM
Visual Studio : 2022 Current Version 17.5.3,
dll and Labview are in separate computer
i have tried in both release version and debug version both it fails.
Regards
Tushar
07-18-2023 06:24 AM
Debug will ALWAYS fail if you try to run it on a different computer than on which you have Visual Studio installed. For a release DLL you still need to have the according Microsoft Visual C Runtime library installed on the target computer. Since you use Visual Studio 2022 it requires also pretty much the latest version of that. If your Windows version hasn't been fully upgraded to the latest Windows release, it likely will have an older version of it installed.
07-18-2023 07:30 AM
You can use Dependencies to open the library on the target computer to see what other library might be missing.
It is also possible that the target CPU lacks support for some instructions used in the dll. Atom does not support AVX, for example.