Unable to build from source

Posted by timmattison on
URL: https://forum.jogamp.org/Unable-to-build-from-source-tp4025175.html

Using the instructions from here - http://jogamp.org/jocl/doc/HowToBuild.html - I came up with a build process that should build everything for me but fails with the following errors:

java.compile.javase:
    [javac] Compiling 83 source files to /Users/timmattison/Downloads/java-vision/jogamp/jogl/build/newt/classes
    [javac] /Users/timmattison/Downloads/java-vision/jogamp/jogl/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java:31: package jogamp.common.os.android does not exist
    [javac] import jogamp.common.os.android.StaticContext;

I can see that it's trying to start building some Android code but I don't see any easy way to turn it off (all attempts at giving ant -D options has failed).  Is there an option to do this?  If not, how can I get it to see my Android SDK and build?  Ideally I would like to have the option to build both but right now I don't need Android just yet.

Here are the steps I went through that worked:

mkdir jogamp
cd jogamp
git clone git://jogamp.org/srv/scm/gluegen.git gluegen
git clone git://jogamp.org/srv/scm/jogl.git jogl
git clone git://jogamp.org/srv/scm/jocl.git jocl
unset CLASSPATH
cd gluegen/make && ant

Here's the step that failed and started printing out error messages:

cd ../../jogl/make && ant

Any help would be great.  Thanks!