jinjudnjs / javacv

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

error in cxcore #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
i get the following after creating a file named telda and placing the same code 
for test2.....
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load 
library 'cxcore': The specified module could not be found.

        at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:163)
        at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:236)
        at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:199)
        at name.audet.samuel.javacv.jna.Loader.load(Loader.java:44)
        at name.audet.samuel.javacv.jna.cxcore.<clinit>(cxcore.java:115)
        at name.audet.samuel.javacv.jna.highgui.<clinit>(highgui.java:73)
        at name.audet.samuel.javacv.OpenCVFrameGrabber.start(OpenCVFrameGrabber.java:96)
        at Telda.main(Telda.java:21)

the thing is that i tried to install it b4 i'm using windows 7 home premium, it 
installed and worked, i had to reformat now i don't know what i am missing, i 
installed opencv from sourceforge, i added the path to all users.
now i don't know whats the problem,
please help
thank you very very much

Original issue reported on code.google.com by Xai...@gmail.com on 26 Jul 2010 at 5:42

GoogleCodeExporter commented 9 years ago
Can you confirm that you are using a 32-bit version of Java?

Original comment by samuel.a...@gmail.com on 27 Jul 2010 at 6:43

GoogleCodeExporter commented 9 years ago
Hi,

I have a similar problem when trying to run ffmpeg-java. I tried the first 
example of the README file (with the difference I used a local movie file):

java -cp ./ffmpeg-java.jar:./lib/jna.jar 
net.sf.ffmpeg_java.example.PlayerExample test.mov

and got the following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up 
function 'url_read_complete': /usr/lib64/libavformat.so.52.31.0: undefined 
symbol: url_read_complete
        at com.sun.jna.Function.<init>(Function.java:179)
        at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:345)
        at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:325)
        at com.sun.jna.Native.register(Native.java:1319)
        at com.sun.jna.Native.register(Native.java:1014)
        at net.sf.ffmpeg_java.AVFormatLibrary.<clinit>(AVFormatLibrary.java:26)
        at net.sf.ffmpeg_java.example.PlayerExample.main(PlayerExample.java:40)

I'm running Debian Squeeze 64 bits. I downloaded JNA 3.2.5 from 
https://jna.dev.java.net/servlets/ProjectDocumentList?folderID=12139&expandFolde
r=12139&folderID=7408

Any help would be much appreciated.

Thank you very much,

Adriano

Original comment by adriano....@gmail.com on 27 Jul 2010 at 9:34

GoogleCodeExporter commented 9 years ago
i used to have 64 bit java but now changed to 32 but now the program starts 
then crashes with this error:
init:
Deleting: C:\Users\Zainalabdin\Desktop\telda\javacv\build\built-jar.properties
deps-jar:
Updating property file: 
C:\Users\Zainalabdin\Desktop\telda\javacv\build\built-jar.properties
ffmpeg-java.init:
ffmpeg-java.deps-jar:
Updating property file: 
C:\Users\Zainalabdin\Desktop\telda\javacv\build\built-jar.properties
ffmpeg-java.compile:
ffmpeg-java.jar:
Compiling 1 source file to 
C:\Users\Zainalabdin\Desktop\telda\javacv\build\classes
compile-single:
run-single:
[ 0.9973844, 0.07097446, 7.6573076
  -0.07208045, 0.99071026, 64.5765
  -9.575546E-6, -2.0714138E-4, 0.9932348 ]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0a20e4e4, pid=4092, tid=1716
#
# JRE version: 6.0_19-b04
# Java VM: Java HotSpot(TM) Client VM (16.2-b04 mixed mode, sharing windows-x86 
)
# Problematic frame:
# C  [libcv200.dll+0x2e4e4]
#
# An error report file with more information is saved as:
# C:\Users\Zainalabdin\Desktop\telda\javacv\hs_err_pid4092.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
Output #0, avi, to 'output.avi':
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
    Stream #0.0: Video: rawvideo, yuv420p, 640x480, q=2-31, 19660 kb/s, 90k tbn, 30 tbc
#
Java Result: 1
BUILD SUCCESSFUL (total time: 8 seconds)

please help
thank you

Original comment by Xai...@gmail.com on 27 Jul 2010 at 11:18

GoogleCodeExporter commented 9 years ago
although this might seem a jre problem i have installed several jres and i'm 
sure that it used to work with the same jre...
but it says there is an error in the native code in one site (the site says 
this error might have been caused by native code problem)

please tell me if there is something that i'm missing, i've downloaded opencv 
2.0.0 from source forge, chose the option to add to path for all users..... but 
i still don't know what the problem is.....i'm using 32 bit java on 64 bit 
windows 7.
thank you

Original comment by Xai...@gmail.com on 27 Jul 2010 at 11:50

GoogleCodeExporter commented 9 years ago
Since you are running 32-bit x86, you should try to recompile OpenCV without 
SSE instructions as indicated in the README file. If you choose 64-bit x86 
instead, then you need to compile 64-bit DLLs for OpenCV

As for the FFmpeg, AFAIK neither Debian nor Ubuntu bundle FFmpeg 0.6 yet, only 
0.5.. you will need to install version 0.6 as indicated in the README file

Original comment by samuel.a...@gmail.com on 28 Jul 2010 at 12:43

GoogleCodeExporter commented 9 years ago
Hi,

Thanks a lot for your reply. You're right; the version of ffmpeg in Debian 
Squeeze right now is 0.5.2. However, although I saw the FFmpeg 0.6 requirement 
on the javacv page, the README file that comes with the ffmpeg-java package 
(file ffmpeg-java-bin-20100405.zip) suggests ffmpeg 0.5. Maybe this needs to be 
updated?

I use OpenCV a lot through its Python wrappers and, at least for now, I was 
mainly interested in ffmpeg-java. My hope is that I would be able to use it in 
Jython in order to read/write media files. I really miss the ability to handle 
media files in Python. PyFFmpeg looks promising, but right now lacks the 
ability to encode videos :-(

Thanks a lot,

Adriano

Original comment by adriano....@gmail.com on 28 Jul 2010 at 5:08

GoogleCodeExporter commented 9 years ago
That's right, I had not updated the README.txt file. I have just released a new 
version with an updated one :) BTW, FFmpeg can easily be compiled from source 
code under Linux.. You just need to make sure the "shared libraries" option is 
enabled..

And yes, I think Jython is a good idea for Python programmers. It supports 
concurrency (via threads), contrarily to CPython.

Original comment by samuel.a...@gmail.com on 30 Jul 2010 at 11:42

GoogleCodeExporter commented 9 years ago
i confirm my problem was solved after installing the latest opencv vc.
thank you very much

Original comment by Xai...@gmail.com on 3 Aug 2010 at 2:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi,

I'm a first time user of OpenCV, I have been having the same error as above;

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: Could 
not initialize class name.audet.samuel.javacv.jna.cxcore
        at name.audet.samuel.javacv.JavaCvErrorCallback.redirectError(JavaCvErrorCallback.java:95)
        at name.audet.samuel.procamcalib.MainFrame.<init>(MainFrame.java:144)
        at name.audet.samuel.procamcalib.MainFrame$25.run(MainFrame.java:1322)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

I am running windows 7 ultimate, 64 bit. I also installed the OpenCV 2.1 and 
all the other required software as described in the README. Can some one offer 
any suggestion to rectify the problem.

Kind regards,
A.

Original comment by andre01...@gmail.com on 11 Sep 2010 at 7:23

GoogleCodeExporter commented 9 years ago
Andre, if you are running a 64-bit version of Java, you also need to compile a 
64-bit version of OpenCV. If you are running a 32-bit version of Java, then you 
need a 32-bit version of OpenCV. Make sure they match

Original comment by samuel.a...@gmail.com on 12 Sep 2010 at 1:40

GoogleCodeExporter commented 9 years ago
Thank you very much, the problem has been resolved.

Original comment by andre01...@gmail.com on 13 Sep 2010 at 6:23

GoogleCodeExporter commented 9 years ago
I am a beginner of OpenCV.
I have the same problem, which Andre faced earlier. 
Could you give me idea how to compile a 64-bit version of OpenCV?

Do I need to reference OpenCV somewhere in the eclipse library?

Kind Regards,
Palupi

Original comment by palupi...@gmail.com on 26 Oct 2010 at 10:11

GoogleCodeExporter commented 9 years ago
Compiling OpenCV correctly depends on your platform. Please refer to the 
documentation of OpenCV.

As explained in the README.txt file, JavaCV looks for OpenCV in a few places, 
the system PATH, most notably.

BTW, if you are having problem using JavaCV, please post messages in the 
discussion group, as I am in theory the only one reading any messages you post 
here, thank you

Original comment by samuel.a...@gmail.com on 27 Oct 2010 at 7:58

GoogleCodeExporter commented 9 years ago
Can anyone help for following error..
I'm doing my face recognition so tat i cant run this.. Please do help me.

run:
File does not exist
C:\Users\Narasimhan\Desktop\Documents\Projects\jface-rec

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: Unable 
to load library 'cxcore': The specified module could not be found.

    at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:163)
    at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:236)
    at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:199)
    at name.audet.samuel.javacv.jna.Loader.load(Loader.java:44)
    at name.audet.samuel.javacv.jna.cxcore.<clinit>(cxcore.java:115)
    at name.audet.samuel.javacv.jna.highgui.<clinit>(highgui.java:73)
    at imageoper.Main.facedetect(Main.java:38)
    at facerecognition.gui.FaceRecManager.jButton1ActionPerformed(FaceRecManager.java:278)
    at facerecognition.gui.FaceRecManager.access$000(FaceRecManager.java:26)
    at facerecognition.gui.FaceRecManager$1.actionPerformed(FaceRecManager.java:77)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6288)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6053)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4651)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:616)
    at java.awt.EventQueue$2.run(EventQueue.java:614)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
BUILD SUCCESSFUL (total time: 49 seconds)

Thanks in advance

Original comment by smilengo...@gmail.com on 9 Apr 2013 at 5:16

GoogleCodeExporter commented 9 years ago
Can anyone help for following error..
I'm doing my face recognition so tat i cant run this.. Please do help me.

run:
File does not exist
C:\Users\Narasimhan\Desktop\Documents\Projects\jface-rec

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: Unable 
to load library 'cxcore': The specified module could not be found.

    at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:163)
    at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:236)
    at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:199)
    at name.audet.samuel.javacv.jna.Loader.load(Loader.java:44)
    at name.audet.samuel.javacv.jna.cxcore.<clinit>(cxcore.java:115)
    at name.audet.samuel.javacv.jna.highgui.<clinit>(highgui.java:73)
    at imageoper.Main.facedetect(Main.java:38)
    at facerecognition.gui.FaceRecManager.jButton1ActionPerformed(FaceRecManager.java:278)
    at facerecognition.gui.FaceRecManager.access$000(FaceRecManager.java:26)
    at facerecognition.gui.FaceRecManager$1.actionPerformed(FaceRecManager.java:77)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6288)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6053)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4651)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:616)
    at java.awt.EventQueue$2.run(EventQueue.java:614)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
BUILD SUCCESSFUL (total time: 49 seconds)

Thanks in advance

Original comment by sunil15a...@gmail.com on 12 Apr 2014 at 5:43

GoogleCodeExporter commented 9 years ago
Please try again with a more recent version of JavaCV.

Original comment by samuel.a...@gmail.com on 7 May 2014 at 1:45