Building CavePainting

From VrlWiki
Jump to navigation Jump to search

Setting Up and Checking Everything Out

  1. Define $G as your sandbox directory and define CVSROOT as your username@ssh.cs.brown.edu:/research/graphics/cvsroot/
  2. cd $G
  3. cvs co common
  4. cvs co project
  5. cvs co import
  6. mkdir install_linux
  7. cd $G/import
  8. svn co https://vrg3d.svn.sourceforge.net/svnroot/vrg3d vrg3d

Installing VRPN

  1. cd $G/import/vrpn/kit
  2. unzip vrpn_07_26.zip
  3. cd $G/import/vrpn/kit/quat
  4. make
    • Before performing this step, edit the Makefile, and uncomment the line corresponding to your machine's architecture
  5. make install
  6. make clean
  7. cd $G/import/vrpn/kit/vrpn
  8. make
  9. make install
  10. make clean
  11. make clean_g++

Installing G3D

  1. cd $G/import/g3d/kit
  2. unzip G3D-8.01-src_cvs.zip
  3. cd $G/import/g3d/kit/G3D
  4. ./buildg3d --install lib

Configuring VRG3D

  1. cd $G/import/vrg3d/vrg3d
  2. python configure.py -vrg3d $G/install_linux
    • If working on a 64 bit system, edit configure.py and make the following replacements before running this command
      • lib/libSDL to lib64/libSDL
      • lib/libGLU to lib64/libGLU
  3. make allclean
  4. make all
  5. make install
  6. make clean

Installing MMotion

  1. cd $G/common/MMotion
  2. make
  3. make install
  4. make clean

Installing Common Kuchora Packages

  1. cd $G/common/kuchora
  2. make
  3. make install

Installing CavePainting

  1. cd $G/project/kuchora/cavepainting
  2. make
  3. make install
  4. make clean

Allowing CavePainting to be Executed

  1. cd $G/project/kuchora/cavepainting
  2. chmod 775 run

Moving Files and Creating Symbolic Links to Work With Directory Structure

  1. mkdir $G/project/kuchora/apps/
  2. mv $G/project/kuchora/caveapinting/ $G/project/kuchora/apps/cavepainting/
  3. cd $G/project/kuchora/
  4. ln -s $G/project/kuchora/apps/cavepainting/ cavepainting
  5. cd $G/project/kuchora/
  6. ln -s $G/common/kuchora/data/ kdata
  7. mkdir $G/lib/
  8. mkdir $G/lib/kuchora/
  9. cd $G/lib/kuchora/
  10. ln -s $G/project/kuchora/kdata/images/ images

Running CavePainting in Desktop Mode

  1. cd $G/project/kuchora/apps/cavepainting
  2. ./run desktop

Running CavePainting in the CAVE

  1. cd #G/project/kuchora/apps/cavepainting
  2. ./run cave