(This post is sticky, will be updated as DZ3 codebase grows, and will eventually be migrated to the main site when DZ3 is sufficiently mature)
Below is what you have to do to have DZ3 code base installed on your system. It goes without saying that having a working installation of JDK 1.6 is a prerequisite. I distrust any implementation other than Sun's, but it's been many years since I've tried anything else, YMMV. (Update: found an article describing how to install Sun Java on Ubuntu).
You may want to copy and paste it into a shell scropt and see what happens when you run it. Watch long lines.
NOTE: You need to have Google Calendar dependencies on file system in order to build everything. Either follow simple instructions, or remove or comment out thedz3-schedule-gcal
module fromdz3-master/pom.xml
.
Fedora 10+
#! /bin/shyum install maven2
yum install svn
cd ${your_development_directory}
svn co \
https://jukebox4.svn.sourceforge.net/svnroot/jukebox4/trunk/jukebox-master \
jukebox-master
(cd jukebox-master && mvn install)
svn co \
https://servomaster.svn.sourceforge.net/svnroot/servomaster/trunk/servomaster-common \
servomaster-common
(cd servomaster-common && mvn install)
svn co \
https://diy-zoning.svn.sourceforge.net/svnroot/diy-zoning/trunk/dz3-master \
dz3-master
cd dz3-master
# This test will most probably fail on your box because it is system specific
rm dz3-sensors/src/test/java/net/sf/dz3/device/sensor/impl/ShellSensorTest.java
mvn install
You're done. DZ3 codebase is installed on your box.
NOTE: installed. In order to connect servo controller based actuators you will also need to buildservomaster-serial
orservomaster-usb
(depending on your hardware) which need to be checked out and built separately - but this is beyond the "quickstart".
Ubuntu 9.04
The only difference with the above is that instead of executingyum install maven2you execute
yum install svn
sudo apt-get install maven2
sudo apt-get install subversion
Mac OS X
(to the best of my understanding of explanations of a Mac expert):- Install Development packet, it'll give you Subversion, among other things
- Install
macports
- Run
"port install maven2"
Update: I'm told that both Maven and Subversion are preinstalled on Mac OS X starting with version 10.5.
Windows
You're on your own here. The only advice I can give is to use TortoiseSVN and download and install Maven manually. And of course, shell scripts won't work - unless you're running Cygwin, but if that's the case, then you don't need my advice.UPDATING CODE BASE
The only thing you have to do is to executesvn update
followed by mvn clean install
in jukebox-master
and dz3-master
directories. Don't forget to kill the shell sensor test case, or modify it to suit your system - should be trivial. Something like this:#! /bin/sh
cd ${your_development_directory}
(cd jukebox-master && svn update && mvn clean install)
cd dz3-master
svn update
rm dz3-sensors/src/test/java/net/sf/dz3/device/sensor/impl/ShellSensorTest.java
mvn clean install
No comments:
Post a Comment