Building CavePainting: Difference between revisions
Jump to navigation
Jump to search
| Line 32: | Line 32: | ||
#***Change INSTALL_DIR on line 52 from /usr/local to $G/install_linux | #***Change INSTALL_DIR on line 52 from /usr/local to $G/install_linux | ||
#make install | #make install | ||
#make clean | |||
#make clean_g++ | |||
== Installing [[G3D]] == | == Installing [[G3D]] == | ||
Revision as of 14:28, 23 July 2012
Setting Up and Checking Everything Out
- cd $G
- Before performing this step define $G as your sandbox directory and define CVSROOT as your username@ssh.cs.brown.edu:/research/graphics/cvsroot/
- An example can be found at Set_up_your_environment_for_diffusion_MRI_processing#Set_up_your_environment
- The file which you must edit may vary on different operating systems
- Before performing this step define $G as your sandbox directory and define CVSROOT as your username@ssh.cs.brown.edu:/research/graphics/cvsroot/
- cvs co common
- cvs co project
- cvs co import
- mkdir install_linux
- cd $G/import
- svn co https://vrg3d.svn.sourceforge.net/svnroot/vrg3d vrg3d
Installing VRPN
- cd $G/import/vrpn/kit
- unzip vrpn_07_26.zip
- cd $G/import/vrpn/kit/quat
- make
- Before performing this step
- Edit the Makefile
- Uncomment the line corresponding to your machine's architecture
- Change INSTALL_DIR on line 31 from /usr/local to $G/install_linux
- Edit the Makefile
- Before performing this step
- make install
- make clean
- cd $G/import/vrpn/kit/vrpn
- make
- Before performing this step
- Edit the Makefile
- Uncomment the line corresponding to your machine's architecture
- Change INSTALL_DIR on line 52 from /usr/local to $G/install_linux
- Edit the Makefile
- Before performing this step
- make install
- make clean
- make clean_g++
Installing G3D
- cd $G/import/g3d/kit
- unzip G3D-8.01-src_cvs.zip
- cd $G/import/g3d/kit/G3D
- ./buildg3d --install all
- Before performing this step
- Edit the buildg3d
- Change installDir on line 105 from '/usr/local' to '$G/install_linux'
- Actually type in the directory path of $G for this
- Comment out line 362 "if osx or (ice.utils.shell("locate libzip.a") == ):"
- Remove one indent from line 363
- Change installDir on line 105 from '/usr/local' to '$G/install_linux'
- Edit the buildg3d
- Before performing this step
- ./buildg3d --install lib
Configuring VRG3D
- cd $G/import/vrg3d/vrg3d
- python configure.py -vrpn $G/install_linux -g3d $G/install_linux -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
- If working on a 64 bit system, edit configure.py and make the following replacements before running this command
- make allclean
- make all
- make install
Installing MMotion
- cd $G/common/MMotion
- make
- If you get an error with this command edit the $G/common/build/make/compile.gcc.local.make
- Comment out $(GCC2_SUFFIX) on lines 50 - 53
- Comment out $(GCC3_SUFFIX) on lines 64 - 67
- Comment out $(GCC4_SUFFIX) on lines 89 - 92
- Comment out $(GCCX_SUFFIX) on lines 103 - 106
- If you get an error with this command edit the $G/common/build/make/compile.gcc.local.make
- make install
Installing Common Kuchora Packages
- cd $G/common/kuchora
- make
- make install
Installing CavePainting
- cd $G/project/kuchora/cavepainting
- make
- If you get an error
- Change "$(G_IMPORT)/g3d/g3d_8_$(G_COMPILER)" in $G/common/build/make/g3d.make on line 20 to "$(G)/install_linux"
- If you get an error
- make install
Allowing CavePainting to be Executed
- cd $G/project/kuchora/cavepainting
- chmod 775 run
Moving Files and Creating Symbolic Links to Work With Directory Structure
- mkdir $G/project/kuchora/apps/
- cd $G/project/kuchora/apps/
- mv $G/project/kuchora/cavepainting/ $G/project/kuchora/apps/cavepainting
- cd $G/project/kuchora/
- ln -s $G/project/kuchora/apps/cavepainting/ cavepainting
- cd $G/project/kuchora/
- ln -s $G/common/kuchora/data/ kdata
- mkdir $G/lib/
- mkdir $G/lib/kuchora/
- cd $G/lib/kuchora/
- ln -s $G/project/kuchora/kdata/images/ images
- cd $G/lib/kuchora/
- ln -s $G/project/kuchora/kdata/fonts/ fonts
Running CavePainting in Desktop Mode
- cd $G/project/kuchora/apps/cavepainting
- ./run desktop
Running CavePainting in the CAVE
- cd $G/project/kuchora/apps/cavepainting
- ./run cave