Prerequisites


Follow all steps described in How to build JOGL, since GlueGen and JOGL are required as compile-time dependencies.

Platform and Component Requirements


To run the tests included with JOCL, you will have to install an OpenCL implementation on your platform.

Some vendors include OpenCL with the graphics driver or operating system. So please make sure your system is up to date.

OpenCL SDKs for the desktop:

Build Steps


Here are the steps required to build JOCL.

  1. Check out and build Gluegen and JOGL as described here.
  2. Get the JOCL source code from the JOCL Git repository. It is important that you check out the source code side by side with its dependencies:
        /home/dude/projects/jogamp> git clone git://jogamp.org/srv/scm/jocl.git jocl
                                
    Now you should have following directory structure:
        /home/dude/projects/jogamp
        /home/dude/projects/jogamp/gluegen
        /home/dude/projects/jogamp/jogl
        /home/dude/projects/jogamp/jocl
                                
  3. Build the source tree:
    Open a command shell in the "jocl/make" directory of the source tree and type "ant clean", then "ant".
  4. Test your build:
    Stay in your command shell in the "jocl/make" directory of the source tree and type "ant junit.run".
  5. Build Javadoc:
    Stay in your command shell in the "jocl/make" directory of the source tree and type "ant javadoc". This will produce the end-user documentation for JOCL.