1.

How To Build Jogl?

Answer»

Here are the steps that are required in order to build JOGL.

  1. Optain the source code using git:
  2. Gluegen Dev GIT Repo
  3. JOGL Dev GIT Repo

It is crucial that you checkout the source code under a common root directory:

/home/dude/projects/jogamp> git clone --recurse-submodules git://jogamp.org/srv/scm/gluegen.git gluegen

/home/dude/projects/jogamp> git clone --recurse-submodules git://jogamp.org/srv/scm/jogl.git jogl

Now you should have following directory structure:

/home/dude/projects/jogamp
/home/dude/projects/jogamp/gluegen
/home/dude/projects/jogamp/jogl

Note-1: The GlueGen source must be fetched using -recurse-submodules, which imports JCPP, now used as the default C preprocessor.

Note-2: In case you do not get the JOGL sources with -recurse-submodules, you will miss the following features:

Note-3: OculusVR Support

Unset your CLASSPATH ENVIRONMENT variable: 

The Ant build requires that the JOGL jars not be visible on the classpath. On Unix, type unsetenv CLASSPATH into a csh or tcsh shell, or unset CLASSPATH into a Bourne shell. On Windows, type set CLASSPATH= into a command prompt.

Optional Copy and EDIT gluegen.properties: 

To specify different basic options for components and compilers, copy gluegen/make/gluegen.properties into your home directory (pointed to by the JAVA system property user.home). 

Optional Copy and edit jogl.properties: 

To specify different basic options for the build, copy jogl/make/jogl.properties into your home directory (pointed to by the Java system property user.home). 

Edit the copy to change desired settings.

Build the source tree: 

Open a command shell in the "gluegen/make" directory of the source tree and type "ant".

Then open a command shell in the "jogl/make" directory of the source tree and type "ant".

An experimental binding to the high-level Cg language by NVidia corporation can be generated by specifying -Djogl.cg=1 to ant; e.g. ant -Djogl.cg=1. The Cg binding has been tested on Windows, Linux, and Mac OS X.

Test your build: Stay in your command shell in the "jogl/make" directory of the source tree and type "ant junit.run".

Build Javadoc: Stay in your command shell in the "jogl/make" directory of the source tree and type "ant javadoc.all". This will produce the end-user DOCUMENTATION for JOGL along with some auxiliary utility packages.

Note that there are a lot of warnings produced by ANTLR about the C grammar and our modifications to some of the signatures of the productions; the C grammar warnings have been documented by the author of the grammar as having been investigated completely and harmless, and the warnings about our modifications are also harmless.

Here are the steps that are required in order to build JOGL.

It is crucial that you checkout the source code under a common root directory:

/home/dude/projects/jogamp> git clone --recurse-submodules git://jogamp.org/srv/scm/gluegen.git gluegen

/home/dude/projects/jogamp> git clone --recurse-submodules git://jogamp.org/srv/scm/jogl.git jogl

Now you should have following directory structure:

/home/dude/projects/jogamp
/home/dude/projects/jogamp/gluegen
/home/dude/projects/jogamp/jogl

Note-1: The GlueGen source must be fetched using -recurse-submodules, which imports JCPP, now used as the default C preprocessor.

Note-2: In case you do not get the JOGL sources with -recurse-submodules, you will miss the following features:

Note-3: OculusVR Support

Unset your CLASSPATH environment variable: 

The Ant build requires that the JOGL jars not be visible on the classpath. On Unix, type unsetenv CLASSPATH into a csh or tcsh shell, or unset CLASSPATH into a Bourne shell. On Windows, type set CLASSPATH= into a command prompt.

Optional Copy and edit gluegen.properties: 

To specify different basic options for components and compilers, copy gluegen/make/gluegen.properties into your home directory (pointed to by the Java system property user.home). 

Optional Copy and edit jogl.properties: 

To specify different basic options for the build, copy jogl/make/jogl.properties into your home directory (pointed to by the Java system property user.home). 

Edit the copy to change desired settings.

Build the source tree: 

Open a command shell in the "gluegen/make" directory of the source tree and type "ant".

Then open a command shell in the "jogl/make" directory of the source tree and type "ant".

An experimental binding to the high-level Cg language by NVidia corporation can be generated by specifying -Djogl.cg=1 to ant; e.g. ant -Djogl.cg=1. The Cg binding has been tested on Windows, Linux, and Mac OS X.

Test your build: Stay in your command shell in the "jogl/make" directory of the source tree and type "ant junit.run".

Build Javadoc: Stay in your command shell in the "jogl/make" directory of the source tree and type "ant javadoc.all". This will produce the end-user documentation for JOGL along with some auxiliary utility packages.

Note that there are a lot of warnings produced by ANTLR about the C grammar and our modifications to some of the signatures of the productions; the C grammar warnings have been documented by the author of the grammar as having been investigated completely and harmless, and the warnings about our modifications are also harmless.



Discussion

No Comment Found