Problems building using Ant 1.60/Antlr 2.7.2

Been trying to get the source to build so that I can play with OpenGL 1.5 bindings, but it is having some really major heartattacks about it. The build process is not even finishing the first stage compile. Wondering if there are any tips on getting this to work?

System setup:

Ant 1.6.0
Antlr 2.7.2
Mingw 1.10-1

Right now the errors are scrolling past waaay too fast to know what the root cause of the problem is. From what I can tell, Ant 1.6 is being far more picky about errors than 1.53 is (and I can’t seem to find a download of 1.53) and is terminating when the old version would not.

At the end, the last few lines of error message are:

[antlr] C:\cygwin\home\justin\projects\jogl\jogl\build\gensrc\classes\net\ja

va\games\gluegen\cgram\expandedGnuCParser.g:583: warning:nondeterminism between alts 3 and 4 of block upon
[antlr] C:\cygwin\home\justin\projects\jogl\jogl\build\gensrc\classes\net\ja
va\games\gluegen\cgram\expandedGnuCParser.g:583: k==1:“enum”
[antlr] C:\cygwin\home\justin\projects\jogl\jogl\build\gensrc\classes\net\ja
va\games\gluegen\cgram\expandedGnuCParser.g:583: k==2:
[antlr] C:\cygwin\home\justin\projects\jogl\jogl\build\gensrc\classes\net\ja
va\games\gluegen\cgram\expandedGnuCParser.g:311:21: warning:Rule ‘declarator’ returns a value

BUILD FAILED

Any suggestions would help.

Hello,

It wouldn’t compile with ant1.6 for me too.
Stick to 1.5.3, you should find it there:
http://archive.apache.org/dist/ant/source/

Great! Thanks. 1.53 compiles it mostly. Fails now after building the JAR, so I suspect that may have something to do with my MinGW setup. Back to being productive again :o

I have met the same problems under Linux RedHat 9.0
Ant 1.6+ fails and Ant 1.5.3 is required.
ntlr 2.7.3+ fails and Antlr2.7.2 is required.

After that compilation fails again after having generated sucessfuly the jogl.jar, but before generating the libjogl.so with the following errors (translated from french) :
c.compile.jogl:
[apply] src/native/jogl/BufferUtils.c: In function « Java_net_java_games_jogl_util_BufferUtils_bufferOffset0 »:
[apply] src/native/jogl/BufferUtils.c:53: invalid argument type for « -> »

So now would that be the gcc version that’s not good ?
I’m using the regular gcc 3.2.2 distributed with RedHat 9.

If anyone has a clue of what’s going on…

I am new with JOGL.

We are looking at it to see if we will migrate our 3D viewer (commercial software) from J3D to JOGL The first think to do is to see if we can compile it!

For now, it doesn’t work.

This is what I get:

[javac] /datalinux/project/jogl/src/net/java/games/jogl/impl/x11/X11PbufferGLContext.java:194: cannot resolve symbol
[javac] symbol : variable GLX_DEPTH_SIZE
[javac] location: class net.java.games.jogl.impl.x11.GLX
[javac] System.err.println("depth: " + queryFBConfig(display, fbConfig, GLX.GLX_DEPTH_SIZE));
[javac] ^
[javac] /datalinux/project/jogl/src/net/java/games/jogl/impl/x11/X11PbufferGLContext.java:195: cannot resolve symbol
[javac] symbol : variable GLX_DOUBLEBUFFER
[javac] location: class net.java.games.jogl.impl.x11.GLX
[javac] System.err.println("double buffered: " + queryFBConfig(display, fbConfig, GLX.GLX_DOUBLEBUFFER));
[javac] ^
[javac] /datalinux/project/jogl/src/net/java/games/jogl/impl/x11/X11PbufferGLContext.java:222: cannot resolve symbol
[javac] symbol : method glXQueryDrawable (long,int,int,int[])
[javac] location: class net.java.games.jogl.impl.x11.GLX
[javac] GLX.glXQueryDrawable(display, (int) buffer, GL.GLX_WIDTH, tmp);
[javac] ^
[javac] /datalinux/project/jogl/src/net/java/games/jogl/impl/x11/X11PbufferGLContext.java:224: cannot resolve symbol
[javac] symbol : method glXQueryDrawable (long,int,int,int[])
[javac] location: class net.java.games.jogl.impl.x11.GLX
[javac] GLX.glXQueryDrawable(display, (int) buffer, GL.GLX_HEIGHT, tmp);
[javac] ^
[javac] /datalinux/project/jogl/src/net/java/games/jogl/impl/x11/X11PbufferGLContext.java:252: cannot resolve symbol
[javac] symbol : method glXMakeContextCurrent (long,int,int,long)
[javac] location: class net.java.games.jogl.impl.x11.GLX
[javac] if (!GLX.glXMakeContextCurrent(display, (int) buffer, (int) buffer, context)) {
[javac] ^
[javac] /datalinux/project/jogl/src/net/java/games/jogl/impl/x11/X11PbufferGLContext.java:269: cannot resolve symbol
[javac] symbol : method glXMakeContextCurrent (long,int,int,int)
[javac] location: class net.java.games.jogl.impl.x11.GLX
[javac] if (!GLX.glXMakeContextCurrent(display, 0, 0, 0)) {
[javac] ^
[javac] Note: /datalinux/project/jogl/src/net/java/games/jogl/GLCanvas.java uses or overrides a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 86 errors

BUILD FAILED
/datalinux/project/jogl/make/build.xml:1094: Following error occured while executing this line
/datalinux/project/jogl/make/build.xml:714: Compile failed; see the compiler error output for details.

Total time: 11 seconds

With Ant 1.60/Antlr 2.7.2

But I notice that some static variable are missing in GLX.java…

I guess it it not normal.

Please…

Can somebody tell me what is it wrong

[quote]Great! Thanks. 1.53 compiles it mostly. Fails now after building the JAR, so I suspect that may have something to do with my MinGW setup. Back to being productive again :o
[/quote]
Hi,
I had the same problem. It’s an issue with the new glext.h.
check the thread titled “Jogl with OpenGL 1.5 Capabilities”. Pretty much at the end, I describe how you have to change it for it to work (at least it did for me under mingw)

Jan

yes i’m having some problems compiling as well (the pre distributed binaries work well, but i’d like to compile the src myself). I"m using antlr-2.7.3 and ant-1.6.1 with visual c++ 6.0 on windows 98.

I use something like this to set up

set ANT_HOME=C:\java\ant
set PATH=%path%;c:\j2sdk1.4.2\bin;C:\java\jogl\build\obj;C:\java\ant\bin
set CLASSPATH=C:\java\antlr-2.7.3\antlr.jar

set JAVA_HOME=C:\j2sdk1.4.2

when i run win32.vc6 it makes it pretty far, but when it gets to Compiling 81 source files to C:\java\jogl_src\jogl\build\classes the javac cant find certain classes that have to yet to be compiled (for instance, it looks for GLU class but it hasn’t been copiled yet). A far as i know i’ve set everything up correctly but it seems to be similar to what the posters above are getting so i would get better results using antlr 2.7.2 and ant 1.5.3?

build.static.gl.task:

 [echo] StaticGLGen ANT task has been built successfully.

java.generate.check:

java.generate:

java.generate.cg.check:

java.generate.cg:

java.compile:
[javac] Compiling 81 source files to C:\java\jogl_src\jogl\build\classes

[javac] C:\java\jogl_src\jogl\src\net\java\games\jogl\GLDrawable.java:104: c

annot resolve symbol
[javac] symbol : class GLU
[javac] location: interface net.java.games.jogl.GLDrawable
[javac] public GLU getGLU();
[javac] ^
[javac] C:\java\jogl_src\jogl\src\net\java\games\jogl\GLDrawable.java:107: c
annot resolve symbol
[javac] symbol : class GLU
[javac] location: interface net.java.games.jogl.GLDrawable
[javac] public void setGLU(GLU glu);
[javac] ^



[javac]   ^
[javac] 17 errors

BUILD FAILED
C:\java\jogl_src\jogl\make\build.xml:1058: Following error occured while executi
ng this line
C:\java\jogl_src\jogl\make\build.xml:711: Compile failed; see the compiler error
output for details.

well going back to antlr 2.7.2 and ant 1.5.3 didnt seem to work initially, but when i downloaded a fresh copy of the source and tried to make, it built the jogl.jar. Unfortunatey it craps out right after this before building the jni stuff. Any ideas? thanks

declare.win32.vc6:

c.compile.jogl.win32.vc6:

c.compile.jogl.check.nonmacosx:

c.compile.jogl.check.macosx:

c.compile.jogl.check:

c.compile.jogl:

BUILD FAILED
file:C:/java/jogl_src/jogl/make/build.xml:783: Execute failed: java.io.IOExcepti
on: CreateProcess: cl.exe /Imake/stub_includes/opengl “/IC:/Program Files/Micros
oft Visual Studio/VC98/PlatformSDK/Include” “/IC:/Program Files/Microsoft Visual
Studio/VC98/include” /IC:\J2SDK1.4.2\JRE/…/include /IC:\J2SDK1.4.2\JRE/…/incl
ude/win32 /Imake/stub_includes/cg /MD /W3 /O2 /Ob1 /GF /Gy /nologo /TC /c /Fobui
ld\obj\jogl/BufferUtils.obj src\native\jogl\BufferUtils.c error=0

oops forgot to setup my copiler paths (vcvars32.bat). It builds fine with vc6.0, antlr 2.7.3 and ant 1.5.3