From 6842d41aff963d323c6047e30d06257f524be571 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Wed, 19 May 2010 04:51:17 +0200 Subject: XHTML cleanup for JOGL build howto. --- doc/HowToBuild.html | 404 +++++++++++++++++++++++++++------------------------- 1 file changed, 213 insertions(+), 191 deletions(-) (limited to 'doc/HowToBuild.html') diff --git a/doc/HowToBuild.html b/doc/HowToBuild.html index c54670b60..cac35d346 100644 --- a/doc/HowToBuild.html +++ b/doc/HowToBuild.html @@ -1,4 +1,4 @@ - + @@ -21,203 +21,225 @@
  • Demos
  • Wiki
  • JavaDoc
  • +
  • Blogs
  • +
  • Forums
  • -
    - - - -

    Platform and Component Requirements

    -
    -

    -Here is a list of platforms and components, we were able to build JOGL on,
    -if not stated otherwise.
    - -

    - -

    - -Additional platforms such as FreeBSD and HP/UX are handled by the -build system, but are not officially supported. - -

    - -

    Build Steps

    -
    -

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

    - -

    - -

      -
    1. Optain the source code using git: -
      - It is crucial that you checkout the source code under a common root directory: -
      -        /home/dude/projects/jogamp> git clone git://github.com/sgothel/gluegen.git  gluegen
      -        /home/dude/projects/jogamp> git clone git://github.com/sgothel/jogl.git jogl 
      -    
      - Now you should have following directory structure: -
      -        /home/dude/projects/jogamp
      -        /home/dude/projects/jogamp/gluegen
      -        /home/dude/projects/jogamp/jogl
      -    
    2. - -
    3. 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.
    4. - -
    5. 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).
    6. - -
    7. 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.
    8. - -
    9. Build the source tree:
      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.
      • -
    10. - -
    11. Test your build:
      Stay in your command shell in the "jogl/make" directory of the source tree and type "ant junit.run".
    12. - -
    13. Build Javadoc:
      Stay in your command shell in the "jogl/make" directory of the source tree and type "ant javadoc". This will produce the end-user documentation for JOGL along with some auxiliary utility packages.
    14. -
    - -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.

    - -

    Common build problems

    - -
      - -
    1. Your CLASSPATH environment variable appears to be set (some JOGL classes are currently visible to the build.), and $CLASSPATH isn't set. - -
      -
      An older version of JOGL was installed into the extension directory of the JDK you're using to build the current JOGL. On Windows and Linux, delete any ANTLR jars from jre/lib/ext, and on Mac OS X, delete them from /Library/Java/Extensions. It is generally not a good idea to drop JOGL directly into the extensions directory, as this can interfere with upgrades via Java Web Start. -
      - -
    2. CharScanner; panic: ClassNotFoundException: com.sun.gluegen.cgram.CToken - -
      -
      This occurs because ANTLR was dropped into the Extensions -directory of the JRE/JDK. On Windows and Linux, delete any ANTLR jars from jre/lib/ext, and on Mac OS X, delete them from /Library/Java/Extensions. Use the antlr.jar property in the build.xml to point to a JRE-external location of this jar file. -
      - -
    - -- Christopher Kline and Kenneth Russell, June 2003 (revised November 2006)
    -- Sven Gothel, May 2010
    +
    +
    + +

    Platform and Component Requirements

    +
    + Here is a list of platforms and components, we were able to build JOGL on,
    + if not stated otherwise.
    + + + +

    + Additional platforms such as FreeBSD and HP/UX are handled by the + build system, but are not officially supported. +

    + +

    Build Steps

    +
    +

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

    + +
      +
    1. Optain the source code using git: +
      + It is crucial that you checkout the source code under a common root directory: +
      +    /home/dude/projects/jogamp> git clone git://github.com/sgothel/gluegen.git  gluegen
      +    /home/dude/projects/jogamp> git clone git://github.com/sgothel/jogl.git jogl
      +                            
      + Now you should have following directory structure: +
      +    /home/dude/projects/jogamp
      +    /home/dude/projects/jogamp/gluegen
      +    /home/dude/projects/jogamp/jogl
      +                            
      +
    2. + +
    3. 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. +
    4. + +
    5. 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).
    6. + +
    7. 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. +
    8. + +
    9. Build the source tree:
      + 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. +
      • +
      +
    10. + +
    11. Test your build:
      Stay in your command shell in the "jogl/make" directory of the source tree and type "ant junit.run".
    12. + +
    13. Build Javadoc:
      Stay in your command shell in the "jogl/make" directory of the source tree and type "ant javadoc". + This will produce the end-user documentation for JOGL along with some auxiliary utility packages. +
    14. +
    + + 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. + +

    Common build problems

    + +
      + +
    1. + Your CLASSPATH environment variable appears to be set (some JOGL classes are currently visible to the build.), and $CLASSPATH isn't set. + An older version of JOGL was installed into the extension directory of the JDK you're using to build the + current JOGL. On Windows and Linux, delete any ANTLR jars from jre/lib/ext, and on Mac OS X, delete them from + /Library/Java/Extensions. It is generally not a good idea to drop JOGL directly into the extensions directory, + as this can interfere with upgrades via Java Web Start. +
    2. + +
    3. + CharScanner; panic: ClassNotFoundException: com.sun.gluegen.cgram.CToken + + This occurs because ANTLR was dropped into the Extensions + directory of the JRE/JDK. On Windows and Linux, delete any ANTLR jars from jre/lib/ext, + and on Mac OS X, delete them from /Library/Java/Extensions. Use the antlr.jar property in the build.xml + to point to a JRE-external location of this jar file. +
    4. + +
    + +
    +

    + - Christopher Kline and Kenneth Russell, June 2003 (revised November 2006)
    + - Sven Gothel and Michael Bien, May 2010
    +

    +
    -- cgit v1.2.3