Hi fellows, i'm dealing with a strange problem to build omnet with osg support enabled. Whenever I try to build the compilation stops with following error message:
Creating executable: out/gcc-release//osg-earth
out/gcc-release//OsgEarthScene.o: In function `OsgEarthScene::initialize()':
OsgEarthScene.cc:(.text+0x4f3): undefined reference to `omnetpp::cOsgCanvas::setEarthViewpoint(osgEarth::Viewpoint const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:118: out/gcc-release//osg-earth] Error 1
make[2]: Leaving directory '/home/ivocalado/opt/omnetpp-5.0/samples/osg-earth'
make[1]: *** [Makefile:117: osg-earth] Error 2
make[1]: Leaving directory '/home/ivocalado/opt/omnetpp-5.0'
make: *** [Makefile:23: allmodes] Error 2
However, during the configure step the support to openscenegraph and osgwarth was conrrectly detected as shown in the generated config.log presented below.
confi.log
configure:5110: checking for OpenSceneGraph with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-losg -losgGA -losgViewer -losgQt -lOpenThreads"
configure:5124: g++ -o conftest -O2 -DNDEBUG=1 -fPIC -fno-stack-protector -Wl,-rpath,$(OMNETPP_LIB_DIR) -Wl,-rpath,$(OMNETPP_TOOLS_DIR)/lib -Wl,-rpath,. conftest.cpp -losg -losgGA -losgViewer -losgQt -lOpenThreads >&5
configure:5124: $? = 0
configure:5125: result: yes
configure:5153: checking for osgEarth with CFLAGS=" -O2 -DNDEBUG=1 -fPIC -fno-stack-protector " LIBS="-losgEarth -losgEarthUtil"
configure:5167: g++ -o conftest -O2 -DNDEBUG=1 -fPIC -fno-stack-protector -Wl,-rpath,$(OMNETPP_LIB_DIR) -Wl,-rpath,$(OMNETPP_TOOLS_DIR)/lib -Wl,-rpath,. conftest.cpp -losgEarth -losgEarthUtil >&5
configure:5167: $? = 0
configure:5168: result: yes
Any tip about how to fix it?
[]'s