Hi Guido,

I'm afraid I haven't compiled osgOcean under linux before as I only develop
on a windows box, perhaps some of the more linux-savvy OSG users can be of
assistance. I'm pretty sure it's been used under linux before.

Sorry I can't be of more help.

Kim.


On 1 November 2013 19:52, Guido Militello <gmili...@gmail.com> wrote:

> Hi,
>
> new to this forum and osgocean, I'd just downloaded and tried to compile
> to see how  this works. But I had some building problems:
>
> These are the files I'd downloaded dependencies:
>
> fftw-3.3.3.tar.gz
> OpenSceneGraph-3.0.1
> osgOcean-Source-1.0.1.rar
> osgOcean-Resources-1.0.1.rar
>
> everything decompressed and it's now look like this:
>
> ls -l /media/DiscoD/linux/MyApp1
>
> drwxr-xr-x 1 gmilitel users    4096 30.10.2007 10:46 fftss-3.0/
> drwxr-xr-x 1 gmilitel users    4096 01.08.2011 18:40 osg/
> drwxr-xr-x 1 gmilitel users    4096 01.11.2013 12:55 osgOcean/
>
> cd osgOcean
> mkdir build
> ccmake ..
>
>
> >
> >                                                      Page 1 of 1
> >  CMAKE_BUILD_TYPE                 Release
> >  CMAKE_INSTALL_PREFIX             /media/DiscoD/linux/MyApp1/osgOcean
> >  FFTSS_INCLUDE_DIR                FFTSS_INCLUDE_DIR-NOTFOUND
> >  FFTSS_LIBRARY                    FFTSS_LIBRARY-NOTFOUND
> >  FFTW3-3_INCLUDE_DIR
>  /media/DiscoD/linux/MyApp1/fftw-3.3.3/include
> >  FFTW3-3_LIBRARY
>  /media/DiscoD/linux/MyApp1/fftw-3.3.3/lib/libfftw3.so
> >  OPENTHREADS_INCLUDE_DIR
>  /media/DiscoD/linux/MyApp1/osg/include/OpenThreads
> >  OPENTHREADS_LIBRARY
>  /media/DiscoD/linux/MyApp1/osg/lib64/libOpenThreads.so
> >  OPENTHREADS_LIBRARY_DEBUG
>  /media/DiscoD/linux/MyApp1/osg/lib64/libOpenThreads.so
> >  OSGDB_INCLUDE_DIR
>  /media/DiscoD/linux/MyApp1/osg/include/osgDB
> >  OSGDB_LIBRARY
>  /media/DiscoD/linux/MyApp1/osg/lib64/libosgDB.so
> >  OSGDB_LIBRARY_DEBUG
>  /media/DiscoD/linux/MyApp1/osg/lib64/libosgDB.so
> >  OSGGA_INCLUDE_DIR
>  /media/DiscoD/linux/MyApp1/osg/include/osgGA
> >  OSGGA_LIBRARY
>  /media/DiscoD/linux/MyApp1/osg/lib64/libosgGA.so
> >  OSGGA_LIBRARY_DEBUG
>  /media/DiscoD/linux/MyApp1/osg/lib64/libosgGA.so
> >  OSGTEXT_INCLUDE_DIR
>  /media/DiscoD/linux/MyApp1/osg/include/osgText
> >  OSGTEXT_LIBRARY
>  /media/DiscoD/linux/MyApp1/osg/lib64/libosgText.so
> >  OSGTEXT_LIBRARY_DEBUG
>  /media/DiscoD/linux/MyApp1/osg/lib64/libosgText.so
> >  OSGUTIL_INCLUDE_DIR
>  /media/DiscoD/linux/MyApp1/osg/include/osgUtil
> >  OSGUTIL_LIBRARY
>  /media/DiscoD/linux/MyApp1/osg/lib64/libosgUtil.so
> >  OSGUTIL_LIBRARY_DEBUG
>  /media/DiscoD/linux/MyApp1/osg/lib64/libosgUtil.so
> >  OSGVIEWER_INCLUDE_DIR
>  /media/DiscoD/linux/MyApp1/osg/include/osgViewer
> >  OSGVIEWER_LIBRARY
>  /media/DiscoD/linux/MyApp1/osg/lib64/libosgViewer.so
> >  OSGVIEWER_LIBRARY_DEBUG
>  /media/DiscoD/linux/MyApp1/osg/lib64/libosgViewer.so
> >  OSG_INCLUDE_DIR                  /media/DiscoD/linux/MyApp1/osg/include
> >  OSG_LIBRARY
>  /media/DiscoD/linux/MyApp1/osg/lib64/libosg.so
> >  OSG_LIBRARY_DEBUG
>  /media/DiscoD/linux/MyApp1/osg/lib64/libosg.so
> >  USE_FFTSS                        OFF
> >  USE_FFTW3                        ON
> >  USE_FFTW3F                       OFF
> >
> >
> > CMAKE_BUILD_TYPE: Choose the type of build, options are:
> None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo
> MinSizeRel.
> > Press [enter] to edit option
>                                                            CMake Version
> 2.8.12
> > Press [c] to configure
> > Press [h] for help           Press [q] to quit without generating
> > Press [t] to toggle advanced mode (Currently Off)
> >
>
>
> $ make
>
>
> >
> > [gmilitel-@gmilitel-lnx build]$ make
> > [  5%] Building CXX object
> src/osgOcean/CMakeFiles/osgOcean.dir/Cylinder.cpp.o
> > [ 11%] Building CXX object
> src/osgOcean/CMakeFiles/osgOcean.dir/DistortionSurface.cpp.o
> > In file included from
> /media/DiscoD/linux/MyApp1/osg/include/osgDB/Output:20:0,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osgDB/DotOsgWrapper:21,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osgDB/Registry:26,
> >                  from ../../../src/osgOcean/DistortionSurface.cpp:20:
> > /media/DiscoD/linux/MyApp1/osg/include/osgDB/fstream:31:42: error:
> invalid use of incomplete type ‘std::fstream {aka class
> std::basic_fstream<char>}’
> >  class OSGDB_EXPORT fstream : public std::fstream
> >                                           ^
> > In file included from /usr/include/c++/4.8.2/ios:38:0,
> >                  from /usr/include/c++/4.8.2/ostream:38,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osg/Notify:20,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osg/Object:20,
> >                  from /media/DiscoD/linux/MyApp1/osg/include/osg/Node:18,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osg/Geode:17,
> >                  from ../../../include/osgOcean/DistortionSurface:20,
> >                  from ../../../src/osgOcean/DistortionSurface.cpp:19:
> > /usr/include/c++/4.8.2/iosfwd:117:11: error: declaration of
> ‘std::fstream {aka class std::basic_fstream<char>}’
> >      class basic_fstream;
> >            ^
> > In file included from
> /media/DiscoD/linux/MyApp1/osg/include/osgDB/Output:20:0,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osgDB/DotOsgWrapper:21,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osgDB/Registry:26,
> >                  from ../../../src/osgOcean/DistortionSurface.cpp:20:
> > /media/DiscoD/linux/MyApp1/osg/include/osgDB/fstream:43:43: error:
> invalid use of incomplete type ‘std::ifstream {aka class
> std::basic_ifstream<char>}’
> >  class OSGDB_EXPORT ifstream : public std::ifstream
> >                                            ^
> > In file included from /usr/include/c++/4.8.2/ios:38:0,
> >                  from /usr/include/c++/4.8.2/ostream:38,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osg/Notify:20,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osg/Object:20,
> >                  from /media/DiscoD/linux/MyApp1/osg/include/osg/Node:18,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osg/Geode:17,
> >                  from ../../../include/osgOcean/DistortionSurface:20,
> >                  from ../../../src/osgOcean/DistortionSurface.cpp:19:
> > /usr/include/c++/4.8.2/iosfwd:111:11: error: declaration of
> ‘std::ifstream {aka class std::basic_ifstream<char>}’
> >      class basic_ifstream;
> >            ^
> > In file included from
> /media/DiscoD/linux/MyApp1/osg/include/osgDB/Output:20:0,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osgDB/DotOsgWrapper:21,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osgDB/Registry:26,
> >                  from ../../../src/osgOcean/DistortionSurface.cpp:20:
> > /media/DiscoD/linux/MyApp1/osg/include/osgDB/fstream:55:43: error:
> invalid use of incomplete type ‘std::ofstream {aka class
> std::basic_ofstream<char>}’
> >  class OSGDB_EXPORT ofstream : public std::ofstream
> >                                            ^
> > In file included from /usr/include/c++/4.8.2/ios:38:0,
> >                  from /usr/include/c++/4.8.2/ostream:38,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osg/Notify:20,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osg/Object:20,
> >                  from /media/DiscoD/linux/MyApp1/osg/include/osg/Node:18,
> >                  from
> /media/DiscoD/linux/MyApp1/osg/include/osg/Geode:17,
> >                  from ../../../include/osgOcean/DistortionSurface:20,
> >                  from ../../../src/osgOcean/DistortionSurface.cpp:19:
> > /usr/include/c++/4.8.2/iosfwd:114:11: error: declaration of
> ‘std::ofstream {aka class std::basic_ofstream<char>}’
> >      class basic_ofstream;
> >            ^
> > src/osgOcean/CMakeFiles/osgOcean.dir/build.make:80: recipe for target
> 'src/osgOcean/CMakeFiles/osgOcean.dir/DistortionSurface.cpp.o' failed
> > make[2]: ***
> [src/osgOcean/CMakeFiles/osgOcean.dir/DistortionSurface.cpp.o] Error 1
> > CMakeFiles/Makefile2:96: recipe for target
> 'src/osgOcean/CMakeFiles/osgOcean.dir/all' failed
> > make[1]: *** [src/osgOcean/CMakeFiles/osgOcean.dir/all] Error 2
> > Makefile:116: recipe for target 'all' failed
> > make: *** [all] Error 2
> >
>
>
> I'm running Manjaro Linux (Arch based) x64
>
> Any help? Did I do something wrong?
>
>
> ...
>
>
> Thank you!
>
> Cheers,
> Guido
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=57044#57044
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to