OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Compilation under linux


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgOcean [osgOcean]
View previous topic :: View next topic  
Author Message
gmilitel
Newbie


Joined: 01 Nov 2013
Posts: 5

PostPosted: Fri Nov 01, 2013 7:52 pm    Post subject:
Compilation under linux
Reply with quote

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 ..

Quote:

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

Quote:

[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
Back to top
View user's profile Send private message
gmilitel
Newbie


Joined: 01 Nov 2013
Posts: 5

PostPosted: Fri Nov 15, 2013 3:05 pm    Post subject:
Compilation under linux
Reply with quote

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 ..


Quote:

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


Quote:

[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







------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
kcbale
User


Joined: 04 Mar 2011
Posts: 68

PostPosted: Fri Nov 15, 2013 3:09 pm    Post subject:
Compilation under linux
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
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 ..


Quote:

                                                     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


Quote:

[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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Alberto Luaces
Guest





PostPosted: Fri Nov 15, 2013 4:05 pm    Post subject:
Compilation under linux
Reply with quote

"Guido Militello" writes:

Quote:
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

Guido, I would try to compile the SVN version, since it is more recent
than the release for download. I certainly compiled sucessfully the
library in the past.

--
Alberto



------------------
Post generated by Mail2Forum
Back to top
gmilitel
Newbie


Joined: 01 Nov 2013
Posts: 5

PostPosted: Fri Nov 15, 2013 6:27 pm    Post subject:
Reply with quote

Hey, tanks for the replies.

Perhaps I did something wrong in my compilation? some dependencies?

I'd followed exactly what they say in the project's wiki [url] http://code.google.com/p/osgocean/wiki/Usage_Instructions[/url]

This is the error:

$ make
Scanning dependencies of target osgOcean
[ 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


...


Thank you!

Cheers,
Guido
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgOcean [osgOcean] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Up to date tutorials for linux Rodrigo General 7 Wed Mar 01, 2017 9:57 pm View latest post
No new posts [Solved] Bug while updating geometry ... Nikkitta General 2 Thu Jan 26, 2017 9:27 am View latest post
No new posts a linux dialog starting to blur while... lq37 General 2 Tue Nov 29, 2016 4:57 pm View latest post
No new posts osgversion command fails with symbol ... crubel@compro.net General 4 Tue Oct 11, 2016 5:31 pm View latest post
No new posts Linux packaging: Qt 4 vs 5 DeadParrot General 14 Thu Jul 14, 2016 8:52 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP