Page 1 of 1

error when building openvibe:ovkCSimulatedBox.cpp.o

Posted: Fri Apr 17, 2015 12:31 pm
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

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

Posted: Fri Apr 17, 2015 1:22 pm
by jtlindgren
Dear Wengcc,

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

viewtopic.php?f=1&t=4900


Best,
Jussi

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

Posted: Fri Apr 17, 2015 2:13 pm
by wengcc
Fedora 19, openvibe-1.0.0

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

Posted: Mon Apr 20, 2015 7:35 am
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

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

Posted: Thu Apr 23, 2015 2:48 pm
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