Difference between revisions of "CalVR"

From Immersive Visualization Lab Wiki
Jump to: navigation, search
(Building CalVR)
Line 44: Line 44:
  
 
In CalVR folder, type make to build.
 
In CalVR folder, type make to build.
 +
 +
==Runing CalVR==
 +
 +
Before runing CalVR you need to add osg/lib into your LD_LIBRARY_PATH in .cshrc
 +
 +
Add an environment variable to .cshrc, for example:
 +
setenv CALVR_HOME /home/hwang/CalVR/
 +
 +
The entrance program is in CalVR/bin/CalVR

Revision as of 17:50, 16 November 2010


Contents

This page is working in Progress



Overview

This page talks about adding a plugin in CalVR, starting from building OSG and CalVR from source. You need cmake to build OSG, CalVR and your plugins.

Building OSG

Developer release of OSG can be found here

Assume the unpacked directory is osg/, and cmake/bin/ is in the path, in osg/ run ccmake:

ccmake .

It turns into a terminal interface of cmake config for osg.

In CMAKE_BUILD_TYPE, press Enter to edit the field, type in one of the options that with debug information: RelWithDebInfo

press 'c' to configure, press 'g' to generate. and 'q' to quit. Now back to osg/, just type make to build. It takes quite a while to build.

Building CalVR

Make sure CalVR Dependencies(OSG, MXML, GLEW) are in the environment variables. If not, set them in .cshrc, for example, adding OSG in the environment, add this line at the ned of .cshrc:

setenv OSG_HOME ~/osg/


Run cmake/bin/cmake-gui, let "CalVR" be both the source and binaries

click Configure, select Unix Makefile, and it should show a configuration list for CalVR

Navigate to OSG-->OSG_LIBRARY, if it is NOTFOUND, you may need to point it to your osg/lib, this is an example input:

-L/home/hwang/CalVR/externs/osg/lib -losgFXrd -losgParticlerd -losgTextrd -losgSimrd -losgGArd -losgViewerrd -losgDBrd -losgShadowrd -losgUtilrd -lOpenThreadsrd -ldl

Note that many -losg*rd inputs, where are different than the IVL OSG_LIBRARIES, with extra "rd" tails.

You may also turn on PLUGINS->PLUGINS_CALIT to build your plugin at the same time.

click Generate, when it is done, you may exit the gui.

In CalVR folder, type make to build.

Runing CalVR

Before runing CalVR you need to add osg/lib into your LD_LIBRARY_PATH in .cshrc

Add an environment variable to .cshrc, for example:

setenv CALVR_HOME /home/hwang/CalVR/

The entrance program is in CalVR/bin/CalVR