bytedeco/javacv

Converting Image JavaCV UnsatisfiedLinkError

Open

#1,141 opened on Feb 19, 2019

View on GitHub
 (14 comments) (0 reactions) (0 assignees)Java (1,583 forks)batch import
bugenhancementhelp wantedquestion

Repository metrics

Stars
 (6,985 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

This is the same stacktrace as #1128, I'm using 1.4.4 already.

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.Pointer.allocate(Ljava/nio/Buffer;)V
	at org.bytedeco.javacpp.Pointer.allocate(Native Method)
	at org.bytedeco.javacpp.Pointer.<init>(Pointer.java:99)
	at org.bytedeco.javacv.OpenCVFrameConverter.convertToIplImage(OpenCVFrameConverter.java:99)
	at org.bytedeco.javacv.OpenCVFrameConverter$ToIplImage.convert(OpenCVFrameConverter.java:47)
	at testing.IntegrationTest.main(IntegrationTest.java:22)

I am attaching my Pom.xml, and my example code that cause this problem, most of the openCV functions seem to work, but this one is the only problem function shown in my test below. pomFile.txt

Java code that replicates the error:

public class IntegrationTest {

	public static void main(String[] args) throws AWTException {
		Rectangle screenRect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
		BufferedImage capture = new Robot().createScreenCapture(screenRect);
		ToIplImage iplConverter = new OpenCVFrameConverter.ToIplImage();
		Java2DFrameConverter java2dConverter = new Java2DFrameConverter();
		
		iplConverter.convert(java2dConverter.convert(capture));
	}
}

Thanks in Advance, Sean

Contributor guide