annotate org/setup.org @ 24:e965675ec4d0

moving things around
author Robert McIntyre <rlm@mit.edu>
date Mon, 24 Oct 2011 01:19:15 -0700
parents 157b416152ea
children 183744c179e6
rev   line source
rlm@22 1 #+title: Setup jMonkeyEngine3
rlm@22 2 #+author: Robert McIntyre
rlm@22 3 #+email: rlm@mit.edu
rlm@22 4 #+description: Simulating senses for AI research using JMonkeyEngine3
rlm@22 5 #+SETUPFILE: ../../aurellem/org/setup.org
rlm@22 6 #+INCLUDE: ../../aurellem/org/level-0.org
rlm@22 7 #+babel: :mkdirp yes :noweb yes :exports both
rlm@22 8
rlm@22 9 * Setup
rlm@22 10
rlm@22 11 First, I checked out the source to jMonkeyEngine:
rlm@22 12
rlm@22 13 #+srcname: checkout
rlm@22 14 #+begin_src sh :results verbatim
rlm@22 15 svn checkout http://jmonkeyengine.googlecode.com/svn/trunk/engine jme3
rlm@22 16 #+end_src
rlm@22 17
rlm@22 18 #+results: checkout
rlm@22 19 : Checked out revision 7975.
rlm@22 20
rlm@22 21
rlm@22 22 Building jMonkeyEngine is easy enough:
rlm@22 23
rlm@22 24 #+srcname: build
rlm@22 25 #+begin_src sh :results verbatim
rlm@22 26 cd jme3
rlm@22 27 ant jar | tail -n 2
rlm@22 28 #+end_src
rlm@22 29
rlm@22 30 #+results: build
rlm@22 31 : BUILD SUCCESSFUL
rlm@22 32 : Total time: 15 seconds
rlm@22 33
rlm@22 34
rlm@22 35 Also build the javadoc:
rlm@22 36
rlm@22 37 #+srcname: javadoc
rlm@22 38 #+begin_src sh :results verbatim
rlm@22 39 cd jme3
rlm@22 40 ant javadoc | tail -n 2
rlm@22 41 #+end_src
rlm@22 42
rlm@22 43 #+results: javadoc
rlm@22 44 : BUILD SUCCESSFUL
rlm@22 45 : Total time: 12 seconds
rlm@22 46
rlm@22 47 Now, move the jars from the compilation into the project's lib folder.
rlm@22 48
rlm@22 49 #+srcname: move-jars
rlm@22 50 #+begin_src sh :results verbatim
rlm@22 51 mkdir -p lib
rlm@22 52 mkdir -p src
rlm@22 53 cp jme3/dist/jMonkeyEngine3.jar lib/
rlm@22 54 cp jme3/dist/lib/* lib/
rlm@22 55 ls lib
rlm@22 56 #+end_src
rlm@22 57
rlm@22 58 #+results: move-jars
rlm@22 59 #+begin_example
rlm@22 60 eventbus-1.4.jar
rlm@22 61 jbullet.jar
rlm@22 62 jheora-jst-debug-0.6.0.jar
rlm@22 63 jinput.jar
rlm@22 64 jME3-jbullet.jar
rlm@22 65 jME3-lwjgl-natives.jar
rlm@22 66 jME3-testdata.jar
rlm@22 67 jME3-test.jar
rlm@22 68 jMonkeyEngine3.jar
rlm@22 69 j-ogg-oggd.jar
rlm@22 70 j-ogg-vorbisd.jar
rlm@22 71 lwjgl.jar
rlm@22 72 nifty-1.3.jar
rlm@22 73 nifty-default-controls-1.3.jar
rlm@22 74 nifty-examples-1.3.jar
rlm@22 75 nifty-lwjgl-renderer-1.3.jar
rlm@22 76 nifty-openal-soundsystem-1.0.jar
rlm@22 77 nifty-style-black-1.3.jar
rlm@22 78 nifty-style-grey-1.0.jar
rlm@22 79 noise-0.0.1-SNAPSHOT.jar
rlm@22 80 stack-alloc.jar
rlm@22 81 vecmath.jar
rlm@22 82 xmlpull-xpp3-1.1.4c.jar
rlm@22 83 #+end_example
rlm@22 84
rlm@22 85 It's good to create a =assets= directory in the style that the
rlm@22 86 =AssetManager= will like.
rlm@22 87
rlm@22 88 #+srcname: create-assets
rlm@22 89 #+begin_src sh :results verbatim
rlm@22 90 mkdir -p assets
rlm@22 91 mkdir -p assets/Interface
rlm@22 92 mkdir -p assets/Materials
rlm@22 93 mkdir -p assets/MatDefs
rlm@22 94 mkdir -p assets/Models
rlm@22 95 mkdir -p assets/Scenes
rlm@22 96 mkdir -p assets/Shaders
rlm@22 97 mkdir -p assets/Sounds
rlm@22 98 mkdir -p assets/Textures
rlm@22 99 tree -L 1 assets
rlm@22 100 #+end_src
rlm@22 101
rlm@22 102 #+results: create-assets
rlm@22 103 #+begin_example
rlm@22 104 assets
rlm@22 105 |-- Interface
rlm@22 106 |-- MatDefs
rlm@22 107 |-- Materials
rlm@22 108 |-- Models
rlm@22 109 |-- Scenes
rlm@22 110 |-- Shaders
rlm@22 111 |-- Sounds
rlm@22 112 `-- Textures
rlm@22 113
rlm@22 114 8 directories, 0 files
rlm@22 115 #+end_example
rlm@22 116
rlm@22 117
rlm@22 118 The java classpath should have all the jars contained in the =lib=
rlm@22 119 directory as well as the src directory.
rlm@22 120
rlm@22 121 For example, here is the file I use to run my REPL for clojure.
rlm@22 122
rlm@22 123 #+include: "/home/r/bin/swank-all" src sh :exports code
rlm@22 124
rlm@22 125 The important thing here is that =cortex/lib/*=, =cortex/src=, and
rlm@22 126 =cortex/assets= appear on the classpath. (=cortex= is the base
rlm@22 127 directory of this project.)
rlm@22 128
rlm@22 129 #+srcname: pwd
rlm@22 130 #+begin_src sh
rlm@22 131 pwd
rlm@22 132 #+end_src
rlm@22 133
rlm@22 134 #+results: pwd
rlm@22 135 : /home/r/proj/cortex
rlm@22 136