2010-10-08 28 views
1

Je suis novice en ce qui concerne JNI2OpenCV. Il a des erreurs concernant java.library.path. J'ai lu ce fil OpenCV to JNI how to make it work? mais il semble que ce soit un cas différent du mien. Voici les erreurs que je reçois:Bibliothèques manquantes dans JNI2OpenCV?

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\JNI2OpenCV.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028) at jni2opencv.JNIOpenCV.(FaceDetection.java:6) at jni2opencv.FaceDetection.(FaceDetection.java:16) at jni2opencv.Main.main(Main.java:18)

J'ai copié les dll dans mes bibliothèques spécifiques et je reçois toujours ces erreurs. J'ai même essayé Dependency Walker, mais je n'avais aucune idée de ce qu'il me disait. De l'aide? Je vous remercie! :)

Répondre

2
  • Vérifiez que vous avez installé microsoft C++ 2010 redistribuable.
  • Assurez-vous que "C: \ opincv \ build \ common \ tbb" est votre chemin d'accès dans les variables d'environnement.
  • Téléchargez javacv-0.1.jar et rendez votre fichier dans votre projet.
  • Si le problème existe, téléchargez cv100.dll, cvcam100.dll, cxcore100.dll, opencv_highgui220.dll depuis Internet et copiez-le dans system32.
  • Assurez-vous également que la bibliothèque OpenCV est compatible avec javaCV et que le dossier openCV contient un dossier nommé "bin".
  • Si le problème persiste, installez openCVdotnet.