error when building openvibe:ovkCSimulatedBox.cpp.o

Post Reply
wengcc
Posts: 2
Joined: Mon Apr 13, 2015 2:13 pm

error when building openvibe:ovkCSimulatedBox.cpp.o

Post by wengcc »

[ 4%] Building CXX object kernel/CMakeFiles/openvibe-kernel.dir/src/kernel/player/ovkCSimulatedBox.cpp.o
/home/wcc/openvibe-1.0.0/kernel/src/kernel/player/ovkCSimulatedBox.cpp: In destructor ‘virtual OpenViBE::Kernel::CSimulatedBox::~CSimulatedBox()’:
/home/wcc/openvibe-1.0.0/kernel/src/kernel/player/ovkCSimulatedBox.cpp:141:13: error: invalid use of incomplete type ‘class COgreVisualisation’
m_pOgreVis->deleteScene(m_oSceneIdentifier);
^
In file included from /home/wcc/openvibe-1.0.0/kernel/src/kernel/player/ovkCSimulatedBox.cpp:3:0:
/home/wcc/openvibe-1.0.0/kernel/src/kernel/player/ovkCSimulatedBox.h:15:7: error: forward declaration of ‘class COgreVisualisation’
class COgreVisualisation;
^
make[2]: *** [kernel/CMakeFiles/openvibe-kernel.dir/src/kernel/player/ovkCSimulatedBox.cpp.o] Error 1
make[1]: *** [kernel/CMakeFiles/openvibe-kernel.dir/all] Error 2
make: *** [all] Error 2

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

Re: error when building openvibe:ovkCSimulatedBox.cpp.o

Post by jtlindgren »

Dear Wengcc,

that information is insufficient to help you. Please follow the instructions in

viewtopic.php?f=1&t=4900


Best,
Jussi

wengcc
Posts: 2
Joined: Mon Apr 13, 2015 2:13 pm

Re: error when building openvibe:ovkCSimulatedBox.cpp.o

Post by wengcc »

Fedora 19, openvibe-1.0.0

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

Re: error when building openvibe:ovkCSimulatedBox.cpp.o

Post by jtlindgren »

Hello Wengcc,

it should compile with Fedora 19. My guess is you're trying to build without Ogre, and it seems the code has a problem with include guards in that regard.

Ogre should be installed by scripts/linux-install-dependencies, if that is okay to you, its probably easier to do that than to fix the possible
problems building without Ogre. We'll investigate this when we have the time. If the dependency installer didn't install Ogre and its headers
for you (see the beginning of the output of the build), then we have a bug in the installer instead/as well.


Cheers,
Jussi

alexandre.barachant
Posts: 3
Joined: Mon Feb 18, 2013 5:32 pm
Contact:

Re: error when building openvibe:ovkCSimulatedBox.cpp.o

Post by alexandre.barachant »

Hi,

I had the same problem on mac.
This happen when you try to compile OV without Ogre.

You can include a guard to skip this part if Ogre is disabled.

Alex

Post Reply