Difference between revisions of "CalVR"
(→Build OSG:) |
(→Build OSG:) |
||
Line 10: | Line 10: | ||
This page talks about adding a plugin in CalVR, starting from building OSG and CalVR from source. You need [http://www.cmake.org/cmake/resources/software.html cmake] to build OSG, CalVR and your plugins. | This page talks about adding a plugin in CalVR, starting from building OSG and CalVR from source. You need [http://www.cmake.org/cmake/resources/software.html cmake] to build OSG, CalVR and your plugins. | ||
− | == | + | == Building OSG == |
Revision as of 18:52, 9 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.
Build 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/