HamoudaOthman / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

UnsatisfiedLinkError when creating CvPoint2D32f #54

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Try to create an array of CvPoints:
CvPoint2D32f currentFeatures = new CvPoint2D32f(4); //or any number

What is the expected output? What do you see instead?
currentFeatures is allocated successfully

Instead this happens:
Exception in thread "main" java.lang.UnsatisfiedLinkError: 
com.googlecode.javacv.cpp.opencv_core$CvPoint2D32f.allocateArray(I)V
    at com.googlecode.javacv.cpp.opencv_core$CvPoint2D32f.allocateArray(Native Method)
    at com.googlecode.javacv.cpp.opencv_core$CvPoint2D32f.<init>(opencv_core.java:1809)

What version of the product are you using? On what operating system?
javacv 20110219, OpenCV from MacPorts, 2.2.0, OSX 10.6.6

Please provide any additional information below.
There seems to be a temporary workaround; if I add a line:
CvPoint p = new CvPoint(1); <--- dummy var
CvPoint2D32f currentFeatures = new CvPoint2D32f(4);

There won't be any error

Original issue reported on code.google.com by Kurayami...@gmail.com on 3 Mar 2011 at 5:25

GoogleCodeExporter commented 8 years ago
Yes, I'm having some issues with JavaCPP and loading libraries automatically.. 
It should be fixed in the next release

Original comment by samuel.a...@gmail.com on 3 Mar 2011 at 5:46

GoogleCodeExporter commented 8 years ago
Latest version of JavaCV fixes most occurrences of `UnsatisfiedLinkError`. 
Please reopen if you still encounter them, thank you

Original comment by samuel.a...@gmail.com on 7 Apr 2011 at 7:54