From aad7268baef8142e33815a02034ef6af56442e63 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sat, 14 Jan 2006 02:48:52 +0000 Subject: Updated HowToBuild.html to reflect build.xml changes git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@541 232f8b59-042b-4e1e-8c03-345bb8c30851 --- doc/HowToBuild.html | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'doc/HowToBuild.html') diff --git a/doc/HowToBuild.html b/doc/HowToBuild.html index d9e607ef8..e674cc1fc 100644 --- a/doc/HowToBuild.html +++ b/doc/HowToBuild.html @@ -18,20 +18,19 @@ OpenGL binding from a fresh copy of the source distribution:
  • 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.
  • Copy and edit jogl.properties:
    + Copy make/jogl.properties into your home directory (pointed to by the Java system property user.home).
    + Edit the copy to change any settings that are necessary, in particular the location of the ANTLR jar file (typically $HOME/antlr-2.7.2/antlr.jar) and the setting of win32.c.compiler on Windows platforms (one of "vc6", "vc7", "vc8", or "mingw"). - Edit the copy to change any settings that are necessary, in particular the location of the ANTLR jar file (typically $HOME/antlr-2.7.2/antlr.jar). -
  • Build the source tree:
    Open a command shell in the "make" directory of the source tree and type "ant [target]", where [target] is one of linux, macosx, solaris, win32.vc6, win32.vc7, win32.vc8, or win32.mingw. +
  • The Windows build requires one of Microsoft Visual C++ 6, 7 (Visual Studio .NET), 8 (Microsoft Visual C++ 2005) or the free MinGW (http://www.mingw.org/) compilers to be installed. Choose the appropriate setting of win32.c.compiler for the compiler being used. The C compiler executable (cl.exe, gcc.exe) must be in your PATH; see below. +
  • When building with VC6, VC7, or VC8, you must first run the vcvars32.bat environment variable setup script from the appropriate version of Visual C++. The Windows C compiler you choose in jogl.properties (i.e., win32.c.compiler=vc6) must match the version of the compiler from which you executed vcvars32.bat. No error checking is done on the compiler version used, so please be careful. + +
  • Build the source tree:
    Open a command shell in the "make" directory of the source tree and type "ant".
  • Add Jogl to your CLASSPATH:
    To be able to use Jogl once built, you must add the build process' resulting jogl.jar (/build/jogl.jar) to your CLASSPATH environment variable. -
  • Add Jogl to your PATH or LD_LIBRARY_PATH:
    To be able to use Jogl once built, you must also add the build process's JNI code library directory (/build/obj) to your PATH (on Windows) or LD_LIBRARY_PATH (on Unix platforms) environment variable. +
  • Add Jogl to your PATH, LD_LIBRARY_PATH, or DYLD_LIBRARY_PATH:
    To be able to use Jogl once built, you must also add the build process's JNI code library directory (<source tree root>/build/obj) to your PATH (on Windows), LD_LIBRARY_PATH (on most Unix platforms), or DYLD_LIBRARY_PATH (on Mac OS X) environment variable.
  • Test if everything's working:
    To test if everything went well, you should check out the source code for the jogl-demos project (available at http://jogl-demos.dev.java.net/), build the demos using the supplied instructions, and run the Gears demo ("java demos.gears.Gears").
  • Build Javadoc:
    "ant javadoc" will produce the end-user documentation for Jogl along with some auxiliary utility packages. The developers' documentation, including that for the GlueGen tool, can be generated for your current platform using one of the following commands: "ant javadoc.dev.win32", "ant javadoc.dev.x11", or "ant javadoc.dev.macosx". (The javadoc for the Cg binding can be built by inserting -Djogl.cg=1 into the command line as above.) -- cgit v1.2.3