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

X86_32 missing valid Windows pattern for os.arch #11

Closed
phrack opened this issue Nov 17, 2015 · 2 comments
Closed

X86_32 missing valid Windows pattern for os.arch #11

phrack opened this issue Nov 17, 2015 · 2 comments

Comments

@phrack
Copy link

phrack commented Nov 17, 2015

New versions of Oracle's 32-bit JRE for Windows often have os.arch set to x86 (x86_64 being the 64-bit version). It appears "x86" needs to be added to the list of patterns in this line:

X86_32("i386", "i686"),
. This is causing an UnsupportedOperationException to be thrown even in cases where the OS and architecture actually are supported, e.g. on both 32-bit and 64-bit Windows with 32-bit Oracle JRE:

Caused by: java.lang.UnsupportedOperationException: Architecture "x86" is not supported. at nu.pattern.OpenCV$Arch.getCurrent(OpenCV.java:88) at nu.pattern.OpenCV.extractNativeBinary(OpenCV.java:291) at nu.pattern.OpenCV.access$100(OpenCV.java:22) at nu.pattern.OpenCV$SharedLoader.(OpenCV.java:178) at nu.pattern.OpenCV$SharedLoader.(OpenCV.java:162) at nu.pattern.OpenCV$SharedLoader$Holder.(OpenCV.java:202) ...

@phrack
Copy link
Author

phrack commented Nov 17, 2015

PS. Here is how we fetch the dependency, which I suppose is a fork of this project to add Windows support: compile 'org.openpnp:opencv:2.4.11-1.

@michaelahlers
Copy link
Contributor

@vonnieda addressed this in his fork. Recommend users migrate to his package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants