Tuesday, February 12, 2008

Install DIVERSE with CMakeLists.txt files

I was looking in my directories but didn't find the CMakeLists files. Actually we installed the different packages of DIVERSE(dtk, dgl...) separately from the subversion directory (c.f http://diverse-vr.org/index.php?page=download ) in which they (CMakeLists files) do not appear.

However, I've seen on the sourceforge repository ( http://sourceforge.net/projects/diverse/ ) the DIVERSE3.0.0 package in which the CMakeLists.txt files are present, I guess this is the package which you are talking about and which probably, we should have installed.

====================================================

As a "developer", you'll want to use the version with the CMakeLists.txt
files. If you need any help installing it, please let me know.

One easy way to download it is to use svn with the command:
svn co https://diverse.svn.sourceforge.net/svnroot/diverse/trunk diverse-svn

and it'll put all of the code in a directory named diverse-svn. You can use
any other directory name you like if diverse-svn doesn't appeal to you.

We use this command to build it. (I also sent this in an earlier email- see
it for what "v" is for and so on. In particular, change CMAKE_INSTALL_PREFIX
to where you want it installed.)

\rm -rf build
mkdir build
cd build

v=`echo /usr/share/doc/nvidia-graphics*/include`
docs=ON
# this makes the Makefiles in the build directories
cmake \
-D CMAKE_INSTALL_PREFIX=$HEVROOT/apps/diverse/installed \
-D GLX_HEADER_PATH=${v} \
-D DADS_BUILD_DOCUMENTATION=${docs} \
-D DGL_BUILD_DOCUMENTATION=${docs} \
-D DTK_BUILD_DOCUMENTATION=${docs} \
-D OSG_INCLUDE_PATH=$HEVROOT/apps/osg/osg-2.x/installed/include \
-D OSG_LIBRARY_PATH=$OSG_LIB_DIR \
-D OSG_LIBRARY=$OSG_LIB_DIR/libosg.so \
../diverse-svn

# this compiles it in the build directory, and installs it in the install directory
make install

--------------------------
this is the cmake we did in the build directory

v=`echo /usr/include`
docs=ON

cmake -D CMAKE_INSTALL_PREFIX=/usr/local/DIVERSE/install/ -D GLX_HEADER_PATH=${v} -D DADS_BUILD_DOCUMENTATION=${docs} -D DGL_BUILD_DOCUMENTATION=${docs} -D DTK_BUILD_DOCUMENTATION=${docs} -D OSG_INCLUDE_PATH=/usr/local/devtools/OpenSceneGraph-2.2.0/include/ -D OSG_LIBRARY_PATH=$OSG_LIB_DIR -D OSG_LIBRARY=/usr/local/devtools/OpenSceneGraph-2.2.0/lib/libosg.so -D DGL_BUILD_WITH_OPENSCENEGRAPH=OFF ../source/

No comments: