Skip to content

Commit

Permalink
Gave runme.sh an optional argument. README and TODO list tweaks. Remo…
Browse files Browse the repository at this point in the history
…ved obsolete libs/osx/ directory.
  • Loading branch information
chrism committed Oct 29, 2009
1 parent 2b34969 commit 9f88688
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 13 deletions.
41 changes: 29 additions & 12 deletions README
Expand Up @@ -6,24 +6,33 @@ Requirements
------------

libsndfile
- OSX: port install libsndfile
- Debian: apt-get install libsndfile
java (for the java example)
- Debian: apt-get install default-jdk
- Darwin/OSX: port install libsndfile
- Debian GNU/Linux: apt-get install libsndfile
- Other Linux's may vary

java - for the java example - you need at least java5
- Debian: apt-get install sun-java6-jdk

Build
-----

Here is how to build the java demo from scratch.
cd src
make libzengarden
make libjnizengarden
make examplegarden
cd src
make

You can build individual components like so:
# build the library as a shared object file
make libzengarden
# build the Java Native Interface as a shared object file
make libjnizengarden
# build the Java hosted example
make examplegarden

Test
----

./runme.sh
This runs the Java hosted example
./runme.sh

Advantages
----------
Expand All @@ -36,13 +45,21 @@ Why use ZenGarden?
* Mobile phones
* Inside other languages
* Compiling Pd as a library is non-trivial and requires modifications to Pd vanilla
* No bloat from GUI or hardware specific audio driver code
* Less bloat
* No GUI
* No hardware specific audio driver code

Layout
------

examples/
- Examples of using libZenGarden in Java, C, Python
src/
- Source code

src/me/
- Java JNI demo source

Xcode/
- Xcode project

pd-patches/
- Demo Pd patches
Expand Down
1 change: 1 addition & 0 deletions TODO
@@ -0,0 +1 @@
* Fill up pd-patches/unittests/
Binary file modified ZenGarden.jar
Binary file not shown.
Binary file modified libs/Darwin-i386/libjnizengarden.jnilib
Binary file not shown.
Binary file modified libs/Darwin-i386/libzengarden.dylib
Binary file not shown.
Binary file removed libs/osx/libjnizengarden.jnilib
Binary file not shown.
Binary file removed libs/osx/libzengarden.dylib
Binary file not shown.
10 changes: 9 additions & 1 deletion runme.sh
@@ -1,2 +1,10 @@
#!/bin/sh
java -Djava.library.path=./libs/`./src/platform`/ -jar ZenGarden.jar pd-patches/simple_osc.pd

if [ "$1" == "" ]
then
patch=pd-patches/simple_osc.pd
else
patch=$1
fi

java -Djava.library.path=./libs/`./src/platform`/ -jar ZenGarden.jar $patch

0 comments on commit 9f88688

Please sign in to comment.