JOGL build problems

I am tring to build jogl under eclipse. I got the antlr elipse plugin and mingw. This is what I get.


java.generate.gl:
     [echo] Generating GL interface and implementation
  [gluegen] java.io.FileNotFoundException: ..\make\stub_includes\common\gl.c (The system cannot find the path specified)
  [gluegen] at java.io.FileInputStream.open(Native Method)
  [gluegen] at java.io.FileInputStream.<init>(FileInputStream.java:106)
  [gluegen] at java.io.FileInputStream.<init>(FileInputStream.java:66)
  [gluegen] at java.io.FileReader.<init>(FileReader.java:41)
  [gluegen] at com.sun.gluegen.GlueGen.run(GlueGen.java:102)
  [gluegen] at com.sun.gluegen.GlueGen.main(GlueGen.java:297)
  [gluegen] Exception occurred while generating glue code. Exiting.

BUILD FAILED
D:\Documents and Settings\Patrick\workspace\jogl\make\build.xml:1333: The following error occurred while executing this line:
D:\Documents and Settings\Patrick\workspace\jogl\make\build.xml:542: The following error occurred while executing this line:
D:\Documents and Settings\Patrick\workspace\jogl\make\build.xml:510: GlueGen returned: 1

Please help thanks

I think Eclipse is not setting up the current working directory as JOGL and GlueGen expect. Actually GKW on these forums contributed a patch a while back for getting JOGL to build from within NetBeans which I never applied. I’ve just committed these changes so you may want to try taking an update and seeing whether things now build from within Eclipse. If it still doesn’t work I would suggest you try to build from the command line instead.

it didn’t work again but it failed on a different part so i think maybe your patch fixed some but something else? I dunno just seems like it . Maybe give it one more try?


java.compile.secondpass:
    [javac] Compiling 176 source files to D:\Documents and Settings\Patrick\workspace\jogl\build\classes
    [javac] D:/Documents and Settings/Patrick/workspace/jogl/src/classes/javax/media/opengl/GLJPanel.java:488: cannot resolve symbol
    [javac] symbol: class DebugGL
    [javac] j2dContext.setGL(new DebugGL(j2dContext.getGL()));
    [javac] ^
    [javac] D:/Documents and Settings/Patrick/workspace/jogl/src/classes/javax/media/opengl/GLJPanel.java:555: cannot resolve symbol
    [javac] symbol: class DebugGL
    [javac] joglContext.setGL(new DebugGL(joglContext.getGL()));
    [javac] ^
    [javac] Note: D:/Documents and Settings/Patrick/workspace/jogl/src/classes/javax/media/opengl/GLCanvas.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 2 errors

BUILD FAILED
D:\Documents and Settings\Patrick\workspace\jogl\make\build.xml:1417: The following error occurred while executing this line:
D:\Documents and Settings\Patrick\workspace\jogl\make\build.xml:706: Compile failed; see the compiler error output for details.

Use to fail after 7 secs now it’s after 37 secs

Where did the DebugGL.java and TraceGL.java files end up in your workspace? They should have been generated into jogl/build/gensrc/classes/javax/media/opengl/, but probably wound up somewhere else.

Did you rebuild clean? (Delete the build/ directories in both the gluegen and jogl workspaces)

Have you tried just building from the command line?