Ptplot on the Zaurus
Ptplot 1.0 and Ptplot 2.0 can run on the Sharp Zaurus!Set up
- Download
http://ptolemy.eecs.berkeley.edu/java/ptolemy.plot2.0/ptolemy/plot/ptolemy.plot.jar(tar file version:http://ptolemy.eecs.berkeley.edu/java/ptolemy.plot2.0/ptolemy/plot/ptolemy_plot_jar.tar) On the Zaurus putptolemy.plot.jarinto a directory. I put it in/home/root/lib - Create a shell script on the Zaurus at
/home/root/bin/ptplot. The script should look like:#!/bin/sh # Ptplot evm -classpath /home/root/lib/ptolemy.plot.jar ptolemy.plot.PlotApplication $@
- Make the shell script executable
chmod a+x /home/root/bin/ptplot
- On the Zaurus, add
/home/root/binto your path:export PATH=/home/root/bin:${PATH} - Run the script
ptplot
The default image should come up - Create a simple data file
cat > plot.plt << EoF 1 1 2 3 4 5 EoF
- Run ptplot:
ptplot plot.plt
http://ptolemy.eecs.berkeley.edu/java/ptolemy.plot2.0/ptolemy/plot/index.html
Recompiling
The basic idea is to recompile Ptplot usingjavac -target 1.1 and then run using gevmg
Versions of PtPlot after PtPlot 2.0 use Java 1.2 features or use Swing. I don't think the JVM on the Zaurus can handle 1.2 or Swing.
- Download
http://ptolemy.eecs.berkeley.edu/java/ptolemy.plot2.0/ptolemy/plot/ptolemy.plot2.0.tar.gzto a Windows or Unix box - Untar, set
$PTIIand configure:cd ~/src gtar -zxf /tmp/ptolemy.plot2.0.tar.gz cd ptolemy.plot2.0 setenv PTII `pwd` ./configure
- Edit
$PTII/mk/ptII.mkand add-target 1.1togJFLAGSgJFLAGS = -g -target 1.1
Note that I had to remove-dependfrom the above line - Run
make clean make make install
- This will produce
ptolemy.plot2.0/ptolemy/plot/ptolemy.plot.jar. Copyptolemy.plot2.0/ptolemy/plot/ptolemy.plot.jarto the Zaurus. I put it in/home/root/lib - Create a small script called
ptplot:#!/bin/sh # Ptplot evm -classpath /home/root/lib/ptolemy.plot.jar ptolemy.plot.PlotApplication $@
I created this script on my host machine, didchmod a+x ptptotand then copied it to the zaurus to/home/root/lib/ptplot - On the zaurus, run
/home/root/lib/ptplot
