himanshukandwal / javacv

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

Latest version of JavaCV causes UnsatisfiedLinkErrors on OS X #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using JavaCV build 07/05/11
2. Calling IplImage.create()

What is the expected output? What do you see instead?
Using JavaCV build 06/10/11, I did not have this problem. Using the latest 
build, I get this error in NetBeans:

java.lang.Exception: java.lang.UnsatisfiedLinkError: 
/private/var/folders/yi/yieDSULMFTugS-7lqRN4d++++TI/-Tmp-/libjniopencv_core85042
98950445158047.dylib:  Library not loaded: lib/libopencv_core.2.3.dylib   
Referenced from: 
/private/var/folders/yi/yieDSULMFTugS-7lqRN4d++++TI/-Tmp-/libjniopencv_core85042
98950445158047.dylib   Reason: image not found

What version of the product are you using? On what operating system?
JavaCV 07/05/11 on Mac OSX 10.6.8, on Netbeans 7.

Please provide any additional information below.

Switching back to the 06/10/11 build fixes the issue.

Original issue reported on code.google.com by h4n9...@gmail.com on 16 Jul 2011 at 12:01

GoogleCodeExporter commented 8 years ago
Please install OpenCV 2.3.0 as indicated in the README.txt file.

Original comment by samuel.a...@gmail.com on 16 Jul 2011 at 4:09

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I also had the same problem. When I try to compile it says "Exception in thread 
"main" java.lang.UnsatisfiedLinkError: 
C:\Windows\Temp\jniopencv_core837597512979898575.dll: Can't find dependent 
libraries" and fails.

Edit: I'm a windows user and already using 2.31.

Original comment by meany...@gmail.com on 22 Jul 2011 at 2:52

GoogleCodeExporter commented 8 years ago
FYI:
Common issues with OpenCV under Windows 7
http://code.google.com/p/javacv/wiki/Windows7AndOpenCV

Original comment by samuel.a...@gmail.com on 4 Sep 2011 at 2:55

GoogleCodeExporter commented 8 years ago
Hi guys,
I had similar problem on Mac. My JavaCV based program couldn't find some libs 
belonging to OpenCV version 3.0.
I decided to download and install openCV without MacPort or cmake.
Here it is what I did:
 I downloaded copied donloaded OpenCV to /opt folder and then extracted.
sudo cp OpenCV-2.3.0.tar.bz2 /opt
cd /opt
sudo tar -xzf OpenCV-2.3.0.tar.bz2
cd OpenCV-2.2.0
sudo cmake -G "Unix Makefiles"
sudo make -j8
sudo make install

Now I know it finally works, as I can see it working.

Original comment by marekbar...@googlemail.com on 7 Nov 2011 at 8:45

GoogleCodeExporter commented 8 years ago
Yes thanks, It worked for me. I am using Javacv.jar and javacpp.jar from 
javacv-0.3-bin in classpath. I installed OpenCV2.4.3 in similar way mentioned 
above. I could successfully run some groovy scripts. 

Original comment by nslakshm...@gmail.com on 21 Nov 2012 at 8:29