Difference between revisions of "CalVR"
(→Build CalVR:) |
(→Building CalVR) |
||
Line 28: | Line 28: | ||
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: | 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/ | 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. | ||
+ | |||
+ | click Generate, and exit the gui. | ||
+ | |||
+ | In CalVR folder, type make to build. |
Revision as of 15:42, 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.
click Generate, and exit the gui.
In CalVR folder, type make to build.