在Eclipse中将openCV添加到java buildpath [英] adding openCV to java buildpath in eclipse
问题描述
将openCV添加到我的eclipse项目的buildpath中有问题。我已经遵循本网站的教程中的说明: http://docs.opencv.org/2.4.4-beta/doc/tutorials/introduction/desktop_java/java_dev_intro.html#create-a-simple-java-project-in- eclipse
I have problems adding openCV to the buildpath of my eclipse-project. I have followed the instructions in the tutorial on this site: http://docs.opencv.org/2.4.4-beta/doc/tutorials/introduction/desktop_java/java_dev_intro.html#create-a-simple-java-project-in-eclipse
但是执行代码片段会给出这个控制台输出:
But executing the code fragment gives this console output:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv-java2.4.4 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at camStatisticsTests.RawTests.main(RawTests.java:20)
为了让openCV使用java和eclipse,我需要做些什么。我想使用它作为一个普通的java库。
What do I have to do in order to get openCV working with java and eclipse. i want to use it as a normal java library.
推荐答案
我找到了解决方案。该教程跳过步骤,其中必须添加一个dll到本机构建路径。 dll位于opencv / build / java / x86的32位java我猜。虽然我不知道为什么会这样。如果有人可以解释一下,会很好。
I have found the solution. The tutorial skips the step, where one has to add a dll to the "native build path". The dll is located in "opencv/build/java/x86" for 32-bit java i guess. although i dont know why this is the case. Would be nice, if someone could explain that.
这篇关于在Eclipse中将openCV添加到java buildpath的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!