现在我意识到,在我没有参考图书馆等方面,这将是一个愚蠢/愚蠢的东西,但是我已经玩了几个小时了,我似乎无法修复它。当我尝试使用JavaCV中的任何库时,我得到了这个:
2012-05-22 23:29:27.214:
WARN:oejw.WebSocketConnectionRFC6455:java.lang.UnsatisfiedLinkError:
/private/var/folders/lr/q3z8sl1x5_xcf1590495xh9r0000gn/T/libjniopencv_core4427354466625539453.dylib:
Library not loaded: lib/libopencv_core.2.4.dylib
Referenced from:
/private/var/folders/lr/q3z8sl1x5_xcf1590495xh9r0000gn/T/libjniopencv_core4427354466625539453.dylib
Reason: image not found for SCEP@2c31f2a7{
l(/127.0.0.1:61948)<->r(/127.0.0.1:9999),d=true,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=1r
}-{
WebSocketServletConnectionRFC6455 p=WebSocketParserRFC6455@4d91f801 state=DATA buffer= g=WebSocketGeneratorRFC6455@2a313170 closed=false buffer=-1
}
java.lang.UnsatisfiedLinkError:
/private/var/folders/lr/q3z8sl1x5_xcf1590495xh9r0000gn/T/libjniopencv_core4427354466625539453.dylib:
Library not loaded: lib/libopencv_core.2.4.dylib
Referenced from:
/private/var/folders/lr/q3z8sl1x5_xcf1590495xh9r0000gn/T/libjniopencv_core4427354466625539453.dylib
Reason: image not found
我使用mac端口安装了OpenCV(遵循本指南:http://salemsayed.me/?p=240),我可以让Xcode编译一个示例并生成正确的输出,我只是无法使我的基本java应用程序工作... < / p>
我应该把dylib放在哪里,或者我应该如何在eclipse中引用它?