Skip to content
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

UnsatisfiedLinkError with jniFlyCapture2.dll #403

Closed
fmatulic opened this issue Mar 28, 2017 · 3 comments
Closed

UnsatisfiedLinkError with jniFlyCapture2.dll #403

fmatulic opened this issue Mar 28, 2017 · 3 comments

Comments

@fmatulic
Copy link

This is similar to issue #337, but I get different different DLLs missing from Dependency Walker.

image

This is the output from the JVM:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniFlyCapture2 in java.library.path
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
	at java.lang.Runtime.loadLibrary0(Runtime.java:870)
	at java.lang.System.loadLibrary(System.java:1122)
	at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:804)
	at org.bytedeco.javacpp.Loader.load(Loader.java:613)
	at org.bytedeco.javacpp.Loader.load(Loader.java:530)
	at org.bytedeco.javacpp.FlyCapture2.<clinit>(FlyCapture2.java:10)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at org.bytedeco.javacpp.Loader.load(Loader.java:585)
	at org.bytedeco.javacpp.Loader.load(Loader.java:530)
	at org.bytedeco.javacpp.FlyCapture2$FC2Version.<clinit>(FlyCapture2.java:709)
	at FlyCapture2Test.PrintBuildInfo(FlyCapture2Test.java:28)
	at FlyCapture2Test.main(FlyCapture2Test.java:135)
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\joe\.javacpp\cache\flycapture-2.9.3.43-1.3-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\jniFlyCapture2.dll: Can't find dependent libraries
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
	at java.lang.Runtime.load0(Runtime.java:809)
	at java.lang.System.load(System.java:1086)
	at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:784)
	... 10 more
 

My OS is Win7 and I have the latest version of the FlyCapture SDK.

@jpsacha
Copy link
Member

jpsacha commented Mar 28, 2017

If you have FlyCapture 2.10.+ it may be an issue. Current release of the presets supports 2.9. See also PR #400

@fmatulic
Copy link
Author

fmatulic commented Mar 28, 2017

Thanks for the reply. I have FlyCapture v2.10.3.266 installed, but as you can see, the version number of that cached jar in the console output says 2.9.3.

@saudet
Copy link
Member

saudet commented Jan 17, 2018

With JavaCPP 1.4, binaries have been released for 2.11, and they should be working well:
http://search.maven.org/#search%7Cga%7C1%7Cbytedeco%20flycapture
If you have any issues with them though, please let me know!

@jpsacha Thanks for maintaining those presets!

@saudet saudet closed this as completed Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants