问题
Now i realise that is will be something dumb/moronic on my part in not referenceing libraries etc, however i've been play with this for a couple of hours now and I can't seem to fix it. When i attempt to use any libraries from JavaCV i get this:
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
I installed OpenCV using mac ports (following this guide: http://salemsayed.me/?p=240) and i can get Xcode to compile an example and generate the correct out, i just can't make my basic java app work...
Where should i be putting the dylib in question, or how should i reference it within eclipse?
来源:https://stackoverflow.com/questions/10711088/javacv-unsatisfied-link