<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="../../style.css" rel="stylesheet" type="text/css"/> <link href="../www/style.css" rel="stylesheet" type="text/css"/> <link href="http://jogamp.org/SocialCoding/logo_symbol_finals/website_final_blue_favicon_symbol_16x16pel.ico" rel="shortcut icon"/> <title>How to build JOCL</title> </head> <body> <div id="container"> <div id="header"> <div id="slogan">How to build JOCL</div> <div id="logo"><a href="http://jogamp.org/"><img src="../../images/jogamp_symbols/website_final_magenta_jocl_346x70pel.png" alt="JOCL Symbol"/></a></div> </div> <div id="menu"> <ul> <li><a href="http://jogamp.org/">Home</a></li> <li><a href="../../gluegen/www/">Gluegen</a></li> <li><a href="../../joal/www/">JOAL</a></li> <li><a href="../../jocl/www/">JOCL</a></li> <li><a href="../../jogl/www/">JOGL</a></li> <li><a href="../../demos/www/">Demos</a></li> <li><a href="../../wiki/">Wiki</a></li> <li><a href="../../blog/">Blogs</a></li> <li><a href="../../forum.html">Forums</a></li> </ul> </div> <div id="main"> <div id="sidebar"> <h3>Useful Links</h3> <ul> <li><a href="../../jogl/doc/HowToBuild.html">JOGL Build HowTo</a></li> <li><a href="../../deployment/autobuilds/master/">Download JOCL</a></li> <li><a href="../../deployment/webstart-next/javadoc/jocl/javadoc/">JOCL JavaDoc</a></li> <li><a href="../../wiki/index.php/JOCL_FAQ#Getting_Started">JOCL Hello World</a></li> <li><a href="http://jogamp.org/git/?p=jocl.git">Code Repository</a></li> <li><a href="http://jogamp.org/git/?p=jocl-demos.git">Demos Code Repository</a></li> </ul> <h3>External References</h3> <ul> <li><a href="http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/">OpenCL Reference Pages</a></li> <li><a href="http://www.khronos.org/registry/cl/specs/opencl-1.1.pdf">OpenCL 1.1 Specification</a></li> <li><a href="http://www.khronos.org/files/opencl-quick-reference-card.pdf">OpenCL Quick Reference</a></li> </ul> <h3>External Tutorials</h3> <ul> <li><a href="http://developer.amd.com/zones/OpenCLZone/universities/pages/default.aspx">AMD OpenCL University Kit</a></li> <li><a href="http://developer.amd.com/documentation/videos/OpenCLTechnicalOverviewVideoSeries/Pages/default.aspx">AMD Stream OpenCL Technical Overview Video Series</a></li> <li><a href="http://www.macresearch.org/opencl">Mac Research OpenCL Tutorials</a></li> </ul> <a href="http://www.khronos.org/opencl/"><img src="http://www.khronos.org/opencl/images/opencl_100px.png" alt="OpenCL"/></a> </div> <div id="text"> <h2>Prerequisites</h2> <hr/> <p> <b>Follow all steps</b> described in <a href="../../jogl/doc/HowToBuild.html">How to build JOGL</a>, since GlueGen and JOGL are required as compiletime dependencies. </p> <h2>Platform and Component Requirements</h2> <hr/> To verify the build you will have to install a OpenCL implementation on your platform. <p> Some vendors ship OpenCL already with the graphics driver or operating system. So please make sure your system is up2date. </p> OpenCL SDKs for the desktop: <ul> <li> <b>GPU NVidia</b> Geforce >= 8<br/> <ul> <li> NVidia <a href="http://developer.nvidia.com/cuda-downloads">GPU Computing SDK</a></li> </ul> </li> <li> <b>GPU AMD or</b></li> <li> <b>CPU x86 x86_64 SSE3</b> <ul> <li> AMD <a href="http://developer.amd.com/gpu/AMDAPPSDK/Pages/default.aspx">Accelerated Parallel Processing SDK</a></li> </ul> </li> <li> <b>CPU Intel</b> <ul> <li>Intel <a href="http://software.intel.com/en-us/articles/opencl-sdk/">OpenCL SDK</a></li> </ul> </li> </ul> <h2>Build Steps</h2> <hr/> <p> Here are the steps that are required in order to build JOCL. </p> <ol> <li><b>Optain the source code</b> using git: <ul> <li><a href="http://jogamp.org/git/?p=jocl.git">JOCL Dev GIT Repo</a></li> </ul> It is important that you checkout the source project side by side to its dependencies: <pre> /home/dude/projects/jogamp> git clone git://jogamp.org/srv/scm/jocl.git jocl </pre> Now you should have following directory structure: <pre> /home/dude/projects/jogamp /home/dude/projects/jogamp/gluegen /home/dude/projects/jogamp/jogl /home/dude/projects/jogamp/jocl </pre> you can now open the projects with NetBeans or proceed with: </li> <li> <b>Build the source tree:</b> <br/> Open a command shell in the "jocl" directory of the source tree and type <code>"ant jar"</code>. </li> <li> <b>Test your build:</b> <br/> Stay in your command shell in the "jocl" directory of the source tree and type <code>"ant test"</code>.</li> <li> <b>Build Javadoc:</b> <br/> Stay in your command shell in the "jocl" directory of the source tree and type "<code>ant javadoc"</code>. This will produce the end-user documentation for JOCL. </li> </ol> <h2> Common build problems </h2> <ul> <li>TODO</li> </ul> </div> </div> <div id="footer"> <div id="footer_left"> <span>JogAmp.org</span> by <a href="http://jogamp.org">http://jogamp.org</a> is licensed under a <br/> <a href="http://creativecommons.org/licenses/by/3.0/us/">Creative Commons Attribution 3.0 License</a>. </div> </div> </div> </body> </html>