Mercurial > vba-clojure
view README @ 617:aeb4b676ba8b
license was messed up by wget; corrected.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 26 Feb 2013 14:12:24 +0000 |
parents | b90c645dac33 |
children |
line wrap: on
line source
1 This is vba-clojure, by Robert McIntyre (rlm@mit.edu).3 It is three things:5 - vba-rerecording (http://code.google.com/p/vba-rerecording/),6 modified compile on GNU/Linux, as well as JNI bindings.8 - A functional clojure interface to the emulator supported by JNI9 bindings.11 - The "Pokemon Yellow Total Control Hack" code12 (http://aurellem.org/vba-clojure/html/total-control.html), which13 uses the clojure bindings.16 * License18 vba-rerecording is licensed under the GPL version 2, and I also19 release all the code I have written relating to this project under the20 GPL version 2.22 NOTE that the images under the /font directory and the mid files in23 the /music directory were taken from http://www.zophar.net/ and24 http://www.everyponysings.com/ respectively and are the only things in25 this repository that are not under the GPL.28 * How to Compile30 ** Long version32 Compilation follows 5 steps:34 1. Get java libraries35 2. Generate java JNI header and bindings36 3. generate autotools scripts37 4. configure38 5. make40 First, run the dl-libs.sh script to download the tritonus jars (or41 otherwise obtain them), which are used in processing sound from the42 gameboy. You must have wget installed for the dl-libs.sh to work.44 Second, you must generate the java JNI header and bindigs. cd to the45 "java" directory and run `ant` to do this.47 Third, generate the autotools scripts which the project requires by48 running `autoreconf -i`. I use autoreconf version 2.69.50 Fourth, run the "configure" script that was just produced to check for51 dependencies and proper environment variables. Be sure to have the52 environment variables JAVA_INCLUDE_PATH and JAVA_INCLUDE_PATH253 properly defined. "jni.h" should be in the directory referenced by54 JAVA_INCLUDE_PATH, and "jni_md.h" should be in the directory55 referenced by JAVA_INCLUDE_PATH2. On my system,56 JAVA_INCLUDE_PATH=/usr/include and57 JAVA_INCLUDE_PATH2=/usr/include/linux.59 finally, run `make` to build the library. You may optionally install60 the library using `make install`.62 ** Short Version64 ./dl-libs.sh65 cd java66 ant67 cd ..68 autoreconf -i69 ./configure70 make71 make install73 To fine tune the installation, pass different flags to the configure74 script, in particular the --prefix flag. run `./configure --help` to75 see available options and defaults.77 * Using the clojure code.79 If you're interested in hacking on the clojure code, then once you've80 completed the compilation instructions above, you will need to launch81 clojure (however you do it) and include the following things on your82 classpath (all directories are relative to project root).84 /clojure --- the clojure source files85 /java/dist/* --- JNI bindings86 /java/lib/* --- tritonus libs88 You will also need to put the compiled library file produced from the89 "How to Compile" section in a place where it can be loaded as a90 dynamic library. You can do this by running `make install` where you91 had previously configured the package to install in a system92 directory, or you can use the LD_LIBRARY_PATH to point your system to93 the directory containing the library file.96 * Bugs98 Please let me know if you find any bugs, or have any comments, at99 rlm@mit.edu.