##
## Install for the first time
##

> cd Torch3

##
## Patch Torch3 downloading the patch in the section
## 

## Download the patch from the download section 
> tar -zxvf patch.tgz 
> cp patch/* core/ 

##
## Continue the install
##

> setenv CVS_RSH ssh
> cvs -d :ext:username@cvs.idiap.ch:/home/vision/common/Torch3vision2.0 checkout vision2.0
> cd vision2.0
> cvs -d :ext:username@cvs.idiap.ch:/home/vision/common/Torch3vision2.0 checkout geometry patterndetect trainers video examples

##
## Compile Torch3vision
##

# edit the file Makefile_vision_Linux and change it if necessary
> vi Makefile_vision_Linux

# edit the file ../Makefile_options_Linux 
> cd ..
> vi Makefile_options_Linux

# add the "include $(TORCHDIR)/vision2.0/Makefile_vision_$(OS)"
# after MYINCS declaration as follow:

   ...

   # Your librairies
   # (for example "-lm", but not needed on most systems...)
   MYLIBS =

   # Your includes
   # (for example -I/usr/local/special)
   MYINCS =

   include $(TORCHDIR)/vision2.0/Makefile_vision_$(OS)

   # optimize mode
   #DEBUG = OPT
   # debug mode
   DEBUG = DBG

   ...

#
# Compile the Torch3vision
#
   
> make clean ; make depend ; make

#
# Compile program examples
#

> cd vision2.0/examples

# choose a subdir
> cd ip
> make

# or compile a specific program
> make fft2d

# see README for command line examples

#
# Compile your own classes and your own programs
#

> cd ../../mydev

# create a new subdir such as helloworld, add the same Makefile and add 
# all your classes in it. Finally, add the name of this package in ../Makefile_vision_Linux

> cd examples
> cd cmdfile
> make
> cd ../helloworld
> make
> cd ..

# make a subdir for your main program by copying the above examples

#
# Updates
#
> cvs update -d -P