bytedeco / procamcalib

A User-Friendly Method to Calibrate Cameras and Projector-Camera Systems
GNU General Public License v2.0
74 stars 26 forks source link

Trouble on Running Script #2

Closed yangyanzhe closed 9 years ago

yangyanzhe commented 9 years ago

Hi,

Thanks for your working. I encounter some problems and hope to get help. Does anyone else encounter the same problem?

I work under Ubuntu 14.04 with JAVA 1.8.0_51(Oracle). The binary is downloaded from the link in readme.md. When I execute ./procamcalib-oceanlook or ./procamcalib-nativelook, it will crash. The traceroute is shown below:

SEVERE: Could not start ProCamCalib
java.lang.Exception: java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.opencv_core
    at org.bytedeco.procamcalib.MainFrame.<init>(MainFrame.java:204)
    at org.bytedeco.procamcalib.MainFrame$25.run(MainFrame.java:1309)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.opencv_core
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at org.bytedeco.javacpp.Loader.load(Loader.java:390)
    at org.bytedeco.javacpp.Loader.load(Loader.java:358)
    at org.bytedeco.javacpp.opencv_core$CvErrorCallback.<clinit>(opencv_core.java:8233)
    at org.bytedeco.procamcalib.MainFrame.<init>(MainFrame.java:186)
    ... 15 more

Look forward to your reply.

Thanks!

yangyanzhe commented 9 years ago

I change the platform to be Windows 7 with JAVA 1.8.0(Oracle). No problem.

saudet commented 9 years ago

This means your version of Linux is using old version of the system libraries: https://github.com/bytedeco/javacpp-presets/issues/22 Please try to rebuild from source.

saudet commented 9 years ago

FYI, some precompiled binaries are available here: https://github.com/poqudrof/javacpp-presets/releases/tag/1.0

yangyanzhe commented 9 years ago

Thanks for your reply. :+1:

saudet commented 9 years ago

This should be fixed in version 1.1. Thanks for reporting!