Hi,

On Tue, 2011-08-16 at 21:17 -0500, Fan, Lei wrote:
> Hi everyone:
>      This is the first time I'm using this mailing list so wish I use
> it in a correct way. I'm a new user for OpenSG 

than a warm welcome ;)

> and right now I want to use it with CUDA together to do a Nbody
> simulation. I have installed the opensg2 and I also found the addons
> named OSGAddOnsGV, I checked them and couldn't find a correct way to
> compile them, so does any one can tell me how compile the programs in
> this OSGAddOnsGV?  Thanks 

you have two choices:

Integrated into the main OpenSG build:

  Add the individual packages to the OSG_EXTRA_EXTERNAL_MODULES, in
  cmake e.g. in the cmake gui edit the value for 

  OSG_EXTRA_EXTERNAL_MODULES and set it for example to:

  OSGContribCompute;OSGContribLwoFile;OSGContribBbqTerrain

  The module name can be recovered from the cmake file in the
  respective dirs, they follow the pattern:

  CMakeLists.Lib.<ModuleName>.txt

  Once you run cmake (configure part) it will create the corresponding

  OSGBUILD_<ModuleName> variables, e.g. OSGBUILD_OSGContribCompute,
  these are off by default. After you switch them on and run cmake
  configure again corresponding
  OSG_<ModuleName>_SOURCE_DIR entries are generated, point them to the
  directory that contains the CMakeLists.Lib.<ModuleName>.txt.

  After the final cmake run the modules should be build with the main
  OpenSG build.

Standalone, e.g. run cmake

cmake -DOSG_USE_OSGSUPPORT_LIBS:BOOL=True
      -DOpenSG_DIR:PATH=<opensg install dir>          
      -DOSG_SUPPORT_ROOT:PATH=<opensg suppor install dir>
      -DCUDA_TOOLKIT_ROOT_DIR:PATH=<cuda toolkit root>
       <addons source dir>

but this one was broken, I just committed a fix. It should work now, let
me know if it does not.

kind regards
  gerrit



------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to