incomplete type error In building openVIBE

Post Reply
HA3
Posts: 21
Joined: Sun Nov 23, 2014 5:32 am

incomplete type error In building openVIBE

Post by HA3 »

When building openvibe-master on ubuntu 14.04 , the following error message appears :
[ 1%] Building CXX object CMakeFiles/OpenViBE-kernel-dynamic.dir/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.o
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp: In constructor ‘COgreFrameListener::COgreFrameListener(Ogre::RenderWindow*)’:
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp:15:20: error: incomplete type ‘Ogre::OverlayManager’ used in nested name specifier
m_pDebugOverlay = OverlayManager::getSingleton().getByName("Core/DebugOverlay");
^
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp: In member function ‘void COgreFrameListener::showDebugOverlay(bool)’:
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp:33:19: error: invalid use of incomplete type ‘class Ogre::Overlay’
m_pDebugOverlay->show();
^
In file included from /home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/OgreOverlayElement.h:32:0,
from /home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.h:7,
from /home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp:2:
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/OgreOverlayPrerequisites.h:39:8: error: forward declaration of ‘class Ogre::Overlay’
class Overlay;
^
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp:37:19: error: invalid use of incomplete type ‘class Ogre::Overlay’
m_pDebugOverlay->hide();
^
In file included from /home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/OgreOverlayElement.h:32:0,
from /home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.h:7,
from /home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp:2:
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/OgreOverlayPrerequisites.h:39:8: error: forward declaration of ‘class Ogre::Overlay’
class Overlay;
^
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp: In member function ‘void COgreFrameListener::updateStats()’:
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp:59:28: error: incomplete type ‘Ogre::OverlayManager’ used in nested name specifier
OverlayElement* guiAvg = OverlayManager::getSingleton().getOverlayElement("Core/AverageFps");
^
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp:60:29: error: incomplete type ‘Ogre::OverlayManager’ used in nested name specifier
OverlayElement* guiCurr = OverlayManager::getSingleton().getOverlayElement("Core/CurrFps");
^
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp:61:29: error: incomplete type ‘Ogre::OverlayManager’ used in nested name specifier
OverlayElement* guiBest = OverlayManager::getSingleton().getOverlayElement("Core/BestFps");
^
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp:62:30: error: incomplete type ‘Ogre::OverlayManager’ used in nested name specifier
OverlayElement* guiWorst = OverlayManager::getSingleton().getOverlayElement("Core/WorstFps");
^
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp:72:29: error: incomplete type ‘Ogre::OverlayManager’ used in nested name specifier
OverlayElement* guiTris = OverlayManager::getSingleton().getOverlayElement("Core/NumTris");
^
/home/hassan/Downloads/openvibe-master/openvibe-kernel-omk/trunc/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.cpp:75:32: error: incomplete type ‘Ogre::OverlayManager’ used in nested name specifier
OverlayElement* guiBatches = OverlayManager::getSingleton().getOverlayElement("Core/NumBatches");
^
make[2]: *** [CMakeFiles/OpenViBE-kernel-dynamic.dir/src/openvibe-kernel/kernel/player/ovkCOgreFrameListener.o] Error 1
make[1]: *** [CMakeFiles/OpenViBE-kernel-dynamic.dir/all] Error 2
make: *** [all] Error 2
.
I have search for this error , but non of the solution given are successed to solve this problem. if you need more details , tell me , and I will give it for you , thanks in advance

jtlindgren
Posts: 778
Joined: Tue Dec 04, 2012 3:53 pm
Location: INRIA Rennes, FRANCE

Re: incomplete type error In building openVIBE

Post by jtlindgren »

Hi HA3,

the output suggests you are trying to build some old openvibe version. Please use 0.18 or the current git master. This should solve your problem.


Cheers,
Jussi

HA3
Posts: 21
Joined: Sun Nov 23, 2014 5:32 am

Re: incomplete type error In building openVIBE

Post by HA3 »

I have worked by youre advice , but the following error appear :
In file included from /home/hassan/Downloads/openvibe-0.18.0-src/kernel/src/kernel/visualisation/ovkCVisualisationManager.cpp:3:0:
/home/hassan/Downloads/openvibe-0.18.0-src/kernel/src/kernel/visualisation/../player/ovkCOgreVisualisation.h:245:1: error: expected unqualified-id before ‘private’
private:
^
/home/hassan/Downloads/openvibe-0.18.0-src/kernel/src/kernel/visualisation/../player/ovkCOgreVisualisation.h:257:59: error: non-member function ‘OpenViBE::CIdentifier getUnusedResourceGroupIdentifier()’ cannot have cv-qualifier
OpenViBE::CIdentifier getUnusedResourceGroupIdentifier() const;

jtlindgren
Posts: 778
Joined: Tue Dec 04, 2012 3:53 pm
Location: INRIA Rennes, FRANCE

Re: incomplete type error In building openVIBE

Post by jtlindgren »

We have automatic testing nightly building openvibe on Ubuntu 14.04. I just also tried to build the 18.0 archive manually on a 64bit Ubuntu 14.04 on a virtualbox. There were no problems. I can only assume there is something unusual on your system that causes this. If you find out how to fix this issue for you, we'd be happy to hear about it. Unfortunately we cannot assist without being able to reproduce the issue here.


Good luck,
Jussi

Post Reply