Comments (10)
The README.md says to use opencv-platform. If you're not using that, then don't expect things to work. What more do you need to know?
What you mean is that instead of doing this:
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>opencv</artifactId>
<version>4.9.0-1.5.10</version>
<scope>compile</scope>
<classifier>windows-x86_64</classifier>
</dependency>
I'm supposed to do this?
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>opencv-platform</artifactId>
<version>4.9.0-1.5.10</version>
<scope>compile</scope>
<classifier>windows-x86_64</classifier>
</dependency>
from javacpp-presets.
Please try again with 1.5.10
from javacpp-presets.
Please try again with 1.5.10
Just tried it with 1.5.10, the issue is still there.
As I said, it's not consistent and happens only on some Windows 11 machines, no idea why.
What can I do to investigate it further?
from javacpp-presets.
Please set the "org.bytedeco.javacpp.logger.debug" system property to "true" to get more information on the console.
from javacpp-presets.
OK, here are the results, I think the issue is pretty clear (missing OpenCV dependencies):
Debug: Failed to load for opencv_cudev490: java.lang.UnsatisfiedLinkError: no opencv_cudev490 in java.library.path: [C:\Program Files\Test App\data\jdk-13.0.2\bin, C:\windows\Sun\Java\bin, C:\windows\system32, C:\windows, C:\windows\system32, C:\windows, C:\windows\System32\Wbem, C:\windows\System32\WindowsPowerShell\v1.0\, C:\windows\System32\OpenSSH\, C:\Users\testuser\AppData\Local\Microsoft\WindowsApps, ., .]
Debug: Loading C:\Users\testuser\.javacpp\cache\testapp.jar\org\bytedeco\opencv\windows-x86_64\opencv_core490.dll
Debug: Failed to load C:\Users\testuser\.javacpp\cache\testapp.jar\org\bytedeco\opencv\windows-x86_64\opencv_core490.dll: java.lang.UnsatisfiedLinkError: C:\Users\testuser\.javacpp\cache\testapp.jar\org\bytedeco\opencv\windows-x86_64\opencv_core490.dll: Can't find dependent libraries
Debug: Loading library opencv_core490
Debug: Failed to load for opencv_core490: java.lang.UnsatisfiedLinkError: no opencv_core490 in java.library.path: [C:\Program Files\Test App\data\jdk-13.0.2\bin, C:\windows\Sun\Java\bin, C:\windows\system32, C:\windows, C:\windows\system32, C:\windows, C:\windows\System32\Wbem, C:\windows\System32\WindowsPowerShell\v1.0\, C:\windows\System32\OpenSSH\, C:\Users\testuser\AppData\Local\Microsoft\WindowsApps, ., .]
Debug: Loading C:\Users\testuser\.javacpp\cache\testapp.jar\org\bytedeco\opencv\windows-x86_64\opencv_imgproc490.dll
Debug: Failed to load C:\Users\testuser\.javacpp\cache\testapp.jar\org\bytedeco\opencv\windows-x86_64\opencv_imgproc490.dll: java.lang.UnsatisfiedLinkError: C:\Users\testuser\.javacpp\cache\testapp.jar\org\bytedeco\opencv\windows-x86_64\opencv_imgproc490.dll: Can't find dependent libraries
Debug: Loading library opencv_imgproc490
Debug: Failed to load for opencv_imgproc490: java.lang.UnsatisfiedLinkError: no opencv_imgproc490 in java.library.path: [C:\Program Files\Test App\data\jdk-13.0.2\bin, C:\windows\Sun\Java\bin, C:\windows\system32, C:\windows, C:\windows\system32, C:\windows, C:\windows\System32\Wbem, C:\windows\System32\WindowsPowerShell\v1.0\, C:\windows\System32\OpenSSH\, C:\Users\testuser\AppData\Local\Microsoft\WindowsApps, ., .]
Debug: Loading C:\Users\testuser\.javacpp\cache\testapp.jar\org\bytedeco\opencv\windows-x86_64\jniopencv_core.dll
Debug: Failed to load C:\Users\testuser\.javacpp\cache\testapp.jar\org\bytedeco\opencv\windows-x86_64\jniopencv_core.dll: java.lang.UnsatisfiedLinkError: C:\Users\testuser\.javacpp\cache\testapp.jar\org\bytedeco\opencv\windows-x86_64\jniopencv_core.dll: Can't find dependent libraries
Debug: Loading library jniopencv_core
Debug: Failed to load for jniopencv_core: java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path: [C:\Program Files\Test App\data\jdk-13.0.2\bin, C:\windows\Sun\Java\bin, C:\windows\system32, C:\windows, C:\windows\system32, C:\windows, C:\windows\System32\Wbem, C:\windows\System32\WindowsPowerShell\v1.0\, C:\windows\System32\OpenSSH\, C:\Users\testuser\AppData\Local\Microsoft\WindowsApps, ., .]
I checked the opencv_core.dll file in DependenciesGui and got this:
For opencv_imgproc.dll those are missing:
No idea why was it linked against those VS libs?
from javacpp-presets.
from javacpp-presets.
It looks like the issue is easily fixable (I mean not fixable, but it's relatively easy workaround) by installing this:
https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version
from javacpp-presets.
Those are available with javacpp-platform
I don't understand. Is there another dependency I need to list in my pom.xml? I would really appreciate if you replied with a more elaborate explanation from time to time :)
from javacpp-presets.
from javacpp-presets.
I assumed that fixed it, but please let me know if that still doesn't work
from javacpp-presets.
Related Issues (20)
- Can Java use the OpenCV library bound by JavaCPP for CUDA-accelerated decoding of RTSP streams HOT 1
- Project management with javacpp HOT 9
- Consider enable libdav1d HOT 3
- android-arm and android-x86 binaries are missing for latest ffmpeg HOT 7
- [TensorRT] How to save engine to disk HOT 2
- How to rely on the org.bytedeco:ffmpeg library in Android development HOT 1
- PyTorch AdaptiveAvgPool2dImpl constructor HOT 2
- Missing Py*_Check Methods in JavaCPP Preset for CPython HOT 1
- [PyTorch] How to check if a tensor is None HOT 5
- arpack-ng-platform adds macosx-arm64 support HOT 3
- NegativeArraySizeException when building native image with cuda-redist using (flandmark-demo) HOT 3
- [PyTorch 2.2.2-1.5.11-SNAPSHOT] Exception java.lang.UnsatisfiedLinkError: no jnitorch in java.library.path on WIndows HOT 15
- Error trying to build android-arm HOT 3
- [PyTorch 2.2.2-1.5.11-SNAPSHOT] Training produces poor MNIST model on Windows HOT 7
- [PyTorch] Training is very slow on Linux. HOT 9
- Shaka-Packager Preset HOT 3
- [PyTorch] torch.cuda.is_bf16_supported() is missing HOT 8
- [PyTroch] torch_cuda.set_device() and torch.manual_seed() hang HOT 5
- UnsatisfiedLinkError with tesseract-platform after upgrade to 5.3.4-1.5.10 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javacpp-presets.