diff options
author | Sven Gothel <[email protected]> | 2019-08-18 04:38:49 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-08-18 04:38:49 +0200 |
commit | 0f370707ed27dff495c5d091d284f7a006cb28a0 (patch) | |
tree | 71badac8088583dd8594e15b8b7947547c7c702f | |
parent | 189f8ede61afea66ea14f7402dac10381a98c9ca (diff) |
Bug 1363: Java 11: Java version must be 11 or greater; Fix HowToBuild: Give detailed build commandline.
-rw-r--r-- | doc/HowToBuild.html | 33 | ||||
-rwxr-xr-x | make/jogamp-env.xml | 10 |
2 files changed, 27 insertions, 16 deletions
diff --git a/doc/HowToBuild.html b/doc/HowToBuild.html index 52cc66f..daf980f 100644 --- a/doc/HowToBuild.html +++ b/doc/HowToBuild.html @@ -5,7 +5,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <link href="../../style.css" rel="stylesheet" type="text/css"/> <link href="../../style-alt1.css" rel="alternate stylesheet" title="default sans-serif font" type="text/css"/> - <title>How to build JOGL</title> + <title>How to build GlueGen</title> </head> <body> <div id="container"> @@ -202,7 +202,7 @@ apt-get install lib32z1 lib32ncurses5 gcc-multilib lib32gcc1 lib32gomp1 lib32itm <h2>Build Steps</h2> <hr/> <p> - Here are the steps that are required in order to build JOGL. + Here are the steps that are required in order to build GlueGen. </p> <ol> @@ -226,7 +226,7 @@ apt-get install lib32z1 lib32ncurses5 gcc-multilib lib32gcc1 lib32gomp1 lib32itm </li> <li> <b>Unset your CLASSPATH environment variable:</b> <br/> - The Ant build requires that the JOGL jars not be visible on the classpath. On Unix, type + The Ant build requires that the GlueGen jars not be visible on the classpath. On Unix, type <code> unsetenv CLASSPATH </code> into a csh or tcsh shell, or <code> unset CLASSPATH </code> into a Bourne shell. On Windows, type <code> set CLASSPATH= </code> into a command prompt. </li> @@ -236,13 +236,32 @@ apt-get install lib32z1 lib32ncurses5 gcc-multilib lib32gcc1 lib32gomp1 lib32itm copy <b>gluegen/make/gluegen.properties</b> into your home directory (pointed to by the Java system property <b>user.home</b>). <br/></li> <li> <b>Build the source tree:</b> <br/> - Open a command shell in the "gluegen/make" directory of the source tree and type <code>"ant"</code>. + Open a command shell in the "gluegen/make" directory of the source tree and invoke <code>ant</code> + with the given properties as follows + <pre> + cd /home/dude/projects/jogamp/gluegen/make/ + ant -Dtarget.sourcelevel=1.8 -Dtarget.targetlevel=1.8 -Dtarget.rt.jar=/your/openjdk8/lib/rt.jar + </pre> + Alternatively you can also use environment variables instead of properties + <pre> + export SOURCE_LEVEL=1.8 + export TARGET_LEVEL=1.8 + export TARGET_RT_JAR=/your/openjdk8/lib/rt.jar + ant + </pre> + Optionally you can also set certain build features via properites or environment variables + <pre> + Feature Property or Environment Variable + developer-zip-archive: build.archiveon=true BUILD_ARCHIVE=true + Native Debug Code: c.compiler.debug=true + Java Debug Code: javacdebuglevel="source,lines,vars" + </pre> </li> - <li> <b>Test your build:</b> <br/> Stay in your command shell in the "gluegen/make" directory of the source tree and type <code>"ant junit.run"</code>.</li> + <li> <b>Test your build:</b> <br/> Stay in your command shell in the "gluegen/make" directory of the source tree and invoke <code>ant</code> with above properties or environment variables and use the target <code>junit.run</code>.</li> - <li> <b>Build Javadoc:</b> <br/> Stay in your command shell in the "gluegen/make" directory of the source tree and type "<code>ant javadoc"</code>. - This will produce the end-user documentation for JOGL along with some auxiliary utility packages. + <li> <b>Build Javadoc:</b> <br/> Stay in your command shell in the "gluegen/make" directory of the source tree and invoke <code>ant</code> with above properties or environment variables and use the target <code>javadoc</code>. + This will produce the end-user documentation for GlueGen along with some auxiliary utility packages. </li> </ol> diff --git a/make/jogamp-env.xml b/make/jogamp-env.xml index 6eb2e86..67309ab 100755 --- a/make/jogamp-env.xml +++ b/make/jogamp-env.xml @@ -48,19 +48,14 @@ </condition> </fail> - <fail message="Unsupported Java version: ${ant.java.version}. Make sure that the version of the Java compiler is 1.8 (8.0) or greater."> + <fail message="Unsupported Java version: ${ant.java.version}. Make sure that the version of the Java compiler is 1.11 (11.0) or greater."> <condition> <not> <or> - <equals arg1="${ant.java.version}" arg2="1.8"/> - <equals arg1="${ant.java.version}" arg2="1.9"/> - <equals arg1="${ant.java.version}" arg2="1.10"/> <equals arg1="${ant.java.version}" arg2="1.11"/> <equals arg1="${ant.java.version}" arg2="1.12"/> <equals arg1="${ant.java.version}" arg2="1.13"/> <equals arg1="${ant.java.version}" arg2="1.14"/> - <equals arg1="${ant.java.version}" arg2="9"/> - <equals arg1="${ant.java.version}" arg2="10"/> <equals arg1="${ant.java.version}" arg2="11"/> <equals arg1="${ant.java.version}" arg2="12"/> <equals arg1="${ant.java.version}" arg2="13"/> @@ -81,9 +76,6 @@ <condition property="javadoc.xarg1" value="-Xdoclint:none" else="-J-Ddummy=val"> <or> - <equals arg1="${ant.java.version}" arg2="1.8"/> - <equals arg1="${ant.java.version}" arg2="9"/> - <equals arg1="${ant.java.version}" arg2="10"/> <equals arg1="${ant.java.version}" arg2="11"/> <equals arg1="${ant.java.version}" arg2="12"/> <equals arg1="${ant.java.version}" arg2="13"/> |