gluegen Build Failure In v2.3.1
Posted by rhatcher on Jul 02, 2015; 3:54pm
URL: https://forum.jogamp.org/gluegen-Build-Failure-In-v2-3-1-tp4034801.html
I attempted to build gluegen in v2.3.1 this morning and encountered a build failure. First, versions of relevant stuff:
CentOS 6.5
JDK 8u45
ant 1.9.3
git 1.7.1
The git clone instructions say to do this:
git clone --recurse-submodules git://jogamp.org/srv/scm/gluegen.git gluegen
...but that didn't work so I did this instead, which could be part of the problem:
git clone --recursive git://jogamp.org/srv/scm/gluegen.git gluegen
I then checked out v2.3.1, cd'd into the .../gluegen/make subdir and invoked ant. It churned for a short while then produced this error while executing the generate.java target:
generate.java:
[antlr] ANTLR Parser Generator Version 2.7.7 (2006-11-01) 1989-2005
[javac] Compiling 102 source files to /usr/local/ZedaSoft/rhatcher/prj-main/ZedaSoft/Java/ThirdParty/jogamp_2.3.1/gluegen/build/classes
[javac] Since fork is false, ignoring memoryMaximumSize setting.
[javac] Note: /usr/local/ZedaSoft/rhatcher/prj-main/ZedaSoft/Java/ThirdParty/jogamp_2.3.1/gluegen/src/java/com/jogamp/common/util/JogampVersion.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[copy] Copying 1 file to /usr/local/ZedaSoft/rhatcher/prj-main/ZedaSoft/Java/ThirdParty/jogamp_2.3.1/gluegen/build/classes
[javac] Compiling 115 source files to /usr/local/ZedaSoft/rhatcher/prj-main/ZedaSoft/Java/ThirdParty/jogamp_2.3.1/gluegen/build/classes
[javac] Since fork is false, ignoring memoryMaximumSize setting.
[javac] /usr/local/ZedaSoft/rhatcher/prj-main/ZedaSoft/Java/ThirdParty/jogamp_2.3.1/gluegen/jcpp/src/main/java/com/jogamp/gluegen/jcpp/JCPP.java:112: error: incompatible types: String cannot be converted to long
[javac] final ConstantDefinition c = new ConstantDefinition(macro.getName(), value, null, locus);
[javac] ^
If I back up to v2.3.0 then it builds OK.
What have I messed up?
Rob