Mercurial > cortex
view org/setup.org @ 23:cab2da252494
split off the rest of cortex.org
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 23 Oct 2011 23:54:26 -0700 |
parents | 157b416152ea |
children | 183744c179e6 |
line wrap: on
line source
1 #+title: Setup jMonkeyEngine32 #+author: Robert McIntyre3 #+email: rlm@mit.edu4 #+description: Simulating senses for AI research using JMonkeyEngine35 #+SETUPFILE: ../../aurellem/org/setup.org6 #+INCLUDE: ../../aurellem/org/level-0.org7 #+babel: :mkdirp yes :noweb yes :exports both9 * Setup11 First, I checked out the source to jMonkeyEngine:13 #+srcname: checkout14 #+begin_src sh :results verbatim15 svn checkout http://jmonkeyengine.googlecode.com/svn/trunk/engine jme316 #+end_src18 #+results: checkout19 : Checked out revision 7975.22 Building jMonkeyEngine is easy enough:24 #+srcname: build25 #+begin_src sh :results verbatim26 cd jme327 ant jar | tail -n 228 #+end_src30 #+results: build31 : BUILD SUCCESSFUL32 : Total time: 15 seconds35 Also build the javadoc:37 #+srcname: javadoc38 #+begin_src sh :results verbatim39 cd jme340 ant javadoc | tail -n 241 #+end_src43 #+results: javadoc44 : BUILD SUCCESSFUL45 : Total time: 12 seconds47 Now, move the jars from the compilation into the project's lib folder.49 #+srcname: move-jars50 #+begin_src sh :results verbatim51 mkdir -p lib52 mkdir -p src53 cp jme3/dist/jMonkeyEngine3.jar lib/54 cp jme3/dist/lib/* lib/55 ls lib56 #+end_src58 #+results: move-jars59 #+begin_example60 eventbus-1.4.jar61 jbullet.jar62 jheora-jst-debug-0.6.0.jar63 jinput.jar64 jME3-jbullet.jar65 jME3-lwjgl-natives.jar66 jME3-testdata.jar67 jME3-test.jar68 jMonkeyEngine3.jar69 j-ogg-oggd.jar70 j-ogg-vorbisd.jar71 lwjgl.jar72 nifty-1.3.jar73 nifty-default-controls-1.3.jar74 nifty-examples-1.3.jar75 nifty-lwjgl-renderer-1.3.jar76 nifty-openal-soundsystem-1.0.jar77 nifty-style-black-1.3.jar78 nifty-style-grey-1.0.jar79 noise-0.0.1-SNAPSHOT.jar80 stack-alloc.jar81 vecmath.jar82 xmlpull-xpp3-1.1.4c.jar83 #+end_example85 It's good to create a =assets= directory in the style that the86 =AssetManager= will like.88 #+srcname: create-assets89 #+begin_src sh :results verbatim90 mkdir -p assets91 mkdir -p assets/Interface92 mkdir -p assets/Materials93 mkdir -p assets/MatDefs94 mkdir -p assets/Models95 mkdir -p assets/Scenes96 mkdir -p assets/Shaders97 mkdir -p assets/Sounds98 mkdir -p assets/Textures99 tree -L 1 assets100 #+end_src102 #+results: create-assets103 #+begin_example104 assets105 |-- Interface106 |-- MatDefs107 |-- Materials108 |-- Models109 |-- Scenes110 |-- Shaders111 |-- Sounds112 `-- Textures114 8 directories, 0 files115 #+end_example118 The java classpath should have all the jars contained in the =lib=119 directory as well as the src directory.121 For example, here is the file I use to run my REPL for clojure.123 #+include: "/home/r/bin/swank-all" src sh :exports code125 The important thing here is that =cortex/lib/*=, =cortex/src=, and126 =cortex/assets= appear on the classpath. (=cortex= is the base127 directory of this project.)129 #+srcname: pwd130 #+begin_src sh131 pwd132 #+end_src134 #+results: pwd135 : /home/r/proj/cortex