ymuruvi / proclipsing

Automatically exported from code.google.com/p/proclipsing
0 stars 0 forks source link

OpenGL linking broken with Processing 1.5 #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a project importing OpenGL;
2. Import processing.opengl.*;
3. Set OPENGL as the renderer in size();

What is the expected output? What do you see instead?
I expected to use OpenGL as the renderer for the sketch, but it triggers an 
exception. This started to happen with Processing 1.5. I've been using 
Proclipsing for more than a year and never had this problem before.

What version of the product are you using? On what operating system?
MacOSX 10.6.6
Processing 1.5

Please provide any additional information below.

---
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: no jogl 
in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1754)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1045)
    at com.sun.opengl.impl.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:189)
    at com.sun.opengl.impl.NativeLibLoader.access$000(NativeLibLoader.java:49)
    at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibLoader.java:80)
    at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:103)
    at com.sun.opengl.impl.NativeLibLoader.access$200(NativeLibLoader.java:49)
    at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:111)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:109)
    at com.sun.opengl.impl.macosx.MacOSXGLDrawableFactory.<clinit>(MacOSXGLDrawableFactory.java:53)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:108)
    at processing.opengl.PGraphicsOpenGL.allocate(PGraphicsOpenGL.java:265)
    at codeanticode.glgraphics.GLGraphics.allocate(GLGraphics.java:1037)
    at processing.core.PGraphics3D.setSize(PGraphics3D.java:326)
    at codeanticode.glgraphics.GLGraphics.setSize(GLGraphics.java:150)
    at processing.core.PApplet.makeGraphics(PApplet.java:1325)
    at processing.core.PApplet.size(PApplet.java:1146)
    at processing.core.PApplet.size(PApplet.java:1106)
    at text1dot5.Text1dot5.setup(Text1dot5.java:10)
    at processing.core.PApplet.handleDraw(PApplet.java:1608)
    at processing.core.PApplet.run(PApplet.java:1530)
    at java.lang.Thread.run(Thread.java:680)

---

Original issue reported on code.google.com by felipe....@gmail.com on 22 Apr 2011 at 8:42

GoogleCodeExporter commented 8 years ago
I forgot to mention that I'm using the last version of Proclipsing, with the 
new path to libraries (mode/java) fixed.

Original comment by felipe....@gmail.com on 22 Apr 2011 at 8:48

GoogleCodeExporter commented 8 years ago
Thanks  Felipe,

I see the problem.  We'll try to get a fix for this up soon.

Matt

Original comment by maddpar...@gmail.com on 24 Apr 2011 at 9:31

GoogleCodeExporter commented 8 years ago
Hey Felipe,

Just posted a fix.  If you do an update to your installed eclipse plugins, it 
should work now.

Matt

Original comment by maddpar...@gmail.com on 29 Apr 2011 at 5:32

GoogleCodeExporter commented 8 years ago

Original comment by maddpar...@gmail.com on 1 May 2011 at 2:59

GoogleCodeExporter commented 8 years ago
I'm experiencing the same problem (almost). 

Windows 7 64bit
Processing 1.5.1
Proclipsing 1.0.9
P5Exporter 1.0.6

------------------------------------------
package test3d01;

import processing.core.PApplet;
import processing.opengl.*;
import javax.media.opengl.GL;

public class Test3D01 extends PApplet {

    public void setup() {
        size(400, 400, OPENGL);
    }

    public void draw() {
        ellipse(100,100,100,100);
    }

    public static void main(String _args[]) {
        PApplet.main(new String[] { test3d01.Test3D01.class.getName() });
    }
}

----------------------------------------------
As soon as I add OPENGL to size(), i get

Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: 
C:\Users\Tom\workspace\test_toxicGeo\lib\base\opengl\jogl.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.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.sun.opengl.impl.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:189)
    at com.sun.opengl.impl.NativeLibLoader.access$000(NativeLibLoader.java:49)
    at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibLoader.java:80)
    at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:103)
    at com.sun.opengl.impl.NativeLibLoader.access$200(NativeLibLoader.java:49)
    at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:111)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:109)
    at com.sun.opengl.impl.windows.WindowsGLDrawableFactory.<clinit>(WindowsGLDrawableFactory.java:60)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:106)
    at processing.opengl.PGraphicsOpenGL.allocate(Unknown Source)
    at processing.core.PGraphics3D.setSize(Unknown Source)
    at processing.core.PApplet.makeGraphics(Unknown Source)
    at processing.core.PApplet.size(Unknown Source)
    at processing.core.PApplet.size(Unknown Source)
    at testtoxicgeo.TestToxicGeo.setup(TestToxicGeo.java:21)
    at processing.core.PApplet.handleDraw(Unknown Source)
    at processing.core.PApplet.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Original comment by biomorph...@gmail.com on 19 Aug 2011 at 3:51

GoogleCodeExporter commented 8 years ago
Hey guys,

I think this is an issue of your machine being a different architecture than 
the libs are compiled with.  Try answer suggested here:

http://forum.processing.org/topic/openkinect-in-eclipse-libnative-problem

If that doesn't fix the issue, please reopen this.

Matt

Original comment by maddpar...@gmail.com on 19 Aug 2011 at 4:12

GoogleCodeExporter commented 8 years ago
Hi Matt,

I have OPENGL working properly since the fix you provided by the end of April.
Sorry for my lack of feedback.

Felipe.

Original comment by felipe....@gmail.com on 19 Aug 2011 at 4:50

GoogleCodeExporter commented 8 years ago
Nice, glad to hear this is working now.

Matt

Original comment by maddpar...@gmail.com on 22 Aug 2011 at 3:41