We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › need to use "Import Library" (Processing 1.0.9)
Page Index Toggle Pages: 1
need to use "Import Library" (Processing 1.0.9) (Read 1594 times)
need to use "Import Library" (Processing 1.0.9)
Jan 11th, 2010, 5:39am
 
I've been using Processing version 1.0.1 for a while and decided to start using a newer version.

Under version 1.0.9 (on a Windows box), for some reason I can't use OPENGL:

Quote:
You need to use "Import Library" to add processing.opengl.PGraphicsOpenGL to your sketch


The previously working code has an import statement; similarly, creating a brand new sketch and using the Sketch > Import Library... > OpenGL menu option, which generates:

Code:
import processing.opengl.*; 



..still leaves me with this error.

Seems pretty strange / unhelpful.

-spxl
Re: need to use "Import Library" (Processing 1.0.9)
Reply #1 - Jan 14th, 2010, 6:37am
 
No help/suggestions? Anyone else seen this problem?
Re: need to use "Import Library" (Processing 1.0.9)
Reply #2 - Jan 22nd, 2010, 2:42am
 
I have the same here. (Ubuntu)
It was working with latest version (1.02 I think).
I have no problem in Eclipse.

Shall we fill a bug?
(Strange, I don't have access anymore to the buglist).


Re: need to use "Import Library" (Processing 1.0.9)
Reply #3 - Jan 22nd, 2010, 2:44am
 
Here is the error log:

---------------------------------
Exception in thread "Animation Thread" java.lang.RuntimeException: You need to use "Import Library" to add processing.opengl.PGraphicsOpenGL to your sketch.
     at processing.core.PApplet.makeGraphics(PApplet.java:1192)
     at processing.core.PApplet.size(PApplet.java:998)
     at processing.core.PApplet.size(PApplet.java:958)
     at Moe30a.setup(Moe30a.java:39)
     at processing.core.PApplet.handleDraw(PApplet.java:1402)
     at processing.core.PApplet.run(PApplet.java:1327)
     at java.lang.Thread.run(Thread.java:619)
Re: need to use "Import Library" (Processing 1.0.9)
Reply #4 - Jan 22nd, 2010, 2:49am
 
This has been answered already. No need to fill a bug.

For me it was a conflict with fullscreen library. Removing fullscreen lib fixed everything.

http://processing.org/discourse/yabb2/num_1244719802.html
http://dev.processing.org/bugs/show_bug.cgi?id=1259
http://processing.org/discourse/yabb2/?num=1255097207
Page Index Toggle Pages: 1