rindarith / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

jniopencv_imgproc8909027277480521479.dll: Can't find dependent libraries #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.When trying execute any instruction javacv under eclipse
2.I currently installed window xp ,opencv 2.3.1,eclipse

What is the expected output? What do you see instead?
import com.googlecode.javacv.CanvasFrame;

import static com.googlecode.javacv.cpp.opencv_core.IplImage;
import static com.googlecode.javacv.cpp.opencv_highgui.cvLoadImage;

public class MyFirstOpenCVApp {

    public static void main(String[] args) {

       final IplImage image = cvLoadImage("boldt.jpg");
       final CanvasFrame canvas = new CanvasFrame("My Image");
       request closing of the application when the image window is closed
       canvas.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);

        canvas.showImage(image);
    }
}

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Documents and 
Settings\User\Local Settings\Temp\jniopencv_imgproc8909027277480521479.dll: 
Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at com.googlecode.javacpp.Loader.load(Loader.java:337)
    at com.googlecode.javacpp.Loader.load(Loader.java:271)
    at com.googlecode.javacv.cpp.opencv_imgproc.<clinit>(opencv_imgproc.java:96)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.googlecode.javacpp.Loader.load(Loader.java:291)
    at com.googlecode.javacv.cpp.opencv_highgui.<clinit>(opencv_highgui.java:91)
    at MyFirstOpenCVApp.main(MyFirstOpenCVApp.java:23)

What version of the product are you using? On what operating system?
I use javacv-bin-20110820.zip.
Under eclipse ganymedes on Window Xp 32_bit
And try to run the application in the eclipse.

Sorry,I am a Chinese student,English expression is poor,please solve my 
question,Thanks!

Original issue reported on code.google.com by gast...@gmail.com on 12 Sep 2011 at 2:17

GoogleCodeExporter commented 9 years ago
Have you consulted this page and made sure of everything?
Common issues with OpenCV under Windows 7
http://code.google.com/p/javacv/wiki/Windows7AndOpenCV

Original comment by samuel.a...@gmail.com on 15 Sep 2011 at 8:36

GoogleCodeExporter commented 9 years ago
I am assuming your issue has been resolved after reading the wiki page, but 
please let me know if this is not the case.

Original comment by samuel.a...@gmail.com on 6 Oct 2011 at 12:44

GoogleCodeExporter commented 9 years ago
Greetings Sam, I am experiencing the same issue and I have poured over the 
recommendations on the site. I have tried both 32 and 64 bit versions in Win7 
and still receive a jniopencv_core##########.dll error. Can't find dependant 
libraries. It seems to be looking for these .dlls in my windows\temp 
directory...

Any recommendations? Do you see this issue often?

Best regards,

Jim

Original comment by jimbolysses on 13 Oct 2011 at 10:37

GoogleCodeExporter commented 9 years ago
You could use http://www.dependencywalker.com/ to figure out what you are 
missing still... Windows isn't too friendly about its error messages, so we 
have to use third party tools like that to get better information.

Original comment by samuel.a...@gmail.com on 14 Oct 2011 at 12:32

GoogleCodeExporter commented 9 years ago
This is still a huge open issue.  I'm trying to use javacv with Opencv 2.3.1 on 
Windows 7 and I get this exact same error.  I've tried every combination of:

-precompiled and self-compiled binaries
-user and system path
-path and classpath variables

I've tried adding about 50 paths, strings, and binaries to my environment 
variables.  No beans.  Somebody please shed some light on this issue

Original comment by bigdatab...@gmail.com on 11 Apr 2012 at 3:59

GoogleCodeExporter commented 9 years ago
Could you try to remove all those PATHs, binaries and everything, undo all that 
you have done, and then simply try to follow the instructions on this page:

Common issues with OpenCV under Windows 7
http://code.google.com/p/javacv/wiki/Windows7AndOpenCV

Please do NOT try to do anything else that is not on that page. Reformat your 
whole computer and reinstall Windows if you have to, and please let me know if 
this does not work, thank you.

Original comment by samuel.a...@gmail.com on 15 Apr 2012 at 1:58

GoogleCodeExporter commented 9 years ago
Because OpenCV version and JavaCV version is not matching..
watch it.

Original comment by KimYeon...@gmail.com on 15 May 2012 at 9:30

GoogleCodeExporter commented 9 years ago
I had same issue, RTFM at 
http://code.google.com/p/javacv/wiki/Windows7AndOpenCV helped: in my case I  
copied OpenCV to custom folder (not C:\OpenCV as doc states) and tried to 
adjust %PATH%. The problem was I missed tbb.dll, which should be also in %PATH%

Original comment by alex.fra...@gmail.com on 24 Jun 2012 at 9:28

GoogleCodeExporter commented 9 years ago
Hi,

I can solve the problem by adding the java bin directory and opencv bin 
directory to the environment variable PATH (in user variables).

I didn't move OpenCV to C:\OpenCV as suggested in the FAQ.

Best,
Diko

Original comment by marD...@gmail.com on 13 Jul 2012 at 2:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
just go to hell fix the problems first and then invite people to use your 
program

Original comment by ii...@yahoo.com on 19 Aug 2012 at 9:29

GoogleCodeExporter commented 9 years ago
Because OpenCV version and JavaCV version is not matching..
This is the issue make sure you follow the link suggested by Samuel and use 
opencv2.5 and extract to c:/ which will not require adding path variable etc.,

Original comment by arulgane...@gmail.com on 4 Sep 2013 at 7:34