How do I get Processing to build in Eclipse

edited January 2015 in Developing Processing

I'm trying to build Processing in Eclipse, without much luck. I followed the instructions, but I still have errors in processing-glw and processing-lwjgl. It builds fine using ant from the command-line, but I would like to be able to test changes in Eclipse.

Has anyone else encountered this and have a fix?

Answers

  • What errors do you have?

  • In processing.gkw,PNEWT, there is a static initialization block that attempts to set WINDOW_TOOLKIT, EVENTS_TOOLKIT, and USE_JOGL_FBOLAYER. But the declaration of those variables (in processing.opengl.PJOGL) is commented out.

    Also in PNEWT, there is a reference to NEWTMouseListener, which is a inner class defined in PJOGL but commented out. I tried to uncomment the class definition, but it references MouseEvent which has not been imported.

    In processing.lwjgl.PLWJGL, line 161:

    pg.parent.remove(canvas);
    

    parent is an instance of PApplet, and PApplet does not have a remove method. There are other references in the same file to methods on PApplet that do not exist - setLayout, add, isDisplayable, and several more.

  • I saw a warning that the current 3.0 version is very unstable. Perhaps you can try and reset your branch to a 2.0 revision...

Sign In or Register to comment.