Building CavePainting

From VrlWiki
Revision as of 15:34, 13 June 2012 by Wesley Miller (talk | contribs)
Jump to navigation Jump to search

Steps for Building CavePainting

  1. Make sandbox directory and define as $G
  2. cd $G
  3. cvs co common
  4. cvs co project
  5. cvs co import
  6. mkdir install_linux
  7. cd import
  8. svn co https://vrg3d.svn.sourceforge.net/svnroot/vrg3d vrg3d
  9. cd vrg3d/vrg3d
  10. python configure.py -vrg3d $G/install_linux
  11. make allclean
  12. make all
  13. make install
  14. cd $G/common/MMotion
  15. make
  16. make install
  17. cd $G/common/kuchora
  18. make
  19. make install

All the commands after creating $G together:



Old

Note:Replace $G with the absolute directory path of your sandbox. Although $G is recognized by the cd command, it cannot be used in include statements in c++ source files.

  1. Gather Required Packages
    • vrg3d
    • cvs: common, import, project
    • build utility, gg
    • import/vrpn_7.28_gcc_64
    • import/g3d_8.01_64
    • sdl.rpm
    • project/kuchora/cavepainting
  2. Follow Set_up_your_environment_for_diffusion_MRI_processing tutorial
  3. Change all include vrg3d header file statements in $G/common/kuchora to correct filepath*
  4. Change all include MMotion header file statements in $G/common/kuchora to correct filepath*
  5. Make in $G/common/kuchora
  6. Make install in $G/common/kuchora
  7. Make in $G/common/MMotion
  8. Make install in $G/common/MMotion
  9. In $G/project/kuchora/cavepainting/main.cpp
    • change #include <kuchora/Kuchora.H> to #include <$G/common/kuchora/Kuchora.H>
  10. In $G/common/kuchora/AnnotationModel.H
    • change #include <kuchora/KuchoraBase.H> to #include <$G/common/kuchora/include/kuchora/KuchoraBase.H>
  11. In $G/common/kuchora/TextInputWidget.H
    • change #include <kuchora/EventMgr.H> to #include <$G/common/kuchora/include/kuchora/EventMgr.H>
    • change #include <kuchora/GfxMgr.H> to #include <$G/common/kuchora/include/kuchora/GfxMgr.H>
  12. In $G/common/kuchora/BrushState.H
    • change #include <kuchora/KuchoraBase.H> to #include <$G/common/kuchora/include/kuchora/KuchoraBase.H>
  13. In $G/common/kuchora/CavePaintingCursors.H
    • change #include <kuchora/GfxMgr.H> to #include <$G/common/kuchora/include/kuchora/GfxMgr.H>
  14. In $G/common/kuchora/PointModel.H
    • change #include <kuchora/KuchoraBase.H> to #include <$G/common/kuchora/include/kuchora/KuchoraBase.H>
  15. In $G/common/kuchora/FishtankDepthCues.H
    • change #include <kuchora/GfxMgr.H> to #include <$G/common/kuchora/include/kuchora/GfxMgr.H>
    • change #include <kuchora/KuchoraBase.H> to #include <$G/common/kuchora/include/kuchora/KuchoraBase.H>
  16. In $G/common/kuchora/TriStripModel.H
    • change #include <kuchora/KuchoraBase.H> to #include <$G/common/kuchora/include/kuchora/KuchoraBase.H>
  17. In $G/common/kuchora/WorkingLimits.H
    • change #include <kuchora/GfxMgr.H> to #include <$G/common/kuchora/include/kuchora/GfxMgr.H>
  18. In $G/common/kuchora/HCIMgr.H
    • change #include <kuchora/KuchoraBase.H> to #include <$G/common/kuchora/include/kuchora/KuchoraBase.H>
  19. In $G/common/kuchora/ForceNetInterface.H
    • change #include <kuchora/KuchoraBase.H> to #include <$G/common/kuchora/include/kuchora/KuchoraBase.H>
  20. In $G/common/kuchora/Selection.H
    • change #include <kuchora/KuchoraBase.H> to #include <$G/common/kuchora/include/kuchora/KuchoraBase.H>
  21. In $G/common/kuchora/Markers.H
    • change #include <kuchora/KuchoraBase.H> to #include <$G/common/kuchora/include/kuchora/KuchoraBase.H>
  22. In $G/common/kuchora/AnnotationModel.H
    • change #include <kuchora/MoveMarkersHCI.H> to #include <$G/common/kuchora/include/kuchora/KuchoraBase.H>
  23. In $G/common/kuchora/Shadows.H
    • change #include <kuchora/KuchoraBase.H> to #include <$G/common/kuchora/include/kuchora/KuchoraBase.H>
*Will be expanded upon