LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

opencv 32 bit dll fails to load in labview

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(916 Views)

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 5
(882 Views)

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

0 Kudos
Message 3 of 5
(866 Views)
Solution
Accepted by topic author tushar.V

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 5
(855 Views)
Solution
Accepted by topic author tushar.V

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.

0 Kudos
Message 5 of 5
(840 Views)