Building from CVS on Mac OS X

Is the build for OS X broken in CVS?

I’m following the steps in doc/HowToBuild.html. I have Ant 1.5.3, ANTLR 2.7.2, and OS X 10.3.2 with java version 1.4.2_03.

The first problem I run into is that the “java.includes.dir.macosx” property in build.xml doesn’t point to where the headers are located on my system. The only spot I’ve been able to find jawt_md.h in is /System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Headers. To me, it looks like Apple broke something with the 1.4.2 install. There are a bunch of links for the headers in various spots under JavaVM.framework, but almost all are invalid.

The second problem is that ANTLR complains about an awful lot of stuff and then the build fails. Is it normal for ANTLR to issue a lot of warnings? Here’s some example output (trimmed down a lot b/c it goes on forever):
generate.c.grammar:
[mkdir] Created dir: /Users/foyle/jogl/build/gensrc/classes/net/java/games/gluegen/cgram
[antlr] ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
[antlr] /Users/foyle/jogl/src/net/java/games/gluegen/cgram/StdCParser.g:232: warning:nondeterminism between alts 1 and 4 of block upon
[antlr] /Users/foyle/jogl/src/net/java/games/gluegen/cgram/StdCParser.g:232: k==1:“struct”
[antlr] /Users/foyle/jogl/src/net/java/games/gluegen/cgram/StdCParser.g:232: k==2:
[antlr] /Users/foyle/jogl/src/net/java/games/gluegen/cgram/StdCParser.g:232: warning:nondeterminism between alts 2 and 4 of block upon
— skipped lots of lines here —
generate.c.grammar.glib:
[antlr] ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
[antlr] error: cannot find/copy importVocab file …/src/net/java/games/gluegen/cgram/STDCTokenTypes.txt
[antlr] /Users/foyle/jogl/jogl/build/gensrc/classes/net/java/games/gluegen/cgram/expandedGnuCParser.g:989: warning:lexical nondeterminism between alts 4 and 6 of block upon
[antlr] /Users/foyle/jogl/jogl/build/gensrc/classes/net/java/games/gluegen/cgram/expandedGnuCParser.g:989: k==1:‘0’
— skipped lots of lines here —
generate.c.grammar.glib:
[antlr] ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
[antlr] warning: rule HeaderParser.declSpecifiers has different signature than GnuCTreeParser.declSpecifiers
[antlr] warning: rule HeaderParser.storageClassSpecifier has different signature than GnuCTreeParser.storageClassSpecifier
[antlr] warning: rule HeaderParser.functionStorageClassSpecifier has different signature than GnuCTreeParser.functionStorageClassSpecifier
[antlr] warning: rule HeaderParser.typeQualifier has different signature than GnuCTreeParser.typeQualifier
— skipped lots of lines here —
java.compile:
[javac] Compiling 86 source files to /Users/foyle/jogl/jogl/build/classes
[javac] /Users/foyle/jogl/jogl/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java:50: cannot resolve symbol
[javac] symbol : class JAWT
[javac] location: class net.java.games.jogl.impl.macosx.MacOSXGLContext
[javac] private static JAWT jawt;
[javac] ^
— skipped lots of lines here —
BUILD FAILED
file:/Users/foyle/jogl/jogl/make/build.xml:714: Compile failed; see the compiler error output for details.

Any ideas on where I went wrong?

Did you install the 1.4.2 developer update as well as the end user update? The developer update is required to get the header files.

Thanks for the reminder about the Developer Tools update. I’m doing this work on a new laptop and had totally forgotten that I needed to update Tools seperately.

I’m downloading them now and will see if I can get any farther with the build process.