Mercurial > cortex
diff org/setup.org @ 34:183744c179e6
MASSIVE cleanup, especially in the vision code
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 03 Nov 2011 08:28:26 -0700 |
parents | 157b416152ea |
children | 1381a6ebd08b |
line wrap: on
line diff
1.1 --- a/org/setup.org Wed Nov 02 11:03:12 2011 -0700 1.2 +++ b/org/setup.org Thu Nov 03 08:28:26 2011 -0700 1.3 @@ -2,6 +2,7 @@ 1.4 #+author: Robert McIntyre 1.5 #+email: rlm@mit.edu 1.6 #+description: Simulating senses for AI research using JMonkeyEngine3 1.7 +#+keywords: JMonkeyEngine3, clojure, java, setup 1.8 #+SETUPFILE: ../../aurellem/org/setup.org 1.9 #+INCLUDE: ../../aurellem/org/level-0.org 1.10 #+babel: :mkdirp yes :noweb yes :exports both 1.11 @@ -12,7 +13,8 @@ 1.12 1.13 #+srcname: checkout 1.14 #+begin_src sh :results verbatim 1.15 -svn checkout http://jmonkeyengine.googlecode.com/svn/trunk/engine jme3 1.16 +svn checkout http://jmonkeyengine.googlecode.com/svn/trunk/engine \ 1.17 + /home/r/proj/jMonkeyEngine3 1.18 #+end_src 1.19 1.20 #+results: checkout 1.21 @@ -23,114 +25,34 @@ 1.22 1.23 #+srcname: build 1.24 #+begin_src sh :results verbatim 1.25 -cd jme3 1.26 +cd /home/r/proj/jMonkeyEngine3 1.27 ant jar | tail -n 2 1.28 #+end_src 1.29 1.30 #+results: build 1.31 : BUILD SUCCESSFUL 1.32 -: Total time: 15 seconds 1.33 +: Total time: 5 seconds 1.34 1.35 1.36 Also build the javadoc: 1.37 1.38 #+srcname: javadoc 1.39 #+begin_src sh :results verbatim 1.40 -cd jme3 1.41 +cd /home/r/proj/jMonkeyEngine3 1.42 ant javadoc | tail -n 2 1.43 #+end_src 1.44 1.45 #+results: javadoc 1.46 : BUILD SUCCESSFUL 1.47 -: Total time: 12 seconds 1.48 +: Total time: 10 seconds 1.49 1.50 -Now, move the jars from the compilation into the project's lib folder. 1.51 1.52 -#+srcname: move-jars 1.53 -#+begin_src sh :results verbatim 1.54 -mkdir -p lib 1.55 -mkdir -p src 1.56 -cp jme3/dist/jMonkeyEngine3.jar lib/ 1.57 -cp jme3/dist/lib/* lib/ 1.58 -ls lib 1.59 -#+end_src 1.60 - 1.61 -#+results: move-jars 1.62 -#+begin_example 1.63 -eventbus-1.4.jar 1.64 -jbullet.jar 1.65 -jheora-jst-debug-0.6.0.jar 1.66 -jinput.jar 1.67 -jME3-jbullet.jar 1.68 -jME3-lwjgl-natives.jar 1.69 -jME3-testdata.jar 1.70 -jME3-test.jar 1.71 -jMonkeyEngine3.jar 1.72 -j-ogg-oggd.jar 1.73 -j-ogg-vorbisd.jar 1.74 -lwjgl.jar 1.75 -nifty-1.3.jar 1.76 -nifty-default-controls-1.3.jar 1.77 -nifty-examples-1.3.jar 1.78 -nifty-lwjgl-renderer-1.3.jar 1.79 -nifty-openal-soundsystem-1.0.jar 1.80 -nifty-style-black-1.3.jar 1.81 -nifty-style-grey-1.0.jar 1.82 -noise-0.0.1-SNAPSHOT.jar 1.83 -stack-alloc.jar 1.84 -vecmath.jar 1.85 -xmlpull-xpp3-1.1.4c.jar 1.86 -#+end_example 1.87 - 1.88 -It's good to create a =assets= directory in the style that the 1.89 -=AssetManager= will like. 1.90 - 1.91 -#+srcname: create-assets 1.92 -#+begin_src sh :results verbatim 1.93 -mkdir -p assets 1.94 -mkdir -p assets/Interface 1.95 -mkdir -p assets/Materials 1.96 -mkdir -p assets/MatDefs 1.97 -mkdir -p assets/Models 1.98 -mkdir -p assets/Scenes 1.99 -mkdir -p assets/Shaders 1.100 -mkdir -p assets/Sounds 1.101 -mkdir -p assets/Textures 1.102 -tree -L 1 assets 1.103 -#+end_src 1.104 - 1.105 -#+results: create-assets 1.106 -#+begin_example 1.107 -assets 1.108 -|-- Interface 1.109 -|-- MatDefs 1.110 -|-- Materials 1.111 -|-- Models 1.112 -|-- Scenes 1.113 -|-- Shaders 1.114 -|-- Sounds 1.115 -`-- Textures 1.116 - 1.117 -8 directories, 0 files 1.118 -#+end_example 1.119 - 1.120 - 1.121 -The java classpath should have all the jars contained in the =lib= 1.122 -directory as well as the src directory. 1.123 +The java classpath should have all the jars from the jMonkeyEngine 1.124 +directory. 1.125 1.126 For example, here is the file I use to run my REPL for clojure. 1.127 1.128 #+include: "/home/r/bin/swank-all" src sh :exports code 1.129 1.130 -The important thing here is that =cortex/lib/*=, =cortex/src=, and 1.131 -=cortex/assets= appear on the classpath. (=cortex= is the base 1.132 -directory of this project.) 1.133 1.134 -#+srcname: pwd 1.135 -#+begin_src sh 1.136 -pwd 1.137 -#+end_src 1.138 1.139 -#+results: pwd 1.140 -: /home/r/proj/cortex 1.141 -