Board index FlightGear Support Compiling

compiler error, 2016.2, RHEL-6.8

Building FlightGear from source, and in the need for help?

compiler error, 2016.2, RHEL-6.8

Postby logan_number5 » Fri Jun 10, 2016 4:11 pm

HI, I've done some extensive searching but can't find anyone
else every having this problem:

Looks like the file 'fstream' is coming from osgDB and not the system,
and is making the build unhappy (cmake). Any ideas?
(I tried to make it more readable here)

cd /home/mlogan/fgsrc/build-fg/utils/fgelev &&
/usr/bin/c++
-DHAVE_CONFIG_H
-DWITH_EVENTINPUT
-Wall
-D_REENTRANT
-DBOOST_BIMAP_DISABLE_SERIALIZATION
-O3
-DNDEBUG
-I/home/mlogan/fgsrc/flightgear.git/3rdparty/iaxclient/lib
-I/usr/include/dbus-1.0
-I/usr/lib64/dbus-1.0/include
-I/usr/local/aces/OpenSceneGraph-3.5.3/include/osgText
-I/usr/local/aces/OpenSceneGraph-3.5.3/include/osgSim
-I/usr/local/aces/OpenSceneGraph-3.5.3/include/osgDB
-I/usr/local/aces/OpenSceneGraph-3.5.3/include/osgParticle
-I/usr/local/aces/OpenSceneGraph-3.5.3/include/osgFX
-I/usr/local/aces/OpenSceneGraph-3.5.3/include/osgUtil
-I/usr/local/aces/OpenSceneGraph-3.5.3/include/osgViewer
-I/usr/local/aces/OpenSceneGraph-3.5.3/include/osgGA
-I/usr/local/aces/OpenSceneGraph-3.5.3/include
-I/usr/local/aces/OpenSceneGraph-3.5.3/include/OpenThreads
-I/usr/local/include
-I/usr/include/AL
-I/home/mlogan/FG-2016.2/include
-I/home/mlogan/FG-2016.2/include/simgear/3rdparty/utf8
-I/home/mlogan/plib-1.8.5/include
-I/home/mlogan/fgsrc/flightgear.git/3rdparty/sqlite3
-I/home/mlogan/fgsrc/flightgear.git
-I/home/mlogan/fgsrc/flightgear.git/src
-I/home/mlogan/fgsrc/build-fg/src
-I/home/mlogan/fgsrc/build-fg/src/Include
-I/home/mlogan/fgsrc/flightgear.git/3rdparty/hts_engine_API/include
-I/home/mlogan/fgsrc/flightgear.git/3rdparty/flite_hts_engine/include
-o CMakeFiles/fgelev.dir/fgelev.cxx.o -c /home/mlogan/fgsrc/flightgear.git/utils/fgelev/fgelev.cxx
In file included from /usr/local/aces/OpenSceneGraph-3.5.3/include/osgDB/Output:20,
from /usr/local/aces/OpenSceneGraph-3.5.3/include/osgDB/DotOsgWrapper:21,
from /usr/local/aces/OpenSceneGraph-3.5.3/include/osgDB/Registry:26,
from /usr/local/aces/OpenSceneGraph-3.5.3/include/osgDB/FileUtils:17,
from /home/mlogan/FG-2016.2/include/simgear/scene/model/ModelRegistry.hxx:24,
from /home/mlogan/fgsrc/flightgear.git/utils/fgelev/fgelev.cxx:40:
/usr/local/aces/OpenSceneGraph-3.5.3/include/osgDB/fstream:35: error: invalid use of incomplete type ‘struct std::ifstream’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/iosfwd:81: error: declaration of ‘struct std::ifstream’
/usr/local/aces/OpenSceneGraph-3.5.3/include/osgDB/fstream:47: error: invalid use of incomplete type ‘struct std::ofstream’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/iosfwd:84: error: declaration of ‘struct std::ofstream’
make[2]: *** [utils/fgelev/CMakeFiles/fgelev.dir/fgelev.cxx.o] Error 1
make[2]: Leaving directory `/home/mlogan/fgsrc/build-fg'
make[1]: *** [utils/fgelev/CMakeFiles/fgelev.dir/all] Error 2
make[1]: Leaving directory `/home/mlogan/fgsrc/build-fg'
make: *** [all] Error 2


thanks for any help.
logan_number5
 
Posts: 2
Joined: Fri Jun 10, 2016 4:01 pm

Re: compiler error, 2016.2, RHEL-6.8

Postby logan_number5 » Fri Jun 10, 2016 5:16 pm

:? Answered my own question.

The cmake config shouldn't specify every include dir for osg, just one path.
The same for all of them.

sorry for the spam.
logan_number5
 
Posts: 2
Joined: Fri Jun 10, 2016 4:01 pm


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest