Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

How to use openCV lib in an Eclipse RCP App.

$
0
0
Hello, I want to use opencv library with its native library in my **RCP App**. Everything is fine if I add the jar lib in plugin class path using Build Path -> Configure Build Path... etc. and specifying the native library for this jar lib. Another possibility (the one that I would like to use) is to create a plugin from this jar lib using "create new plugin from external jar archive" and to add Bundle-NativeCode directive to Manifest.MF. Something like that : Bundle-NativeCode: nativeLibs/libopencv_java300.dylib; osname=MacOSX; processor=x86-64 Then, in the RCP App., I first remove everything from class path and, without changing anything in source code, add this new plugin in plugin dependencies of the RCP App. Now, when I run the App., opencv library seems to be correctly loaded (using System.LoadLibrary()) but I have this error message when I try to use its functionnalities : Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_eye(III)J I've been looking on internet to find an answer but without success. I have probably missed something but what ? I hope someone has already done that before. Please could you help me ? Thanks a lot, frank PS : Everything is done using eclipse-RCP-4.4.2, mac OS X.9.5 and OpenCV 3.0 (OpenCV lib has been compiled on the machine)

Viewing all articles
Browse latest Browse all 41027

Trending Articles