-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows, exit code: 0xc0000135, STATUS_DLL_NOT_FOUND #113
Comments
That means that Windows can't find one of the dll files referenced by the binary. Alas, it doesn't say which one. You can try copying all of the dlls from OpenCV distribution (it should actually be the only one: opencv_world_something.dll) to the directory where you binary is ( You might want to check the Windows part of the CI script for some inspiration: https://github.com/twistedfall/opencv-rust/blob/master/ci/script.sh#L5 |
I wanted to try what you suggested but compiling suddenly worked. I had the Paths specified as described in the readme on the github page. Maybe I changed something? The Paths needed some time to assimilate? Probably should have done a restart rather than just a terminal restart. So unfortunately I won't be able to verify what you said, but it still helps knowing that STATUS_DLL_NOT_FOUND doesn't refer to a specific one and how to debug that in the future. So thank you for that! However, while it compiles fine for the hello world program, when using the video_capture.rs example I will see if I can figure out more tomorrow, since this problem is not a missing shared library. |
I wanted to try what you suggested but compiling suddenly worked. I had the Paths specified as described in the readme on the github page. Maybe I changed something? The Paths needed some time to assimilate? Probably should have done a restart rather than just a terminal restart. So unfortunately I won't be able to verify what you said, but it still helps knowing that STATUS_DLL_NOT_FOUND doesn't refer to a specific one and how to debug that in the future. So thank you for that! However, while it compiles fine for the hello world program, when using the video_capture.rs example I will see if I can find out more. This is not a shared library, so just pasting it near the executable is not going to work. |
Yes, it's a strange lib to link honestly, can you post a full build log after adding cli argument |
Here is the entire build log (personally I find it very hard to read)
|
Please be sure to supply |
Yep, I added the -vv. I updated the output to show it. |
Ah, can you please do a |
Ok, I did
|
It looks like you have set the environment variable |
This is a mysterious world. |
IT WORKS :O |
Can you update this part as
Just adding an environment variable is an easier solution than copying hundreds of megabytes for each package. |
@burak-yildizoz did that. Thanks :) |
Hi, I also cannot use opencv on windows #326. Could anyone give some hints? Thanks! |
Double-click target/debug/xxx.exe and I got this:
On my computer, |
I just want to add this as well since this issue is linked in the install guide for Windows. If you're (on a AMD GPU and are) seeing: LINK : fatal error LNK1181: cannot open input file 'OpenCL.lib' Try installing OCL-SDK and thereafter run |
Windows 10
Installed opencv 4.2.0 by downloading binaries from the website.
Default Hello World Program
Cargo.toml
cargo run
How do i fix this? It seems to be the final hurdle before I can successfully use rust with opencv on windows.
EDIT: For those that stumble upon this
OPENCV_LINK_LIBS=opencv_world420
The text was updated successfully, but these errors were encountered: