Hello Dominic,
How do I have to use CMake for that, I'm sorry for this stupid question.
It's not stupid. What platform are you using?
On Windows, you run the CMake GUI. At the top you will have a field
"Where is the source code ?", point that to the base osgOcean directory
(the one that contains src/, include/, resources/, etc.). Then in "Where
to build the binaries?", I suggest you point it to a build/ subdirectory
under that same osgOcean directory (which you will create). Then click
Configure, fill in any paths that are missing (FFTSS and OSG include and
library paths probably), set CMAKE_INSTALL_PREFIX to for example your
osgOcean base directory, click Configure again and then (if there is no
error) Generate.
Then you can open the generated osgOcean.sln file (which will be in
build/) in Visual Studio and build it, and then run the oceanExample.
On Linux, do this:
cd <the osgOcean base directory>
mkdir build
cd build
ccmake ..
Then press C for configure, fill in any paths that are missing (FFTSS
and OSG include and library paths probably), set CMAKE_INSTALL_PREFIX to
for example your osgOcean base directory, press C again and then (if
there is no error) G for generate.
Then you can run make from the build directory and it will compile
osgOcean. You can run make install, that will copy the binaries into
osgOcean/bin and osgOcean/lib. Then to run the oceanExample you'd have
to add osgOcean/lib to your LD_LIBRARY_PATH (as well as your osg lib
directory).
(I've also put this info on the osgOcean wiki on the Usage Instructions
page: http://code.google.com/p/osgocean/wiki/Usage_Instructions )
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org